PATCH: Forcible delaying of UFS (soft)updates

Chris BeHanna cbehanna at panasas.com
Sat Apr 12 12:48:59 PDT 2003


On Saturday 12 April 2003 12:58, Dave Hart wrote:
> Marko Zec said:
> > Alfred Perlstein wrote:
> > > * Marko Zec <zec at tel.fer.hr> [030411 19:01] wrote:
> > > > When enabled, the extended delaying policy introduces
> > > > some additional changes:
> > > >
> > > > - fsync() no longer flushes the buffers to disk, but
> > > > returns immediately instead;
>
> [...]
>
> > > Making fsync() not work is a good way to make any sort
> > > of userland based transactional system break badly.
>
> [...]
>
> > If the disk would start spinning every now and than,
> > the whole patch would than become pointless...
>
> As I feared.
>
> > [...] the fact that the modified fsync() just returns
> > without doing anything useful doesn't mean the data will be
> > lost - it will  simply be delayed until the next coalesced
> > updating occurs.
>
> Unless, of course, your system or power happens to fail.
> Imagine you have a database program keeping track of banking
> transactions. [...]

    Then you won't be running that program on a *laptop*, now, will
you?  It'll be in a NOC with hefty power-failover hardware already in
place.

    Can we pretty please keep criticisms of this patch in their proper
context?  Power-saving features for a *laptop* have little or no
bearing on the behavior of mission-critical back office applications.

-- 
Chris BeHanna
Software Engineer                   (Remove "bogus" before responding.)
behanna at bogus.zbzoom.net
                 Turning coffee into software since 1990.




More information about the freebsd-stable mailing list