nvme

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

戏子无情 提交于 2020-01-03 05:07:46
问题 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, but for threading to happen we need to send I/O requests to different queues else the I/O requests would be processed serially. So is there any way in ioctl() where we can specify the Submission queue IDs? Here is how a nvme IO is requested with

Can I invoke ioctl() (system call) for nvme with different threads using pthreads

一笑奈何 提交于 2019-12-22 01:36:57
问题 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 issue here is the parallel execution time is very much high compared to serial execution. As per my observation the reason is the invocation of ioctl() system call from err = nvme_identify(fd, 0, 1, data); i.e nvme_identify() inturn calls ioctl() . So

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

故事扮演 提交于 2019-12-12 05:04:47
问题 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 same) In user space i need to invoke minimum of 2 ioclt() one with write command(nvme_cmd_write) and another with read command(nvme_cmd_read) and compare both the buffer contents. Issue is actually when i wanted to send this command in parallel. At

Is there any alternative for ioctl() in linux to interact with nvme drives

纵饮孤独 提交于 2019-12-11 09:30:07
问题 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, but for threading to happen we need to send I/O requests to different queues else the I/O requests would be processed serially. So is there any way in ioctl() where we can specify the Submission queue IDs? OR Is there other thing similar to ioctl(

How to increase AWS EBS NVME size

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 07:04:52
问题 I have upgraded an EC2 instance from m4 to m5, and now I want to increase the volume. I did perform this command and got the error: growpart /dev/nvme0n1 p1 FAILED: partition-number must be a number Can't find instruction from AWS docs and forums. Any idea how to increase NVME disk ? 回答1: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html growpart [OPTIONS] DISK PARTITION-NUMBER $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 16G 0 disk ├

How to increase AWS EBS NVME size

戏子无情 提交于 2019-12-05 11:25:58
I have upgraded an EC2 instance from m4 to m5, and now I want to increase the volume. I did perform this command and got the error: growpart /dev/nvme0n1 p1 FAILED: partition-number must be a number Can't find instruction from AWS docs and forums. Any idea how to increase NVME disk ? https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html growpart [OPTIONS] DISK PARTITION-NUMBER $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 16G 0 disk ├─nvme0n1p1 259:1 0 8G 0 part / └─nvme0n1p128 259:2 0 1M 0 part So to grow the partition, we use the diskname

Window to go 使用

与世无争的帅哥 提交于 2019-12-05 06:53:32
本人常用的有三台电脑,公司一台, 宿舍一台,周末回家又一台; 为什么不用笔记本电脑? 一个字,懒,懒得背电脑。周末7,8小时的火车上,,又怕丢了,或者给压了。 最近深受补丁之烦,网络太差,打补丁耗时长。经常回家,光打补丁就去了一半的业余时间。。。系统补丁,visual studio 补丁, 前端插件等等。 由于今年固态硬盘大降价,于是 Window to Go就成了我的首选。 百度了半天,没有找到移动硬盘在usb3.0下表显如何,只能自己尝试; 经过一个月的尝试,试了三种情况,终于选定了购买现成的移动硬盘(NVME); 4K写 读 写 感受 移动硬盘盒(2015年购)+固态硬盘480(sata) 10MB左右 120MB   150MB 卡,顿,不适合工作。 移动硬盘盒(2019年购)+固态硬盘480(sata) 20MB左右 220MB     180MB 免强使用,用vs2019 debug 会卡 移动硬盘成品 500GB (T5)    28MB   400MB 300MB 同时开sql server 2014, vs 2017, vs 2019可正常使用。 移动硬盘成品 500GB(NVME) 35MB   400MB   300MB 同时开sql server 2014, vs 2017, vs 2019 流畅 上面的读写测试,都是在安装 WTG 系统后,在WTG里测试

nvme-cli常用指令

守給你的承諾、 提交于 2019-12-03 01:43:57
https://blog.csdn.net/weixin_40343504/article/details/82386024 NVMe management command line interface 1.下载地址 https://github.com/linux-nvme/nvme-cli 2.安装 unzip nvme-cli-master.zip cd nvme-cli-master.zip make && make install /dev/nvme1 nvme1为主控 /dev/nvme1n1 nvme1n1为NVMe硬盘名称 /dev/nvme1n1p1 硬盘nvme1n1的分区 3.常用指令 1)nvme format -s 1 /dev/nvme1n1 格式化硬盘 nvme format /dev/nvme1n1 -n 1 -l 1 4k对齐 nvme format /dev/nvme1n1 -n 1 -l 0 恢复初始状态512 nvme format /dev/nvme1n1 -l 0 Optane device Units512 参数详情请参考:http://www.pudn.com/Download/item/id/3180638.html 2)nvme smart-log /dev/nvme0n1 读取硬盘nvme0n1的smart信息

NVMe固态硬盘工具箱使用说明

橙三吉。 提交于 2019-12-02 22:47:09
https://www.bilibili.com/read/cv562989/ 浦科特NVMe固态硬盘工具箱使用说明 数码 2018-6-7 687阅读7点赞3评论 浦科特已经推出针对NVMe固态硬盘的PlexTool工具箱软件(下载地址http://www.goplextor.com/cn/uploadFile/dd559a7ef765492592bd80a4b84a0609 ),以下为功能介绍和使用说明。 主界面:DRIVE STATUS状态概览 打开PlexTool之后在驱动器下拉列表中选择浦科特NVMe固态硬盘,主界面将显示容量使用情况及健康度。下方从左至右分别是健康度状态仪表、链接状态显示、温度指示器。 健康度100%时指针为最左侧绿色范围,浦科特NVMe固态硬盘(包括M8Pe、M8Se、M9Pe)的PCIE链路速度正常应为Gen3x4,即PCIE 3.0 X4(32Gbps)。温度指示器绿色代表当前温度处于正常范围。 健康监控:SMART DETAILS 浦科特NVMe固态硬盘皆遵守NVMe SMART信息标准,上图中从上至下各项分别为: ID1:Critical Warning警告状态 RAW数值显示0为正常无警告,1为过热警告,2为闪存介质引起的内部错误导致可靠性降级,3为闪存进入只读状态,4为增强型断电保护功能失效(只针对有该特性的固态硬盘)。

存储系列名词

会有一股神秘感。 提交于 2019-12-02 22:28:08
转载:https://www.cnblogs.com/cainiao-chuanqi/p/11686976.html 存储系列名词 专有名词简介: PCI-E 全称是PCI Express,是新一代的 总线接口。 SSD: 固态驱动器(Solid State Disk或Solid State Drive,简称SSD),俗称 固态硬盘 ,固态硬盘是用固态电子存储芯片阵列而制成的硬盘,因为台湾英语里把固体电容称之为Solid而得名。SSD由控制单元和存储单元(FLASH芯片、DRAM芯片)组成。固态硬盘在接口的规范和定义、功能及使用方法上与普通硬盘的完全相同,在产品外形和尺寸上也完全与普通硬盘一致。被广泛应用于军事、车载、工控、视频监控、网络监控、网络终端、电力、医疗、航空、导航设备等诸多领域。 DDR4 :DDR4内存是新一代的内存规格。2011年1月4日,三星电子完成史上第一条DDR4内存。DDR4相比DDR3最大的区别有三点:16bit预取机制(DDR3为8bit),同样内核频率下理论速度是DDR3的两倍;更可靠的传输规范,数据可靠性进一步提升;工作电压降为1.2V,更节能。 何为NVMe ?Non-Volatile Memory Express, 非易失性存储器标准 ,是跑在PCIe接口上的协议标准。NVMe的设计之初就有充分利用到PCIe SSD的低延时以及并行性