lkml.org 
[lkml]   [2003]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/meminfo values
On Mon, 22 Dec 2003, Andreas Unterkircher wrote:

> but with 2.6 it looks like they have been removed. where can i get the
> exactly free memory (+ swap) from the kernel so i havn't to use the
> kb-values which i get back from /proc/meminfo?

The values are in page granularity. On x86 you're not going
to get them at any finer granularity than 4kB increments,
because that is the page size.

The kB values are still smaller than the allocation granularity,
so no accuracy is lost.

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.040 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site