One gigabyte was written for the test, first with the cache activated (hdparm -W1 /dev/sda):
<code>root@grml ~ # dd if=/dev/zero of=/root/testfile bs=1G count=1 oflag=direct </file>
Then, with the cache deactivated (hdparm -W0 /dev/sda):
<code>root@grml ~ # dd if=/dev/zero of=/root/testfile bs=1G count=1 oflag=direct </file>
In this test, 512 bytes were written one thousand times, first with the cache activated (hdparm -W1 /dev/sda):
<code>root@grml ~ # dd if=/dev/zero of=/root/testfile bs=512 count=1000 oflag=direct </file>
Then, with the cache deactivated (hdparm -W0 /dev/sda): One thousand accesses required 11.18 seconds, meaning one access took 11.18 ms.
<code>root@grml ~ # dd if=/dev/zero of=/root/testfile bs=512 count=1000 oflag=direct </file>