27.6.13

Disk Performance




Test on my old Linux PC, with a SATA drive:

  Model: "Hitachi HTS54168"
  Vendor: "Hitachi"
  Device: "HTS54168"
  Revision: "SB2O"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sda
  Size: 156301488 sectors a 512 bytes
  Attached to: #16 (SATA controller)

$ dd if=/dev/zero of=zero.bin bs=512 count=1MB conv=notrunc
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 13.8759 s, 36.9 MB/s

Then I tested on a VM:

# dd if=/dev/zero of=zero.bin bs=512 count=1MB conv=notrunc
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 4.3586 seconds, 117 MB/s

# dd if=/dev/zero of=zero.bin bs=512 count=1MB conv=notrunc
1000000+0 records in
1000000+0 records out
512000000 bytes (512 MB) copied, 2.21377 seconds, 231 MB/s

# time dd if=/dev/zero bs=1M count=10K of=dd.out
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB) copied, 9.63733 seconds, 1.1 GB/s

Test with a simple Java program:
* PC/SATA: 
* Server: 913MB/sec

Is it too fast?

No comments: