Re: [-mm PATCH] Memory controller improve user interface

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <balbir@...>
Cc: Linux Containers <containers@...>, Linux MM Mailing List <linux-mm@...>, Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, David Rientjes <rientjes@...>
Date: Wednesday, August 29, 2007 - 12:17 pm

On 8/29/07, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

I was thinking the other way around - you can write 1048576 (i.e. 1MB)
to the file and read back 1024. It just seems to me that it's clearer
if you write X to the file to get X back.


How is using a 64-bit value for consistency overkill?

As someone pointed out, 4TB machines probably aren't that far around
the corner (if they're not here already) so even if you use KB rather
than bytes, userspace needs to be using an int64 for this value in
case it ends up running as a 32-bit-compiled app on a 64-bit kernel
with lots of memory.

Paul
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm PATCH] Memory controller improve user interface, Balbir Singh, (Wed Aug 29, 7:10 am)
Re: [-mm PATCH] Memory controller improve user interface, KAMEZAWA Hiroyuki, (Thu Aug 30, 1:38 am)
Re: [-mm PATCH] Memory controller improve user interface, Balbir Singh, (Wed Aug 29, 12:07 pm)
Re: [-mm PATCH] Memory controller improve user interface, Paul Menage, (Wed Aug 29, 12:17 pm)