diff options
author | Maria Matejka <mq@ucw.cz> | 2022-11-01 08:56:26 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-11-01 16:38:24 +0100 |
commit | 37b644413723670928f6b54f2abe0c852eb0b652 (patch) | |
tree | d8e8023f23803d0117cf02f7ea1922d5d8e5f531 /nest/cmds.c | |
parent | 5aebce5e0cc59c4c8459ab92a201df5868f46e7a (diff) |
Moved config-related allocations to config_pool and showing its size in memory usage
Diffstat (limited to 'nest/cmds.c')
-rw-r--r-- | nest/cmds.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/cmds.c b/nest/cmds.c index 8481bf96..bcc8d6c2 100644 --- a/nest/cmds.c +++ b/nest/cmds.c @@ -118,6 +118,7 @@ cmd_show_memory(void) print_size("Routing tables:", rmemsize(rt_table_pool)); print_size("Route attributes:", rmemsize(rta_pool)); print_size("Protocols:", rmemsize(proto_pool)); + print_size("Current config:", rmemsize(config_pool)); struct resmem total = rmemsize(&root_pool); #ifdef HAVE_MMAP print_size("Standby memory:", (struct resmem) { .overhead = page_size * *pages_kept }); |