Re: fsync delays for a long time.

Andrew Morton
2002-02-14T21:43:06Z

Alexander Moibenko wrote:
>
> On Thu, 14 Feb 2002, Alan Cox wrote:
>
> > > > > This could very well be due to request allocation starvation.
> > > > > fsync is sleeping in __get_request_wait() while bonnie keeps
> > > > > on stealing all the requests.
> > > >
> > > > That may amplify it but in the 2.2 case fsync on any sensible sized file
> > > > is already horribly performing. It hits databases like solid quite badly
> > > >
> > > please elaborate on "sensible sized". In my case it is less then 20MB.
> >
> > That ought to be ok. Andrew may well be right in that case.
> >
> Then what is your advise. Switch to 2.4.x?

I would recommend that, yes. One consideration: if the problem
is still appearing in 2.4 then it is about 1000 times more
likely to get fixed.

What filesystem were you using, BTW? ext2?

If you do test on 2.4, and the problem still appears, please try

wget http://www.zip.com.au/~akpm/linux/2.4/2.4.18-pre9/make_request.patch
patch -p1 < make_request.patch