Skip to content

Instantly share code, notes, and snippets.

@castrojo
Created January 17, 2020 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castrojo/498eaa5046755f683e1c89c333f21b1f to your computer and use it in GitHub Desktop.
Save castrojo/498eaa5046755f683e1c89c333f21b1f to your computer and use it in GitHub Desktop.
hit# hwinfo --disk
21: IDE 100.0: 10600 Disk
[Created at block.245]
Unique ID: 3OOL.CpunhxhuV+C
Parent ID: abAj.qGv5xpV1CPF
SysFS ID: /class/block/sda
SysFS BusID: 1:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0
Hardware Class: disk
Model: "Samsung SSD 860"
Vendor: "Samsung"
Device: "SSD 860"
Revision: "3B6Q"
Serial ID: "S5GFNG0MA06063X"
Driver: "ahci", "sd"
Driver Modules: "ahci"
Device File: /dev/sda
Device Files: /dev/sda, /dev/disk/by-id/ata-Samsung_SSD_860_EVO_M.2_250GB_S5GFNG0MA06063X, /dev/disk/by-label/rpool, /dev/disk/by-id/wwn-0x5002538e702687d9, /dev/disk/by-uuid/10335347262675951992, /dev/disk/by-path/pci-0000:00:17.0-ata-2
Device Number: block 8:0-8:15
BIOS id: 0x80
Geometry (Logical): CHS 30401/255/63
Size: 488397168 sectors a 512 bytes
Capacity: 232 GB (250059350016 bytes)
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #2 (SATA controller)
hit# fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
fio-3.16
Starting 1 process
test: Laying out IO file (1 file / 4096MiB)
Jobs: 1 (f=1): [m(1)][100.0%][r=9245KiB/s,w=3139KiB/s][r=2311,w=784 IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=2660042: Fri Jan 17 16:49:38 2020
read: IOPS=2138, BW=8554KiB/s (8759kB/s)(3070MiB/367506msec)
bw ( KiB/s): min= 3432, max=150352, per=99.97%, avg=8551.70, stdev=7789.71, samples=735
iops : min= 858, max=37588, avg=2137.88, stdev=1947.43, samples=735
write: IOPS=714, BW=2859KiB/s (2927kB/s)(1026MiB/367506msec); 0 zone resets
bw ( KiB/s): min= 1144, max=50232, per=100.00%, avg=2857.96, stdev=2588.53, samples=735
iops : min= 286, max=12558, avg=714.44, stdev=647.14, samples=735
cpu : usr=3.04%, sys=21.25%, ctx=347015, majf=6, minf=8
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued rwts: total=785920,262656,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=64
Run status group 0 (all jobs):
READ: bw=8554KiB/s (8759kB/s), 8554KiB/s-8554KiB/s (8759kB/s-8759kB/s), io=3070MiB (3219MB), run=367506-367506msec
WRITE: bw=2859KiB/s (2927kB/s), 2859KiB/s-2859KiB/s (2927kB/s-2927kB/s), io=1026MiB (1076MB), run=367506-367506msec
INTEL 660p:
root@goten:~# hwinfo --disk
20: PCI 00.0: 10600 Disk
[Created at block.245]
Unique ID: wLCS.k7s0ooYnsC5
Parent ID: B35A.DDz_x3DkYn0
SysFS ID: /class/block/nvme0n1
SysFS BusID: nvme0
SysFS Device Link: /devices/pci0000:00/0000:00:1d.0/0000:02:00.0/nvme/nvme0
Hardware Class: disk
Model: "Intel Disk"
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0xf1a8
SubVendor: pci 0x8086 "Intel Corporation"
SubDevice: pci 0x390d
Driver: "nvme"
Driver Modules: "nvme"
Device File: /dev/nvme0n1
Device Number: block 259:0
BIOS id: 0x80
Drive status: no medium
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #8 (Non-Volatile memory controller)
root@goten:~# fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
fio-3.1
Starting 1 process
test: Laying out IO file (1 file / 4096MiB)
Jobs: 1 (f=1): [m(1)][17.6%][r=192MiB/s,w=63.8MiB/s][r=49.3k,w=16.3k IOPS][eta 0Jobs: 1 (f=1): [m(1)][25.0%][r=191MiB/s,w=64.3MiB/s][r=48.0k,w=16.5k IOPS][eta 0Jobs: 1 (f=1): [m(1)][31.2%][r=191MiB/s,w=64.4MiB/s][r=48.9k,w=16.5k IOPS][eta 0Jobs: Jobs: 1 (f=1): [m(1)][100.0%][r=192MiB/s,w=63.2MiB/s][r=49.1k,w=16.2k IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=4359: Fri Jan 17 21:45:35 2020
read: IOPS=48.0k, BW=191MiB/s (201MB/s)(3070MiB/16051msec)
bw ( KiB/s): min=191304, max=197448, per=100.00%, avg=195885.69, stdev=1037.47, samples=32
iops : min=47826, max=49362, avg=48971.41, stdev=259.37, samples=32
write: IOPS=16.4k, BW=63.9MiB/s (67.0MB/s)(1026MiB/16051msec)
bw ( KiB/s): min=63040, max=66536, per=100.00%, avg=65470.97, stdev=679.23, samples=32
iops : min=15760, max=16634, avg=16367.69, stdev=169.79, samples=32
cpu : usr=10.55%, sys=79.64%, ctx=178, majf=0, minf=6
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued rwt: total=785920,262656,0, short=0,0,0, dropped=0,0,0
latency : target=0, window=0, percentile=100.00%, depth=64
Run status group 0 (all jobs):
READ: bw=191MiB/s (201MB/s), 191MiB/s-191MiB/s (201MB/s-201MB/s), io=3070MiB (3219MB), run=16051-16051msec
WRITE: bw=63.9MiB/s (67.0MB/s), 63.9MiB/s-63.9MiB/s (67.0MB/s-67.0MB/s), io=1026MiB (1076MB), run=16051-16051msec
Disk stats (read/write):
nvme0n1: ios=774683/258929, merge=0/4, ticks=85264/3446, in_queue=95467, util=100.00%
root@goten:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment