mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ken Brownfield <brownfld@irridia.com>
To: Mike Galbraith <mikeg@wen-online.de>
Cc: Leigh Orf <orf@mailbag.com>, "M.H.VanLeeuwen" <vanl@megsinet.net>,
	Mark Hahn <hahn@physics.mcmaster.ca>,
	Andrew Morton <akpm@zip.com.au>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.4.16 memory badness (fixed?)
Date: Mon, 10 Dec 2001 01:24:08 -0600	[thread overview]
Message-ID: <20011210012408.B11697@asooo.flowerfire.com> (raw)
In-Reply-To: <200112091607.fB9G7mj01944@orp.orf.cx> <Pine.LNX.4.33.0112091758180.411-100000@mikeg.weiden.de>
In-Reply-To: <Pine.LNX.4.33.0112091758180.411-100000@mikeg.weiden.de>; from mikeg@wen-online.de on Sun, Dec 09, 2001 at 06:17:11PM +0100

What about moving the calls to shrink_[di]cache_memory() after the
nr_pages check after the call to kmem_cache_reap?  Or perhaps keep it at
the beginning, but only call it after priority has gone a number of
notches down from DEF_PRIORITY?

Something like that seems like the only obvious way to balance how soon
these caches are flushed without over- or under-kill.

Also, shouldn't shrink_dqcache_memory use priority rather than
DEF_PRIORITY?  I'm also not sure what the reasoning is behind the
nr_pages=chunk_size reset.

In the case that Leigh and I are seeing (and my readprofile runs) it
sounds like shrink_cache is getting called a ton, while the bloated d/i
caches are flushed too little, too late.

Just $0.02 from a newby. ;)

Thanks for the tip, Mike,
-- 
Ken.
brownfld@irridia.com


On Sun, Dec 09, 2001 at 06:17:11PM +0100, Mike Galbraith wrote:
| On Sun, 9 Dec 2001, Leigh Orf wrote:
| 
| > In a personal email, Mike Galbraith wrote to me:
| >
| > |   On Sat, 8 Dec 2001, Leigh Orf wrote:
| > |
| > |   > inode_cache       439584 439586    512 62798 62798    1
| > |   > dentry_cache      454136 454200    128 15140 15140    1
| > |
| > |   I'd try moving shrink_[id]cache_memory to the very top of vmscan.c::shrink_caches.
| > |
| > |   	-Mike
| >
| > Mike,
| >
| > I tried what you suggested starting with a stock 2.4.16 kernel, and it
| > did fix the problem with 2.4.16 ENOMEM being returned.
| >
| > Now with that change and after updatedb runs, here's what the memory
| > situation looks like. Note inode_cache and dentry_cache are almost
| > nothing. Dunno if that's a good thing or not, but I'd definitely
| 
| Almost nothing isn't particularly good after updatedb ;-)
| 
| > consider this for a patch.
| 
| No, but those do need faster pruning imho.  The growth rate can be
| really really fast at times.
| 
| 	-Mike

  reply	other threads:[~2001-12-10  7:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.33.0112090808250.6883-100000@mikeg.weiden.de>
2001-12-09 16:07 ` Leigh Orf
2001-12-09 17:17   ` Mike Galbraith
2001-12-10  7:24     ` Ken Brownfield [this message]
2001-12-10 11:10       ` Rik van Riel
2001-12-10 15:49         ` Leigh Orf
2001-12-10 16:29           ` M. Edward Borasky
2001-12-12  9:04             ` Helge Hafting
2001-12-14 22:54           ` Mike Galbraith
2001-12-09 17:32   ` Mike Galbraith

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=20011210012408.B11697@asooo.flowerfire.com \
    --to=brownfld@irridia.com \
    --cc=akpm@zip.com.au \
    --cc=hahn@physics.mcmaster.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikeg@wen-online.de \
    --cc=orf@mailbag.com \
    --cc=vanl@megsinet.net \
    /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®