Questions tagged [nvme]

93 questions
0
votes
2 answers

Disconnecting and reconnecting nvme

Is there capacity within amazon/centos/linux to switch the ordering round of nitro disks? I have an ami which consistently has devices in the incorrect order, by this I mean nvme1n1 and nvme2n1 should be switched round. If I run nvme id-ctrl -v…
keeer
  • 783
  • 1
  • 5
  • 11
0
votes
1 answer

Windows api for identifying NVMe drive

Is there any windows api which returns if the drive is of nvme type? In powershell, when I do Get-PhysicalDisk | select Friendlyname, BusType, MediaType it gives the MediaType as SSD and the BusType as RAID. Ealier, I was using the…
user3615045
  • 193
  • 2
  • 13
0
votes
1 answer

How to include linux driver source files in a kernel module written in C?

I am currently writing a linux kernel module that needs to include a file from the linux driver source code. The particular file I am trying to include is: https://elixir.bootlin.com/linux/latest/source/drivers/nvme/host/nvme.h But the…
Basim Sahaf
  • 33
  • 1
  • 7
0
votes
0 answers

What is the most graceful way to make a kernel module talk to an NVMe driver?

I am currently writing a Kernel module that needs to talk to an NVMe device. What is the best way to do this? I looked into the SPDK library but seems like that it operates in the userspace, which is something that I am not looking for. I found that…
Basim Sahaf
  • 33
  • 1
  • 7
0
votes
1 answer

How do you read package temperature on NVME device inside of SPDK?

We are evaluating using SPDK as an internal framework to build a data recorder with NVMe devices. Disk and SSD devices have had smartctl interfaces which give you package temperatures for a while. It looks like smartctl is now smart enough to do…
Nufosmatic
  • 145
  • 1
  • 11
0
votes
0 answers

linux kernel module not able to find "nvme_ns" struct

I am writing a module in which I am accessing the nvme device using major and minor number. The code for the function is src_disk = get_gendisk(MKDEV(si->src_major, si->src_minor), &part); my_nvme_ns = (struct nvme_ns *)src_disk->private_data; for…
Haris
  • 12,120
  • 6
  • 43
  • 70
0
votes
0 answers

PCIe Problem -- Why pciehp gives contradictory log info

I am running fio jobs on my NVMe SSD and hotplug it then. The platform is hot-pluggable and the system is Centos 7.0.Several seconds after my plug-out, the system encounters a crash and gives these print info: ================ [ 1026.468414]…
0
votes
1 answer

How to check the malloc address is QWord aligned?

I want to test create NVMe I/O Submission Queue Invalid Queue Address Offset I use C posix_memalign to alloc a memory range But how to check that the address i get is QWord aligned? I know if i want the address is word aligned then address end is…
JasonChiuCC
  • 111
  • 1
  • 6
0
votes
1 answer

setting 4k block size for NVMe in QEMU

I want to use 4k block size for emulated nvme device in qemu. So I end up with a script like this: #!/bin/bash QEMU_EXE="path/to/bin/qemu-system-x86_64" SYSTEM_IMG="path/to/ubuntu1604.qcow2" NVME_IMG="./nvme_8G.img" $QEMU_EXE -m 2G \ …
Fengggli
  • 123
  • 1
  • 10
0
votes
1 answer

Is there any way for ioctl() in linux to specify submission queue ID for a nvme IO request

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,…
0
votes
1 answer

How does a ioctl() call the driver code

I am working on a testing tool for nvme-cli(written in c and can run on linux). For SSD validation purpose, i was actually looking for a custom command(For e.g. I/O command, write and then read the same and finally compare if both the data are…
Arjun G S
  • 23
  • 13
0
votes
0 answers

Is there a way to have a ioctl() with new(customized) command

I am working on a testing tool for nvme-cli(written in c and can run on linux). For SSD validation purpose, i was actually looking for a custom command(For e.g. I/O command, write and then read the same and finally compare if both the data are…
0
votes
0 answers

How can I have multiple threads working on the same for loop in C which in turn calls a function

This code is part of nvme-cli(its built on linux api) I am trying to build an option to repeat a nvme-command say n times with p number of threads. For example, if I say repeat 50-times with 5-threads, then each of the 5 threads should repeat…
Arjun G S
  • 23
  • 13
0
votes
1 answer

OPAL-SED library ioctl usage?

I am trying to use the sed-opal libraries added in the linux-kernel 4.11 To do that, i have written a basic program like this: #include #include #include #include #include #include…
0
votes
1 answer

NVMoF: how to tell a command capsule from a response capsule

Let's say I have RoCEv2 traffic between 2 nodes A & B. A uses RDMA_SEND to send a command capsule to B. Then A receives a capsule from B (B also uses RDMA_SEND). At this moment, how does A know if this is the response to its command sent in step…
Yao Lin
  • 11
  • 2