Messages in this thread | | | Date | Thu, 27 Feb 1997 20:48:39 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | Re: 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. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| |