lkml.org 
[lkml]   [1997]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: wierd behaviour...
On 28 Feb 1997, Michael O'Reilly wrote:

> hpa@transmeta.com (H. Peter Anvin) writes:
> > By author: "Michael O'Reilly" <michael@metal.iinet.net.au>
> > >
> > > 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.
> > >
> >
> > WHY???
> >
> > -hpa
>
> No idea. :) Belive me, next reboot that's one patch that's going in
> fast.

[SNIP]

True. But if you write a "normal" program. There is no such disk
access..........


main() {
int i;
if(fork())
wait(&i);
}

When the parent waits for the child, there is no sync() after it exits.
Try it. You'll see.


Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.27 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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