linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-mm@kvack.org
Subject: Re: __set_page_dirty_nobuffers superfluous check
Date: Mon, 16 Aug 2004 13:37:29 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0408161324140.31643-100000@localhost.localdomain> (raw)
In-Reply-To: <20040814133717.GA32755@logos.cnet>

On Sat, 14 Aug 2004, Marcelo Tosatti wrote:
> 
> Makes sense, why arent tmpfs/swap using mpage operations? 

They don't fit together usefully.

Because the multipage operations are designed to help
disk-based filesystems, gathering together readaheads and writeouts
to reduce disk seeking; but tmpfs and swap are cases too special.

writepages is important for guaranteeing data to disk efficiently;
but tmpfs and swap don't need any such guarantee, sync'ing them is
just a waste of effort (and so they're marked as "memory_backed"
to avoid it).

swap already had its own swapin_readahead (of limited value:
swap locality is much less significant than file locality),
not much point in trying to convert that over to readpages.

tmpfs is mainly in memory, does overflow to swap and thence to disk,
but the rules of that exchange are too peculiar to use general routines.

When he originated the readpages and writepages operations, akpm did
start off calling writepages from vmscan.c.  I don't remember just why
he dropped that in the end (certainly tmpfs had to suppress it, I forget
how it fared with swap), perhaps just too much complication for too little
gain.  Nowadays, if vmscan is doing too many little file writeouts, the
answer is usually to tweak thresholds to kick in pdflush earlier to do
the more efficient writepages, rather than try to shoehorn writepages
back into vmscan.

Hugh

--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

      reply	other threads:[~2004-08-16 12:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13 18:05 Marcelo Tosatti
2004-08-14  6:46 ` Hugh Dickins
2004-08-14 13:37   ` Marcelo Tosatti
2004-08-16 12:37     ` Hugh Dickins [this message]

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=Pine.LNX.4.44.0408161324140.31643-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=linux-mm@kvack.org \
    --cc=marcelo.tosatti@cyclades.com \
    /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