lkml.org 
[lkml]   [1997]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: More on 2.1.65 slowdown (disc thrashing)
Date
> >         fsync ( fileno (fp) );
>
> IIRC the fsync() function in ext2 was changed into a plain sync(). The
> reason for this is that fsync() was extremely slow on large files, much
> slower than a full sync would be.
>
> Perhaps the decision to sync or fsync could be made on the basis of the
> file size?

When I played with that for 2.0 the break point seems to between about 1 and
3Mbytes depending on RAM, disks etc. fsync is normally done on small files
so it would be good to handle it nicely



\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.042 / U:1.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site