lkml.org 
[lkml]   [1997]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: wierd behaviour...
Date


There's a simple reason for all this. The Sysvinit does a sync() in
it's main loop. So every time it gets a SIGCHLD from a process w/o a
parent dying, it does a sync(), which flushes all the dirty buffers
(including atime mods), and voilo! Tons of disk writing.

Michael.

mlehmann@hildesheim.sgh-net.de (Marc Lehmann) writes:
[ ... ]

> btw:
> void main(void) { if(fork()) sleep(2); else sleep(1);}
>
> shows this behavious, while
>
> void main(void) { if(fork()) sleep(1); else sleep(2);}
>
> does not... (except for the atime update, which is much later..)
> i.e. if the child dies BEFORE the parent we get the behaviour,
> not otherwise round.. (hmm.. I thought it would be
> an interatcion with init or the shell, but...)

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