Re: Testing performance of disk drive??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ahmed,

>> On 25 Apr 2003 17:38:43, Ahmed A <ahmedcali@yahoo.com> said:

   > How can I turn off all sorts of caching, so all reads/writes are
   > directly to the device.  Can I pass certain options to open, or
   > change kernel to disable cache.

The O_DIRECT flag to open(2) will disable caching, where available.  

(I'd be interested to hear from someone regarding *how* available it is;
the last I heard it was in x86-64, and not in arch/i386 because it would
break binary compatibility -- but then there was a more recent thread on
linux-kernel that seemed to offer a patch to add it to i386.)

hdparm(1) is commonly used for disk timing:  `hdparm -t [device]`.

Hope this helps,

- Chris.
-- 
$a="printf.net";  Chris Ball | chris@void.$a | www.$a | finger: chris@$a

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux