mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David Schwartz" <davids@webmaster.com>
To: <linux-kernel@vger.kernel.org>
Subject: RE: Help Understanding Linux memory management
Date: Wed, 11 Apr 2007 17:23:00 -0700	[thread overview]
Message-ID: <MDEHLPKNGKAHNMBLJOLKOEKFCPAC.davids@webmaster.com> (raw)
In-Reply-To: <AD98412A5373CC4AA643D9C021922A541C4DC4@cdskitexg01.cds.int>


> 1) When physical memory runs low, the memory manager will try to use
> memory currently allocated to the pagecache.  Is this true?

Yes.

> 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs
> low, it appears that the memory manager does not try to use memory
> currently allocated to pagecache.  Is this true?

It does try, that doesn't mean it will succeed. If overcommit is disabled,
the OS must have enoug (RAM+swap) to handle the maximum memory consumption
is has allowed to take place.

Perhaps you are laboring under the incorrect assumption that the pagecache
can always be shrunk to zero? Not all the data in the pagecache is
discardable. For example, any page that has been modified from its disk copy
cannot be discarded.

> 3) Is it possible to disable the pagecache?

No, because huge amounts of capability would become impossible. It is not
even clear to me how you could execute self-modifying code without a
pagecache.

DS



  parent reply	other threads:[~2007-04-12  0:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 13:51 Mouawad, Tony
2007-04-10 14:22 ` Laurent Pinchart
2007-04-12  0:23 ` David Schwartz [this message]
     [not found] <fa.jFpt5NWxHc2YH0jy7hPsDxyUr0E@ifi.uio.no>
2007-04-10 14:15 ` Robert Hancock
2007-04-10 14:31   ` Mouawad, Tony
2007-04-10 16:16     ` Alan Cox
2007-04-10 18:17       ` Mouawad, Tony

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=MDEHLPKNGKAHNMBLJOLKOEKFCPAC.davids@webmaster.com \
    --to=davids@webmaster.com \
    --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

all inboxes | Powered by JetHome®