https://www.ebay.de/sch/i.html?_nkw=icy+box+nvme+pcie

# get info about device
alias harddisks
alias harddisks='lsblk -o '\''NAME,MAJ:MIN,RM,SIZE,RO,FSTYPE,MOUNTPOINT,UUID'\'''

# will give mount point and devicename
harddisks

# might also be usefull
lshw -class storage|less

# then /serach for serial number
 *-nvme
description: NVMe device
product: KINGSTON SKC3000D2048G
vendor: Kingston Technology Company, Inc.
physical id: 0
bus info: pci@0000:03:00.0
logical name: /dev/nvme0
version: EIFK31.6
serial: 50026B7686.... <- this one
width: 64 bits
clock: 33MHz
capabilities: nvme pciexpress msix msi pm nvm_express bus_master cap_list
configuration: driver=nvme latency=0 nqn=nqn.2020-04.com.kingston:nvme:nvm-subsystem-sn-50026B76863F3DB6 state=live
resources: irq:32 memory:fcd00000-fcd03fff
# will give more detailed info about the nvme flashdisk? (harddisk)
udevadm info --query=all --name=/dev/nvme0n1
SKC3000D2048G

# the card itself does not seem to show up via
lspci
# but the storage device does
03:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. KC3000/FURY Renegade NVMe SSD [E18] (rev 01)

wget https://dwaves.de/scripts/bench/bench_harddisk.sh
chmod +x *.sh
time /scripts/bench/bench_harddisk.sh
=== harddisk sequential write and read bench v1 ===
starting test on the device that holds the current directory the user is in
no need to run it as root

========== writing 3GBytes of zeroes ==========
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB, 2.0 GiB) copied, 2.81574 s, 763 MBytes/s pretty ok for sequential write

real	0m2.823s

========== reading 3GBytes of zeroes ==========
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB, 2.0 GiB) copied, 1.65463 s, 1.3 GBytes/s pretty ok for sequential read

real	0m1.661s

========== tidy up remove testfile ==========
real	0m4.653s

wget https://dwaves.de/scripts/bench/bench_harddisk_small_files.py3
time python3 /scripts/bench/bench_harddisk_small_files.py3
=== bench_harddisk_small_files.py3 v1.0 ===

create test folder:
0.002 sec

create files:
21.301 sec <- 300.000 files of 1KByte size

rewrite files:
2.393 sec

read linear:
0.683 sec

read random:
0.696 sec

delete all files:
4.57 sec

real	0m29.663s

how to minitor nvme temp:

unfortunately unlike the magnetic harddisks nvme temp sensors are not (yet?) covered by sensors-detect

wget https://dwaves.de/scripts/nvme_temp.sh
chmod +x *.sh
# root and sudo required
/scripts/nvme_temp.sh
/dev/nvme0 temperature: 23.88°C
/dev/nvme1 temperature: 26.66°C
/dev/nvme2 temperature: 25.00°C

# live monitoring
while true; do /scripts/nvme_temp.sh; sleep 1; clear; done

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin