OK, this is very ignorant of me. Suppose that I have an ext3 formatted
filesystem. Suppose that I do the following series of commands:

#mount my test filesystem
mount /dev/dasdb6 /mnt
#
# create a 200Mb file
dd if=/dev/zero of=/mnt/big.file bs=1024 count=204800
#
#flush the disk cache
umount /dev/dasdb6
#
#remount my test filesystem
mount /dev/dasdb6 /mnt
#
#copy the big.file and time it
time cp /mnt/big.file ~/big.file

When I issue the "umount" command, I know that all "dirty" cache pages
are flushed out to disk. Are they then "released"? That is, when I to
the second "mount" and the following "time cp" command, am I sure that
"/mnt/big.file" is being reread directly from disk and not from any
"left over" cache?

I'm doing this to do some very primitive I/O benchmarking. Is there a
better way?


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its'
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to