Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2001 10:43:22 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Soren Schmidt <sos@freebsd.dk>
Cc:        bright@wintelcom.net (Alfred Perlstein), mwm@mired.org (Mike Meyer), Helge.Oldach@de.origin-it.com (Helge Oldach), oberman@es.net, mobile@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: Disk I/O problem in 4.3-BETA 
Message-ID:  <5054.984476602@critter>
In-Reply-To: Your message of "Tue, 13 Mar 2001 10:38:30 %2B0100." <200103130938.KAA95619@freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200103130938.KAA95619@freebsd.dk>, Soren Schmidt writes:
>It seems Alfred Perlstein wrote:
>> 
>> Having write caching on is like having the disk ignore _any_
>> filesystem's attempt to do softupdates/logging/delayed-order-writes
>> because the disk _lies_ to the OS about when a write is safely on
>> the disk.
>
>Hmm, I think the problem here is that the OS doesn't tell the
>drivers WHEN it expects to have data written to disk, I can't
>see why it should not be possible to have even softupdates
>say "now before I write this I expect everything so far to 
>be on disk".

I think it can be done really easy:  Whenever a sync(1) is executed
and every 30 seconds a flush should be sent.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5054.984476602>