Re: Cache size of the hard drive?



On Sat, 31 May 2008 15:14:41 -0400
"Qiuli Han" <ivyharry@xxxxxxxxx> wrote:

I am trying to see how much cache does my hard drive have. I installed
hwinfo, but it only gives me some hardware vendor information and system
location information.

Is there anyway I can see my disk's cache size?

running 8.04, hard disk is: WDC WD3200KS-00P (as per hwinfo)

Hi,

no need to install extra software ;-)
You can just use hdparm, here is an example on my hard drive
(replace sda with the relevant device name of your own drive of course).

-----------------------------
$ sudo hdparm -i /dev/sda
[sudo] password for vincent:

/dev/sda:

Model=SAMSUNG HD502IJ , FwRev=1AA01110,
SerialNo=S13TJDWQ412337 Config={ Fixed }
RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
BuffType=DualPortCache, BuffSize=16384kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-3,4,5,6,7
--------------------------------

My drive has 16MB of cache, it is described above as "BuffSize=16384kB".

You can also use hdparm -I (upper case 'i') to display even more
information about your drive.

Just run "man hdparm" to see all the options available ;-)

--
Vince

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Cache size of the hard drive?
    ... hwinfo, but it only gives me some hardware vendor information and system ... hard disk is: ... You can just use hdparm, here is an example on my hard drive ... $ sudo hdparm -i /dev/sda ...
    (Ubuntu)
  • Re: "throttling down" a fast hard drive to simulate a slower one
    ... > I could think of was tweaking different hdparm settings until 'hdparm ... > until 'hdparm -t' reported a smaller value for buffered disk reads. ... cache memory of 8 MB and drive B has a built in cache memory of 2 MB. ... Drive A spins in 15000 rpm and is able to continuosly transfer 50 MB/s. ...
    (comp.os.linux.hardware)
  • Re: Disabeling write-cache on an ide-harddisk
    ... writing up to 20 Mb is affected by the disk's cache. ... >> This low performance is expected and I suppose that the first ... > A cache at the size of 20 MB is not the cache on your HD so hdparm won't ... Instead you should turn off the caching in RAM that Linux has. ...
    (comp.os.linux.hardware)
  • Re: [RFT][PATCH] ide-disk.c: more write cache fixes
    ... this works to stop it from complaining. ... write cache as evidenced by the tiobench results. ... probably confuse more users than just me -- I believe I saw hdparm just ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Cache size of the hard drive?
    ... I am trying to see how much cache does my hard drive have. ... hwinfo, but it only gives me some hardware vendor information and system ... WDC WD3200KS-00P ...
    (Ubuntu)