Skip to content
MatiasBjorling edited this page Oct 7, 2014 · 21 revisions

How to use

Basics

Checkout the Linux kernel

git clone https://github.com/OpenChannelSSD/linux.git

Configure it to at least include

CONFIG_LIGHTNVM CONFIG_BLK_DEV_NULL_BLK CONFIG_BLK_DEV_NVME

Initialize using null_blk driver

Instantiate the module with the following parameters

null_blk.queue_mode=4 null_blk.gb=4 null_blk.nr_devices=1 null_blk.lightnvm_num_channels=1

That will instantiate the LightNVM driver with a 4GB SSD, with a single channel. You can see that it was instantiated by checking the kernel log.

dmesg |grep lightnvm

where the output should be similar to

[ 0.359255] lightnvm: pools: 1 [ 0.359773] lightnvm: blocks: 512 [ 0.360364] lightnvm: pages per block: 256 [ 0.361037] lightnvm: append points: 1 [ 0.361663] lightnvm: append points per pool: 1 [ 0.362423] lightnvm: timings: 25/500/1500 [ 0.363081] lightnvm: target sector size=4096 [ 0.363779] lightnvm: disk flash size=4096 map size=4096 [ 0.364665] lightnvm: allocated 131072 physical pages (524288 KB) [ 0.365740] nullb0: unknown partition table

Clone this wiki locally