Mail Archives: djgpp-workers/1998/07/28/04:11:26
On Mon, 27 Jul 1998, Nate Eldredge wrote:
> > And sync on my machine (Linux) doesn't take several seconds. Less than
> > one, actually, and it's not idle.
>
> I think it will depend on what the system is doing. On Unix, it's
> traditional for the `update' daemon to call `sync' every 30 seconds or
> so, so if it's been fairly idle since then, there won't be much to do.
I don't want this thread to become Unix sysadmin class, but
``traditional'' is too optimistic. I have seen Unix machines that don't
sync at all. In addition, some varieties of Unix can produce a lot dirty
buffers in the cache, depending on what they are doing. One particular
case that gave me trouble was consistently wiping out files on power
outage, even though they occured many minutes after a file was created.
(I solved that by forcing a sync in the Makefile that produced the
files.)
- Raw text -