From: Andreas Dilger <adilger@turbolinux.com>
To: Zou Min <zoum@comp.nus.edu.sg>
Cc: Rik van Riel <riel@conectiva.com.br>,
Josh Grebe <squash@primary.net>, Jan Harkes <jaharkes@cs.cmu.edu>,
linux-kernel@vger.kernel.org
Subject: Re: Question about memory usage in 2.4 vs 2.2
Date: Wed, 21 Mar 2001 02:51:49 -0700 (MST) [thread overview]
Message-ID: <200103210951.f2L9pot18383@webber.adilger.int> (raw)
In-Reply-To: <20010321172800.A11353@comp.nus.edu.sg> from Zou Min at "Mar 21, 2001 05:28:00 pm"
Zou Min writes:
> Then how to interpret slabinfo in 2.2.16 box?
> e.g. grep cache /proc/slabinfo
>
> kmem_cache 32 42
> skbuff_head_cache 2676 2730
> dentry_cache 15626 16988
> files_cache 103 108
> uid_cache 10 127
> slab_cache 85 126
>
> what does those numbers mean?
First number is in-use objects in that cache, second number is
currently-allocated objects in that cache.
> Furthermore, are those cache info above reported as part of the total
> cache in /proc/meminfo ?
Don't know.
> Lastly, which cache can be reclaimed, and which can't?
Slab cache will shrink if there are whole pages which are empty (it may
be that they have to be at the end of the cache). It is hard to tell
from the above numbers if any of the caches could shrink, because it
depends on the number of objects per page, and if there are any whole
pages without allocated objects.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
next prev parent reply other threads:[~2001-03-21 9:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-19 2:07 /proc/cpuinfo for Intel P4 D850GB asenec
2001-03-19 2:33 ` davej
2001-03-19 3:14 ` 2.4.3-pre4: Unable to handle kernel NULL pointer dereference at virtual address 000000fb Shawn Starr
2001-03-19 12:02 ` /proc/cpuinfo for Intel P4 D850GB David Weinehall
2001-03-19 21:58 ` 2.4.3-pre4: Unable to handle kernel NULL pointer dereference at virtual address 000000fb Shawn Starr
2001-03-20 17:01 ` Question about memory usage in 2.4 vs 2.2 Josh Grebe
2001-03-20 17:32 ` Jakob Østergaard
2001-03-20 20:29 ` Josh Grebe
2001-03-21 19:16 ` Jan Harkes
2001-03-21 19:54 ` Rik van Riel
2001-03-20 18:54 ` Jan Harkes
2001-03-20 20:29 ` Josh Grebe
2001-03-20 22:18 ` Rik van Riel
2001-03-20 22:29 ` Juha Saarinen
2001-03-21 9:28 ` Zou Min
2001-03-21 9:51 ` Andreas Dilger [this message]
2001-03-21 10:56 ` Zou Min
2001-03-21 10:14 Manfred Spraul
2001-03-21 17:42 ` Josh Grebe
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=200103210951.f2L9pot18383@webber.adilger.int \
--to=adilger@turbolinux.com \
--cc=jaharkes@cs.cmu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
--cc=squash@primary.net \
--cc=zoum@comp.nus.edu.sg \
/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
all inboxes | Powered by JetHome®