linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ed Tomlinson <tomlins@cam.org>
To: Jonathan Morton <chromi@cyberspace.org>,
	Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Jeff Garzik <jgarzik@mandrakesoft.com>, linux-mm@kvack.org
Subject: Re: [PATCH] VM tuning patch, take 2
Date: Thu, 7 Jun 2001 21:59:38 -0400	[thread overview]
Message-ID: <01060721593800.06690@oscar> (raw)
In-Reply-To: <l03130325b745dbca4a2f@[192.168.239.105]>

On Thursday 07 June 2001 21:35, Jonathan Morton wrote:
> >-       free += (dentry_stat.nr_unused * sizeof(struct dentry))
> > >>PAGE_SHIFT; -       free += (inodes_stat.nr_unused * sizeof(struct
> > inode)) >> PAGE_SHIFT; +       /* free += (dentry_stat.nr_unused *
> > sizeof(struct dentry)) >> PAGE_SHIFT;
> >+          free += (inodes_stat.nr_unused * sizeof(struct inode)) >>
> >PAGE_SHIFT;
> >+        */
> >
> >
> >On workloads full of dentries/inodes, allocations are going to fail with
> >this change (remember most dentries/inodes _are_ usually freeable).
>
> OK.  I made that change to help bring vm_enough_memory() and
> out_of_memory() in line with each other, so if we put that back in, it
> needs to be put in out_of_memory() as well.
>
> As it happens, the dentry and inode caches get shrunk under VM pressure,
> and so by the time swap is full and buffers+cache are a minimum size, these
> caches will normally also be shrunk to their furthest sensible extent.

Think you are right Jonathan.  This adding this back is _not_ going to make a 
difference.  With the changes Rik made for 2.4.5, these caches are agressivily
shrunk when there is free shortage...

So far so good with take 2 here.

Ed Tomlinson
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  parent reply	other threads:[~2001-06-08  1:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l0313031fb74590aea499@[192.168.239.105]>
     [not found] ` <3B1FED7C.4E483BCD@mandrakesoft.com>
2001-06-07 22:59   ` Jonathan Morton
2001-06-07 23:44     ` Marcelo Tosatti
2001-06-08  1:35       ` Jonathan Morton
2001-06-08  0:19         ` Marcelo Tosatti
2001-06-08  2:08           ` Jonathan Morton
2001-06-08  0:42             ` Marcelo Tosatti
2001-06-08  2:35               ` Jonathan Morton
2001-06-08  1:59         ` Ed Tomlinson [this message]
2001-06-09  3:30           ` Rik van Riel

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=01060721593800.06690@oscar \
    --to=tomlins@cam.org \
    --cc=chromi@cyberspace.org \
    --cc=jgarzik@mandrakesoft.com \
    --cc=linux-mm@kvack.org \
    --cc=marcelo@conectiva.com.br \
    /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