diff options
author | jimharris <jimharris@FreeBSD.org> | 2016-02-17 15:38:05 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2016-02-17 15:38:05 +0000 |
commit | efd4fe5452c6487edb2d6291278f022cd05d2296 (patch) | |
tree | bb952af01dd1d0ea1bf66f34324d086588f26a6e /lib/libc/stdlib/labs.c | |
parent | b9d4be0c4e918d40c0526998dc097fccb3d08426 (diff) | |
download | FreeBSD-src-efd4fe5452c6487edb2d6291278f022cd05d2296.zip FreeBSD-src-efd4fe5452c6487edb2d6291278f022cd05d2296.tar.gz |
MFC r295022:
nvd: add hw.nvd.delete_max tunable
The NVMe specification does not define a maximum or optimal delete
size, so technically max delete size is min(full size of namespace,
2^32 - 1 LBAs). A single delete operation for a multi-TB NVMe
namespace though may take much longer to complete than the nvme(4)
I/O timeout period. So choose a sensible default here that is still
suitably large to minimize the number of overall delete operations.
This also fixes possible uint32_t overflow on initial TRIM operation
for zpool create operations for NVMe namespaces with >4G LBAs.
Approved by: re (glebius)
Sponsored by: Intel
Diffstat (limited to 'lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions