lkml.org 
[lkml]   [2003]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject/proc/meminfo values
From
Date
hello.

one question, didn't find any other information souce.

in kernel 2.4 /proc/meminfo writes back exactly mem info values
in the first 2 lines like:

cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 244191232 238395392 5795840 0 2732032 138403840
Swap: 509923328 147443712 362479616


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?

i try to check the source good from "free" (with the -b option it
returns the bytes-value) which seems to simple multiply *1024 to
the kb values.


thanks for any info!

greetings, andi

-
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.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site