Questions tagged [nvme]
93 questions
1
vote
0 answers
Changing the controller number of of nvme devices
Is there a method of changing the nvme controller ID. So for example turning nvme3n1 into nvme1n1. I've noticed the controllerID usually increments after removing and adding the device, but I'd like to either reduce it or keep it the same. In my…

keeer
- 783
- 1
- 5
- 11
1
vote
0 answers
Where does NVME driver register its namespace as block device in Kernel code?
I am trying to figure out where does NVME driver register its namespace as block device in latest kernel code (5.x.x).
The last explicit block device registration for NVME is seen at kernel 4.3.x block/nvme-core.c where register_blkdev and…

keye
- 135
- 1
- 14
1
vote
1 answer
/sys/bus/pci/devices//rescan file missing on Ubuntu Kernel 5.4.14.050414-generic
On my ubuntu I am missing rescan files under /sys/bus/pci/devices//
Does anyone know how to restore them? Can I simply copy them from /sys/bus/pci/rescan ?
Ubuntu : 16.04.6 LTS
Kernel: 5.4.14.050414-generic
NVMe driver version: 1.0

User1990
- 161
- 11
1
vote
1 answer
GFortran unformatted I/O throughput on NVMe SSDs
Please help me understand how I can improve sequential, unformatted I/O throughput with (G)Fortran, especially when working on NVMe SSDs.
I wrote a little test program, see bottom of this post. What this does is open one or more files in parallel…

MechEng
- 360
- 1
- 13
1
vote
1 answer
NVME read/write command with sequential request option
When NVME controller sends data into FPGA. lba is not in order. we got trouble about getting lba with correct order from nvme source disk.
I am working with NVMe about the project using Samsung SSD 970 PRO 512GB.
In our project, we use FPGA to…

vocsiphuong
- 11
- 2
1
vote
2 answers
How can I test NVME admin command async event request (opcode 0x0C) with nvme-cli?
I have installed nvme-cli on Ubuntu and like to test if the drive actually supports async event request.
I was able to run nvme admin-passthru /dev/nvmen1 --opcode=0x0C without any errors but it times out after a while with error(or warning)…

keye
- 135
- 1
- 14
1
vote
1 answer
How to quickly write indefinite size buffer to NVMe SSD
I am developing an application, where I have large data that's continuously been write into ram, and I am trying to quickly read the data out from ram, and write it into NVMe SSD, after write is completed, I re queue ram space to allow it being…

user2386301
- 412
- 1
- 5
- 18
1
vote
2 answers
echo: write error: Invalid argument while setting io_poll for NVMe SSD
I am using the following command as a root user to enable Linux kernel polling for a NVMe SSD device.
# echo 1 > /sys/block/nvme2n1/queue/io_poll
I get the following error:
bash: echo: write error: Invalid argument
OS details : Ubuntu 16.04, Linux…

Nikhil Sambhus
- 21
- 1
- 4
1
vote
0 answers
How do you get PCIe bus/device/function from a \\.\SCSI handle?
I have a \\.\SCSI#: handle created via CreateFile(). I know it points to a specific HBA or (in my case) NVMe Controller. It must have a Bus/Device/Function associated with it's enumeration.
So far I've tried to figure this out via wmi, though I'm…

csm10495
- 569
- 6
- 12
1
vote
2 answers
nvme command is unusable with error: bash: nvme: command not found
Drivers are loaded but I can't use the command:
lsmod | grep nvme
nvme 32375 0
nvme_core 58654 1 nvme
Error:
bash: nvme: command not found...

Dana Amilov
- 13
- 1
- 4
1
vote
1 answer
SCSI 'VERIFY' equivalent for NVMe
How to translate plain vanilla scsi verify to NVME?
i.e. verify in SCSI with only st lba and verification length provided and all other fields as 0 (so no data transfer).
How to achieve the same in NVMe?

Parzival
- 585
- 2
- 12
1
vote
2 answers
NVMe Throughput Testing with Python
currently I need to do some throughput testing. My hardware setup is that I have a Samsung 950 Pro connected to an NVMe controller that is hooked to the motherboard via and PCIe port. I have a Linux nvme device corresponding to the device which I…

John Frye
- 255
- 6
- 22
1
vote
1 answer
Is there any alternative for ioctl() in linux to interact with nvme drives
I am working on a testing tool for nvme-cli(written in c and can run on linux).
For SSD validation purpose, we are actually looking for sending I/O commands to a particular Submission queue(IO Queue pair). We needed this because we wanted threading,…

Arjun G S
- 23
- 13
1
vote
0 answers
Can I invoke ioctl() (system call) for nvme with different threads using pthreads
I am working on a testing tool for nvme-cli(written in c and can run on linux).
I am interested in repeating a nvme command 'r' number of times with 't' number of threads.
The below code does the repeat of a command along with threading, but the…

Arjun G S
- 23
- 13
0
votes
0 answers
Behavior of Linux NVMe driver IRQ handler
Good afternoon!
I'm looking at the linux kernel's design for NVMe driver.
As far as I understood, whenever interrupt raised by SSD controller, nvme_irq() function takes control.
Inside nvme_irq(), there is function named nvme_process_cq().
When I…

happychild
- 83
- 7