LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alexander Viro <viro@math.psu.edu>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Tobias Ringstrom <tori@ringstrom.mine.nu>,
Simon Kirby <sim@netnation.com>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.11pre4 swapping out all over the place
Date: Sun, 7 Oct 2001 13:56:20 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.4.21.0110071347390.8020-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <Pine.LNX.4.33.0110071031160.7151-100000@penguin.transmeta.com>
On Sun, 7 Oct 2001, Linus Torvalds wrote:
> > I just noticed that when reading from an umounted block device, the pages
> > are not cached between runs, i.e. the cache is dropped on close(). If the
> > block device contains a mounted filesystem, the pages are not dropped.
> > Is this intentional?
Actually, they are dropped as soon as there's no openers left. mounted
fs counts as opener, so does opened file.
> It's intentional, although something that can probably be discussed. The
> reasons for it are:
> - devices with broken or unreliable disk change mechanisms
> - the current dynamic [de-]allocation of block device data structures.
> - historical coherency reasons.
- current logics for driver use count. Block ones do MOD_INC_US_COUNT
on->open() and MOD_DEC_USE_COUNT on ->release().
next prev parent reply other threads:[~2001-10-07 17:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-06 8:06 Simon Kirby
2001-10-06 8:59 ` Tobias Ringstrom
2001-10-06 16:09 ` Linus Torvalds
2001-10-06 17:49 ` Tobias Ringstrom
2001-10-06 21:59 ` Linus Torvalds
2001-10-07 4:59 ` Simon Kirby
2001-10-07 7:43 ` Tobias Ringstrom
2001-10-07 17:39 ` Linus Torvalds
2001-10-07 17:56 ` Alexander Viro [this message]
2001-10-07 4:57 ` David S. Miller
2001-10-06 22:52 ` Andrea Arcangeli
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.GSO.4.21.0110071347390.8020-100000@weyl.math.psu.edu \
--to=viro@math.psu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=sim@netnation.com \
--cc=tori@ringstrom.mine.nu \
--cc=torvalds@transmeta.com \
--subject='Re: 2.4.11pre4 swapping out all over the place' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).