Skip to content

Instantly share code, notes, and snippets.

@audebert
Last active August 29, 2015 14:18
Show Gist options
  • Save audebert/384e4e4eaae5c53570af to your computer and use it in GitHub Desktop.
Save audebert/384e4e4eaae5c53570af to your computer and use it in GitHub Desktop.
NAS tests
root@archiso ~ # pvcreate /dev/sd{a,b,c,d,e,f}
root@archiso ~ # vgcreate data /dev/sd{a,b,c,d,e,f}
root@archiso ~ # lvcreate -m1 -l 100%FREE --name root data
root@archiso ~ # hdparm -T /dev/mapper/data-root
/dev/mapper/data-root:
Timing cached reads: 4558 MB in 2.00 seconds = 2280.47 MB/sec
root@archiso ~ # hdparm -t /dev/mapper/data-root
/dev/mapper/data-root:
Timing buffered disk reads: 250 MB in 3.02 seconds = 82.77 MB/sec
root@archiso ~ # sync;time bash -c "(dd if=/dev/zero of=/dev/mapper/data-root bs=8k count=500000; sync)"
500000+0 records in
500000+0 records out
4096000000 bytes (4.1 GB) copied, 53.1433 s, 77.1 MB/s
bash: line 1: 1728 Segmentation fault sync
bash -c "(dd if=/dev/zero of=/dev/mapper/data-root bs=8k count=500000; sync)" 0.08s user 6.38s system 12% cpu 53.154 total
root@archiso ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 698.7G 0 disk
└─md127 9:127 0 698.5G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdb 8:16 0 698.7G 0 disk
└─md127 9:127 0 698.5G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdc 8:32 0 931.5G 0 disk
└─md126 9:126 0 931.4G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdd 8:48 0 931.5G 0 disk
└─md126 9:126 0 931.4G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sde 8:64 0 232.9G 0 disk
└─md125 9:125 0 232.8G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
sdf 8:80 0 232.9G 0 disk
└─md125 9:125 0 232.8G 0 raid1
└─md124 9:124 0 1.8T 0 raid0
root@archiso ~ # hdparm -t /dev/md/md3
/dev/md/md3:
Timing buffered disk reads: 684 MB in 3.00 seconds = 227.88 MB/sec
root@archiso ~ # hdparm -T /dev/md/md3
/dev/md/md3:
Timing cached reads: 4736 MB in 2.00 seconds = 2369.25 MB/sec
root@archiso ~ # dd if=/dev/zero of=/dev/md/md3 bs=4k count=1000000
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB) copied, 39.5578 s, 104 MB/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment