mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
improved debug output of memory initialisation
This commit is contained in:
parent
3c890b6e88
commit
1510da9bae
1 changed files with 4 additions and 4 deletions
|
@ -18,14 +18,14 @@
|
|||
#include "memory.h"
|
||||
|
||||
int memory_init()
|
||||
{
|
||||
{ INDENT
|
||||
#ifdef __linux__
|
||||
int nr = kernel_get_nr_hugepages();
|
||||
|
||||
debug(LOG_MEM | 2, "System has %d reserved hugepages", nr);
|
||||
|
||||
if (nr < DEFAULT_NR_HUGEPAGES)
|
||||
if (nr < DEFAULT_NR_HUGEPAGES) {
|
||||
kernel_set_nr_hugepages(DEFAULT_NR_HUGEPAGES);
|
||||
debug(LOG_MEM | 2, "Reserve %d hugepages (was %d)", DEFAULT_NR_HUGEPAGES, nr);
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue