Spdk/lib
Dariusz Stojaczyk 408bb168ac event/reactor: take into account 1 extra slot in event mempools
The following assumes we use env_dpdk underneath.

rte_mempools use rte_rings internally. When creating
a mempool with capacity N, we internally try to create
a ring with least N+1 size. That's because rte_rings
need one extra empty element to differentiate between
the full and empty state. To make it worse, the ring
size has to be a power of two, so rte_mempools use
`rte_align32pow2(mp->size + 1)` for the size calculation.
And rte_ring memory has to be physically contiguous.

Allocating a mempool of capacity 262144 requires at
least (2 * 262144) * sizeof(void *) = 4MB memory. This
made us require at least 2 physically contiguous
2MB hugepages.

Change-Id: Iabc984a29a60c0b2cf5309a78cd1bcce28ac7b3d
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/408925
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-04-30 17:25:51 +00:00
..
bdev bdev/qos: No operation for zero QoS setting on not enabled bdev 2018-04-26 23:40:05 +00:00
blob blobstore: fix payload offset incrementation on operation split 2018-04-26 20:28:28 +00:00
blobfs blobfs: sync length if append occurs after cache eviction 2018-04-11 16:03:14 -04:00
conf conf: Remove use of perror() for strdup() failure 2017-12-15 16:13:27 -05:00
copy copy/ioat: reduce log level of informational messages 2018-04-06 18:31:54 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk app: pci_black/whitelist on global config and command line option 2018-04-30 17:25:41 +00:00
event event/reactor: take into account 1 extra slot in event mempools 2018-04-30 17:25:51 +00:00
ioat scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
iscsi iscsi: close connection array shm file descriptor 2018-04-23 16:15:37 +00:00
json json: add va_arg versions for write_string and write_named_string 2018-02-23 15:27:16 -05:00
jsonrpc jsonrpc: convert send queue to singly linked tail queue 2018-04-12 00:11:35 -04:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol lvol: Creating 2 lvols simultaneously with same name 2018-04-17 14:03:22 -04:00
nbd nbd: fix JSON config dump 2018-04-25 17:38:02 +00:00
net vpp: add support for vpp comm library 2018-04-17 20:33:43 -04:00
nvme nvme: capture VS register at init time 2018-04-30 17:19:07 +00:00
nvmf Revert "nvmf: disconnect other connections if admin qpair disconnects." 2018-04-27 16:38:46 +00:00
rocksdb rocksdb: remove nonsensical fallocate #ifdef 2018-03-27 12:41:12 -04:00
rpc rpc: remove the existing socket file when application starts 2018-03-02 16:48:53 -05:00
scsi scsi: validate dev name length 2018-04-10 15:43:03 -04:00
trace app,lib: fix checking mmap return value 2018-03-30 16:18:34 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util io_channel: add asserts in spdk_io_device_register 2018-04-18 12:33:25 -04:00
vhost vhost: fix build with DPDK 17.02 and older 2018-04-25 22:27:02 +00:00
virtio bdev/virtio: Abort on bad index in virtio_dev_queue_get_thread 2018-04-19 15:48:36 -04:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00