linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
To: linux-kernel@vger.kernel.org
Subject: Further info on underflow in /proc/meminfo
Date: Thu, 26 Sep 2002 15:30:29 -0200	[thread overview]
Message-ID: <200209261236.g8QCaCp04179@Port.imtp.ilyichevsk.odessa.ua> (raw)

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

                 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=200209261236.g8QCaCp04179@Port.imtp.ilyichevsk.odessa.ua \
    --to=vda@port.imtp.ilyichevsk.odessa.ua \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).