aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm/ssvm.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-11-07 17:00:15 -0800
committerFlorin Coras <florin.coras@gmail.com>2019-11-12 01:37:07 +0000
commitf8461bfb4822ca20f64df19dfbb3170e99f7e89d (patch)
tree3133371a099a0cd9b9df737b923fdadf4289a806 /src/svm/ssvm.c
parent320998a8126766c0db92d9c7652f765f9565a7b5 (diff)
svm: improve fifo segment verbose cli
Type: feature Also make sure that size for dlmalloc allocated private segments is accurate. Change-Id: I6ec81ff99a13dd29b9664d768835a68019f0c96c Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/svm/ssvm.c')
-rw-r--r--src/svm/ssvm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index feba7f93496..a16965e5e67 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -377,6 +377,11 @@ ssvm_master_init_private (ssvm_private_t * ssvm)
}
mspace_disable_expand (heap);
+
+ /* Find actual size because mspace size is rounded up by dlmalloc */
+ struct dlmallinfo dlminfo;
+ dlminfo = mspace_mallinfo (heap);
+ rnd_size = dlminfo.fordblks;
#endif
ssvm->ssvm_size = rnd_size;