Re: [Fwd: [linux-audio-dev] info point on linux hdr]

2000-04-17 Thread Martin Schenk
"Stephen C. Tweedie" wrote: > > Try opening the file with open(O_SYNC), and write the data in 128k chunks > or so. Alternatively call fsync() every so often to force the data to > disk (though fsync is not particularly efficient on large files with > 2.2). > If you are interested in a more eff

[Fwd: some benchmark data for fsync (2.3.19, 2.3.19+fastsync, NT)]

1999-10-09 Thread Martin Schenk
Here are some benchmark data to show the difference my fastsync patch (posted here a few days ago as "faster fsync and real fdatasync") can make. Basically this patch omits a scan through all the cached blocks of a file on fsync and it enables fdatasync not to sync the inode if only mtime/cti

[Fwd: faster fsync and real fdatasync [patch against 2.3.18]]

1999-10-09 Thread Martin Schenk
I noticed that sys_fsync can be very slow, because it has to scan all cached pages of the file (this takes about 1ms/MByte on my dual P3-450). I wrote a patch that fixes this problem and adds an implementation of fdatasync (the inode does not get flushed if only mtime/ctime are changed). I first