public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: john moser <bluefoxicy@linux.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Slab allocator . . . cache?  WTF is it?
Date: Tue, 30 Dec 2003 15:50:29 -0800	[thread overview]
Message-ID: <20031230235029.GY1882@matchmail.com> (raw)
In-Reply-To: <20031230221859.15F503956@sitemail.everyone.net>

On Tue, Dec 30, 2003 at 02:18:58PM -0800, john moser wrote:
> I'm wondering, what IS cache?  It seems to increase even when swap is not used,
> and sometimes when there's no swap partition enabled.  It also seems to cause
> me to run into swap when I have ample ram available, assuming that cache is just
> some sort of cache that is copied from and mirrors another portion of ram for
> some sort of speed increase.  

First of all, does it swap out and stay swapped out, or does it swap in and
out constantly?

What kernel version are you running?

The cache, or pagecache is at the core of Linux' memory management.  When
you start an application (or process) it first maps the file into the cache,
and then executes it.  So the cached value also counts the parts of the
files used recently.  It gets much more complicated, but you're invited to
learn more about it.  I'm sure someone else can give you a few URLs with
more details.


  parent reply	other threads:[~2003-12-30 23:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-30 22:18 Slab allocator . . . cache? WTF is it? john moser
2003-12-30 23:01 ` Fox!MURDER
2003-12-30 23:04 ` Doug McNaught
2003-12-30 23:20 ` David Schwartz
2003-12-30 23:50 ` Mike Fedyk [this message]
2003-12-31  3:27   ` Mike Fedyk

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=20031230235029.GY1882@matchmail.com \
    --to=mfedyk@matchmail.com \
    --cc=bluefoxicy@linux.net \
    --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