linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Further info on underflow in /proc/meminfo
@ 2002-09-26 17:30 Denis Vlasenko
  0 siblings, 0 replies; only message in thread
From: Denis Vlasenko @ 2002-09-26 17:30 UTC (permalink / raw)
  To: linux-kernel

This is roughly how it is generated:
...
struct sysinfo i;
...
si_meminfo(&i);
    val->bufferram = atomic_read(&buffermem_pages);
...
pg_size = atomic_read(&page_cache_size) - i.bufferram;
...
sprintf("cached: %d",B(pg_size));
...


On my box I have:

# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  30322688 27533312  2789376        0 19501056 18446744073699565568
Swap: 100655104  8732672 91922432                  ^^^^^^^^^^^^^^^^^^^^
MemTotal:        29612 kB           
...

so, page_cache_size-buffermem_pages<0 and after it got scaled pages->bytes
we have LARGE "cached:" value! :-)

# uname -a
Linux pegasus 2.4.18-pre6mhv_ll #2 SMP Wed Mar 27 11:17:36 GMT+2 2002 i686 unknown
--
vda

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-26 12:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 17:30 Further info on underflow in /proc/meminfo Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).