lkml.org 
[lkml]   [1998]   [Jun]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 23 Jun 1998 23:21:30 +0200
FromPavel Machek <>
Subjectsleep after sync? how to flush all caches?
Hi!

From man 2 sync:

BUGS
       sync()  only  schedules  the  writes, so it may return before
the actual writing is
       done.

Is it true these days?

From man 8 sync:

       From Linus: "Note that sync is only guaranteed to schedule the
dirty blocks for writing: it can actually take a short time before all
the blocks are finally written.  If you are doing the sync with the
expectation of killing the machine soon after, please take this into
account and sleep for a few seconds.  [The reboot(8) command takes
these precautions.]

SEE ALSO
       sync(2), update(8), reboot(8), halt(8)

AUTHOR
       Linus Torvalds (torvalds@cs.helsinki.fi)

Is this true these days?

And one final question: Is there way to force linux forget its disk
cache? I would like to play with ondemand loading a bit, and I would
appredicate being able to bring machine into state without cached data
without reboot.

								Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:43    [W:0.250 / U:0.020 seconds]
©2003-2008 Jasper Spaans