runtime: shrink tx buffer pool

This commit is contained in:
Josh Fried 2019-02-22 12:32:34 -05:00
parent 8df0a72ee3
commit 5fbf9c6757
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
#define COMMAND_QUEUE_MCOUNT 4096
/* the egress buffer pool must be large enough to fill all the TXQs entirely */
#define EGRESS_POOL_SIZE(nks) \
(PACKET_QUEUE_MCOUNT * MBUF_DEFAULT_LEN * max(16, (nks)) * 32UL)
(PACKET_QUEUE_MCOUNT * MBUF_DEFAULT_LEN * max(16, (nks)) * 16UL)
DEFINE_SPINLOCK(qlock);
unsigned int nrqs = 0;

View File

@ -7,7 +7,7 @@ sysctl -w vm.hugetlb_shm_group=27
sysctl -w vm.max_map_count=16777216
sysctl -w net.core.somaxconn=3072
echo 8192 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 4096 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
for n in /sys/devices/system/node/node[1-9]; do
echo 0 > $n/hugepages/hugepages-2048kB/nr_hugepages