Skip to content

Commit

Permalink
Adjusted logging of private memory used based on its configured type
Browse files Browse the repository at this point in the history
  • Loading branch information
danpascu committed Sep 12, 2018
1 parent b52fc07 commit 90f6068
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions main.c
Expand Up @@ -1143,9 +1143,14 @@ int main(int argc, char** argv)
LM_NOTICE("version: %s\n", version);

/* print some data about the configuration */
LM_INFO("using %ld Mb shared memory\n", ((shm_mem_size/1024)/1024));
LM_INFO("using %ld Mb private memory per process\n",
((pkg_mem_size/1024)/1024));
LM_INFO("using %ld Mb of shared memory\n", shm_mem_size/1024/1024);
#if defined(PKG_MALLOC)
LM_INFO("using %ld Mb of private process memory\n", pkg_mem_size/1024/1024);
#elif defined(USE_SHM_MEM)
LM_INFO("using shared memory for private process memory\n");
#else
LM_INFO("using system memory for private process memory\n");
#endif

/* init async reactor */
if (init_reactor_size()<0) {
Expand Down

0 comments on commit 90f6068

Please sign in to comment.