News for hackers. Stuff that matters.
Re:Tired of explaining Linux's seemingly obtuse memory usage... by slavak on Tuesday February 01, 2011 @09:49AM (#2165650)
Wouldn't it make more sense to just include the RAM used for disk-caching when calculating free memory? After all, the whole reason it's being used for disk-caching in the first place is that it's free! The Linuxoids that know what this even means can always explicitly look for the line that says how much memory is being used for caching...
Re:Tired of explaining Linux's seemingly obtuse memory usage... by barrkel on Tuesday February 01, 2011 @11:45AM (#2166140)
It costs time to zero pages; disk cache pages are not zeroed. Not having a source of zero pages will add latency to large memory allocation requests.

(The pages must be zeroed to avoid the security problem of snooping on data you might not have access to.)

Re:Tired of explaining Linux's seemingly obtuse memory usage... by slavak on Tuesday February 01, 2011 @04:24PM (#2167475)
Exactly the kind of thing users not familiar with the way Linux handles memory DON'T consider when they check how much free memory they have. If you're the sort of person concerned with the overhead of zeroing pages then you can look at more detailed memory-usage info to find the details you're looking for.
Re:Tired of explaining Linux's seemingly obtuse memory usage... by sp332 on Tuesday February 01, 2011 @10:25AM (#2165772)
The Windows task manager has a separate field called "Available". Right now I have 8190 MB total, 3627 cached, 4151 Available, and 537 free (not sure if that adds up perfectly, it was changing while I typed it).
Re:Tired of explaining Linux's seemingly obtuse memory usage... by masklinn on Tuesday February 01, 2011 @10:44AM (#2165864)
OSX's activity monitor does something similar, it has 4 statuses: Wired, Active, Inactive and Free.

Wired and Active are basically the RAM being used (Wired is a special activity status for stuff which can not be moved to disk), Inactive is the cache (generally programs which were used recently) and Free is… well, free.

When checking used/free, Inactive and Free count towards free, Wired and Active towards used (though that's not always consistent).

Also, I don't think you have 8TB RAM.

Re:Tired of explaining Linux's seemingly obtuse memory usage... by js2 on Tuesday February 01, 2011 @11:54AM (#2166188)
Re:Tired of explaining Linux's seemingly obtuse memory usage... by barrkel on Tuesday February 01, 2011 @11:59AM (#2166211)
He probably has 8GB of RAM (8192MB); some may be lost to address space holes. I have 12GB, if you're finding that implausible.
Re:Tired of explaining Linux's seemingly obtuse memory usage... by masklinn on Tuesday February 01, 2011 @12:39PM (#2166389)
> He probably has 8GB of RAM (8192MB)

Yes, I'd expect that, but at the time of my comment (before his stealth edit) all his units read "GB" not "MB". I wrote "8 TB" for a reason.

> I have 12GB, if you're finding that implausible.

I have 8GB RAM in my laptop, why would I find 12GB RAM implausible?