D&C GLug - Home Page

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

Re: [LUG] Ensuring data is on disk

 

On Sun, 2010-07-11 at 16:03 +0100, Simon Waters wrote:
> 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.
>
Whoops, I'd forgotten about the cache on the drive. There seems to be
hdparm -F to flush the write cache on the drive. Can't spot anything to
flush the read cache.




Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.

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