On Tue, Jul 08, 2003 at 04:41:05PM +0300, Eran Rundstein wrote:
> Hi.
> 
> Wont this result in a greater loss of data, in case a powerbreak occurs?
> What exactly is the kernel caching? Files?

Some real-life examples:

1. Try running:

  find / -name no_such_file 2>/dev/null
  find / -name no_such_file 2>/dev/null

The first run will probably take noticable time  period. The second will
end immediately. This is because all the relevant directory inodes will
be in cached in your memory.

2. ditto for 'grep shouldnt_be_there /var/log/messages' (for a large
messages file).

3. Mount a floppy. Make sure it is empty. Copy a large enough file into
it (at least 1MB). This will take some time. Then read this file from
the floppy. The read "from the floppy" will end immidietly.


I'm sure you can easily come up with examples of very noticable caching.

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to