diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-21 11:49:35 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-21 11:49:35 +0200 |
commit | 896dbbfe4a6fec663b1fa3bb3c529b7c4fb2f625 (patch) | |
tree | 3833ea0056efdf80fc67ae44de6242c10c68473b /nest/cmds.c | |
parent | 6768e0cf9e4b7befbc29f2d40a6b15e1198908f5 (diff) |
Local page allocation
Diffstat (limited to 'nest/cmds.c')
-rw-r--r-- | nest/cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/cmds.c b/nest/cmds.c index 0748c74f..8a5bbdd4 100644 --- a/nest/cmds.c +++ b/nest/cmds.c @@ -120,7 +120,8 @@ cmd_show_memory(void) print_size("Protocols:", rmemsize(proto_pool)); struct resmem total = rmemsize(&root_pool); #ifdef HAVE_MMAP - int pk = atomic_load_explicit(&pages_kept, memory_order_relaxed); + int pk = atomic_load_explicit(&pages_kept, memory_order_relaxed) + + atomic_load_explicit(&pages_kept_locally, memory_order_relaxed); print_size("Standby memory:", (struct resmem) { .overhead = page_size * pk }); total.overhead += page_size * pk; #endif |