Re: disable buffer cache

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

 



Hi ,

  You can bind /dev/hda1 with /dev/raw/raw1 as 
a raw device using "raw" command . Then on reading 
/dev/raw/raw1 you would be directly accessing 
the disk partition , bypassing the buffer cache .

Cheers !


 --- hai huang <huang195@hotmail.com> wrote: > Hi,
> 
> I'm trying to read "/dev/hda1" sector by sector. 
> This is done by using 
> open() on /dev/hda1, and then read 512 bytes at a
> time.  However, I would 
> like to avoid the effect of read-ahead and buffer
> cache.  Can this be done?
> 
> -
> Hai
> 
>
_________________________________________________________________
> Find a broadband plan that fits. Great local deals
> on high-speed Internet 
> access. 
>
https://broadband.msn.com/?pgmarket=en-us/go/onm00200360ave/direct/01/
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>  

________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. 
Go to: http://in.insurance.yahoo.com/licspecial/index.html

--
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