Re: /proc/meminfo values

From: Rik van Riel
Date: Mon Dec 22 2003 - 10:20:07 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/