From: ebiederm@inetnebr.com (Eric W. Biederman)
To: Bernhard Heidegger <bheide@hyperwave.com>
Cc: "Eric W. Biederman" <ebiederm@inetnebr.com>,
Zlatko.Calusic@CARNet.hr, "H. Peter Anvin" <hpa@transmeta.com>,
Linux Kernel List <linux-kernel@vger.rutgers.edu>,
Linux-MM List <linux-mm@kvack.org>
Subject: Re: [PATCH] 498+ days uptime
Date: 28 Aug 1998 08:14:57 -0500 [thread overview]
Message-ID: <m1btp5dz8u.fsf@flinx.npwt.net> (raw)
In-Reply-To: Bernhard Heidegger's message of Fri, 28 Aug 1998 11:09:59 +0200 (MET DST)
>>>>> "BH" == Bernhard Heidegger <bheide@hyperwave.com> writes:
>>>>> ">" == Eric W Biederman <ebiederm@inetnebr.com> writes:
>>> bdflush lets buffers sit for 30 seconds and every 5 seconds it checks
>>> for buffers that are at least 30 seconds old and flushes them.
BH> Ahh, is this bh->b_flushtime?
yes.
>>> bdflush does most of the work.
BH> Yes, I know :-(
BH> Is it possible to reduce the sync_old_buffers() routine to soemthing like:
>>> No. Major performance problem.
BH> Why?
BH> Imagine an application which has most of the (index) file pages in memory
BH> and many of the pages are dirty. bdflush will flush the pages regularly,
BH> but the pages will get dirty immediately again.
BH> If you can be sure, that the power cannot fail the performance should be
BH> much better without bdflush, because kflushd has to write pages only if
BH> the system is running low on memory...
The performance improvement comes when looking for free memory. In
most cases bdflush's slow but steady writing of pages keeps buffers
clean. When the application wants more memory with bdflush in the
background unsually the pages it needs will be clean (because the I/O
started before the application needed it), so they can just be dropped
out of memory. Relying on kflushd means nothing is written until an
application needs the memory and then it must wait until something is
written to disk, which is much slower.
Further
a) garanteeing no power failure is hard.
b) generally there is so much data on the disk you must write it
sometime, because you can't hold it all in memory.
c) I have trouble imagining a case where a small file would be rewritten
continually.
Eric
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org
next prev parent reply other threads:[~1998-08-28 14:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199808262153.OAA13651@cesium.transmeta.com>
1998-08-26 22:49 ` Zlatko Calusic
1998-08-27 12:07 ` Bernhard Heidegger
1998-08-27 12:21 ` Zlatko Calusic
1998-08-27 12:43 ` Bernhard Heidegger
1998-08-28 1:03 ` Eric W. Biederman
1998-08-28 9:09 ` Bernhard Heidegger
1998-08-28 13:14 ` Eric W. Biederman [this message]
1998-08-28 16:03 ` Bernhard Heidegger
1998-08-28 22:03 ` Zlatko Calusic
1998-08-31 8:32 ` Bernhard Heidegger
1998-08-28 21:47 ` Zlatko Calusic
1998-08-28 21:36 ` Zlatko Calusic
1998-08-28 21:32 ` Zlatko Calusic
1998-08-28 9:35 ` Stephen C. Tweedie
1998-08-28 22:16 ` Zlatko Calusic
1998-08-30 15:10 ` Stephen C. Tweedie
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=m1btp5dz8u.fsf@flinx.npwt.net \
--to=ebiederm@inetnebr.com \
--cc=Zlatko.Calusic@CARNet.hr \
--cc=bheide@hyperwave.com \
--cc=hpa@transmeta.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
/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