public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: dgc@sgi.com, linux-kernel@vger.kernel.org
Subject: Re: [patch 2/3] remove throttle_vm_writeout()
Date: Sun, 25 Mar 2007 15:41:43 -0800	[thread overview]
Message-ID: <20070325154143.54e40200.akpm@linux-foundation.org> (raw)
In-Reply-To: <E1HVEEw-0006cP-00@dorka.pomaz.szeredi.hu>

On Sat, 24 Mar 2007 22:57:34 +0100 Miklos Szeredi <miklos@szeredi.hu> wrote:

> From: Miklos Szeredi <mszeredi@suse.cz>
> 
> Remove this function.  It's purpose was to limit the global number of
> writeback pages from submitted by direct reclaim.  But this is equally
> well accomplished by limited queue lengths.  When this function was
> added, the device queues had much larger default lengths (8192
> requests, now it's 128), causing problems.

This changelog is wrong.

Yes, the _default_ depth of CFQ was decreased.  But it is trivial for the
user to inrcrease the queue depth again, and we'd prefer that the VM not
shit itself in response.

Plus, more significantly, the queue is per-disk.  A system with many disks
will easily be able to cover all memory with under-writeback pages. 
Which is why the level of under-writeback memory is controlled at a higher
level.

These variables are why we must not reply upon per-queue throttling in
VFS/MM/VM.


All that being said, the patch (with a new, correct changlog) is OK.  This
is because we now control the amount of dirty memory in the machine by
running balance_dirty_pages() at first-write-fault time.  So we can no
longer get into the situation where all memory is dirty+writeback.


That being said, this patch is only correct if we don't apply "[patch 1/3]
fix illogical behavior in balance_dirty_pages()".  If we _do_ apply that
patch then we can again get all memory under-writeback and we again need
throttle_vm_writeout().



  reply	other threads:[~2007-03-25 23:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-24 21:55 [patch 1/3] fix illogical behavior in balance_dirty_pages() Miklos Szeredi
2007-03-24 21:57 ` [patch 2/3] remove throttle_vm_writeout() Miklos Szeredi
2007-03-25 23:41   ` Andrew Morton [this message]
2007-03-26  8:35     ` Miklos Szeredi
2007-03-24 21:58 ` [patch 3/3] balance dirty pages from loop device Miklos Szeredi
2007-03-25 10:03 ` [patch 1/3] fix illogical behavior in balance_dirty_pages() Peter Zijlstra
2007-03-25 11:12   ` Miklos Szeredi
2007-03-25 11:34     ` Miklos Szeredi
2007-03-25 11:50       ` Peter Zijlstra
2007-03-25 20:41         ` Miklos Szeredi
2007-03-25 23:35 ` Andrew Morton
2007-03-26  8:26   ` Miklos Szeredi
2007-03-26  9:01     ` Andrew Morton
2007-03-26  9:20       ` Miklos Szeredi
2007-03-26  9:32         ` Andrew Morton
2007-03-26  9:48           ` Miklos Szeredi
2007-03-26  9:32       ` Miklos Szeredi
2007-03-26 10:08         ` Andrew Morton
2007-03-26 13:30           ` Peter Zijlstra
2007-03-27  0:30             ` David Chinner
2007-03-27  0:23       ` David Chinner

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=20070325154143.54e40200.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dgc@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /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