D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Ensuring data is on disk

 

Paul Hirst wrote:
> On Sat, 2010-07-10 at 21:01 +0100, Simon Waters wrote:
>> Curiosity driven question.
>>
>> If I write data to my external hard disk, how can I ensure that a read
>> to verify that data isn't using a cache?
> 
> You should be able to:
> sync
> echo 3 > /proc/sys/vm/drop_caches
> 
> and then try to read the data back.

Does drop_caches touch the disks own cache. I thought it guaranteed only
to flush the OS caches.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq