Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uwm.edu!lll-winken!unixhub!shelby!neon!Gang-of-Four!dkeisen From: dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) Newsgroups: comp.unix.internals Subject: Re: What does sync() _really_ do? Message-ID: <1990Dec29.005355.18480@Neon.Stanford.EDU> Date: 29 Dec 90 00:53:55 GMT References: <1990Dec26.165455.9315@Neon.Stanford.EDU> <4633@awdprime.UUCP> Sender: news@Neon.Stanford.EDU (USENET News System) Organization: Sequoia Peripherals Lines: 21 In article <4633@awdprime.UUCP> tif@doorstop.austin.ibm.com (Paul Chamberlain) writes: >dkeisen@Gang-of-Four.Stanford.EDU (Dave Eisen) writes: >>Is unmounting a filesystem an easier way than doing enough reads from >>other parts of the disk to overwrite all of the buffers in the cache? > >I thought that it would have occurred to you while you >were typing that, to try and define "enough". Well, sure. But you know how many buffers there are in the cache and you know how big each of them is. If the kernel really does use a LRU algorithm for buffer allocation (as I understand that it does), there really is no difficulty in figuring out how much needs to be read. -- Dave Eisen dkeisen@Gang-of-Four.Stanford.EDU 1447 N. Shoreline Blvd. Mountain View, CA 94043 Anybody have an extra New Year's ticket? (415) 967-5644 (I can hope, can't I?)