archive mirror
 help / color / mirror / Atom feed
From: Denis Vlasenko <>
Subject: Further info on underflow in /proc/meminfo
Date: Thu, 26 Sep 2002 15:30:29 -0200	[thread overview]
Message-ID: <> (raw)

This is roughly how it is generated:
struct sysinfo 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

                 reply	other threads:[~2002-09-26 12:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: Further info on underflow in /proc/meminfo' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).