linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Morton <chromi@cyberspace.org>
To: 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: Fri, 8 Jun 2001 02:35:47 +0100	[thread overview]
Message-ID: <l03130325b745dbca4a2f@[192.168.239.105]> (raw)
In-Reply-To: <Pine.LNX.4.21.0106072042340.1156-100000@freak.distro.conectiva>

>-       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.

--------------------------------------------------------------
from:     Jonathan "Chromatix" Morton
mail:     chromi@cyberspace.org  (not for attachments)

The key to knowledge is not to rely on people to teach you it.

GCS$/E/S dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)


--
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/

  reply	other threads:[~2001-06-08  1:35 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 [this message]
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
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='l03130325b745dbca4a2f@[192.168.239.105]' \
    --to=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