]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvme-cli: Support for hugetlbfs
authorKeith Busch <kbusch@kernel.org>
Tue, 5 Nov 2019 18:22:53 +0000 (03:22 +0900)
committerKeith Busch <kbusch@kernel.org>
Wed, 6 Nov 2019 00:48:02 +0000 (09:48 +0900)
commit9df76a3a0f799cdc73d6a4f09747e0f3703df69b
treecfe3bde99c8592d15be0c7e3294b57fe8258ae2b
parent7b612ab9b38d4c6eb626c0a6062d129cbef1cba6
nvme-cli: Support for hugetlbfs

Some commands require exceptionally large data transfers, and the
kernel driver supports only a limited number of phyiscal segments per
command. To help support this, try to allocate physically contiguous
space via hugetlbfs and fallback to a normal malloc if that fails.

Rather than deal with the nuances of allocating huge pages, use
libhugetlbfs as a dependency.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Makefile
nvme.c