nvmf: add buf_cache_size to conf and rpc functions
Change-Id: I11514dc5981e9750d693202ff86af22b2064ae72 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/439434 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
3d0c41383b
commit
3709db7383
@ -94,6 +94,9 @@
|
|||||||
# It is used to provide the read/write data buffers for the qpairs on this transport.
|
# It is used to provide the read/write data buffers for the qpairs on this transport.
|
||||||
#NumSharedBuffers 512
|
#NumSharedBuffers 512
|
||||||
|
|
||||||
|
# Set the number of shared buffers to be cached per poll group
|
||||||
|
#BufCacheSize 32
|
||||||
|
|
||||||
[Nvme]
|
[Nvme]
|
||||||
# NVMe Device Whitelist
|
# NVMe Device Whitelist
|
||||||
# Users may specify which NVMe devices to claim by their transport id.
|
# Users may specify which NVMe devices to claim by their transport id.
|
||||||
|
@ -524,6 +524,11 @@ spdk_nvmf_parse_transport(struct spdk_nvmf_parse_transport_ctx *ctx)
|
|||||||
if (val >= 0) {
|
if (val >= 0) {
|
||||||
opts.num_shared_buffers = val;
|
opts.num_shared_buffers = val;
|
||||||
}
|
}
|
||||||
|
val = spdk_conf_section_get_intval(ctx->sp, "BufCacheSize");
|
||||||
|
if (val >= 0) {
|
||||||
|
opts.buf_cache_size = val;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
transport = spdk_nvmf_transport_create(trtype, &opts);
|
transport = spdk_nvmf_transport_create(trtype, &opts);
|
||||||
if (transport) {
|
if (transport) {
|
||||||
|
@ -1590,6 +1590,7 @@ dump_nvmf_transport(struct spdk_json_write_ctx *w, struct spdk_nvmf_transport *t
|
|||||||
spdk_json_write_named_uint32(w, "io_unit_size", opts->io_unit_size);
|
spdk_json_write_named_uint32(w, "io_unit_size", opts->io_unit_size);
|
||||||
spdk_json_write_named_uint32(w, "max_aq_depth", opts->max_aq_depth);
|
spdk_json_write_named_uint32(w, "max_aq_depth", opts->max_aq_depth);
|
||||||
spdk_json_write_named_uint32(w, "num_shared_buffers", opts->num_shared_buffers);
|
spdk_json_write_named_uint32(w, "num_shared_buffers", opts->num_shared_buffers);
|
||||||
|
spdk_json_write_named_uint32(w, "buf_cache_size", opts->buf_cache_size);
|
||||||
|
|
||||||
spdk_json_write_object_end(w);
|
spdk_json_write_object_end(w);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user