mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix typo and add an example for running in privileged mode
This commit is contained in:
parent
20f17bca42
commit
8e5eca92eb
1 changed files with 4 additions and 2 deletions
|
@ -255,8 +255,10 @@ int kernel_set_nr_hugepages(int nr)
|
|||
f = fopen(PROCFS_PATH "/sys/vm/nr_hugepages", "w");
|
||||
if (!f){
|
||||
|
||||
if (access("/.dockerenv", F_OK) != -1)
|
||||
warning("This functionality is unavilable in this mode. Please run in the privileged mode.");
|
||||
if (access("/.dockerenv", F_OK) != -1) {
|
||||
warning("This functionality is unavailable in this mode. Please run the Docker container in the privileged mode:");
|
||||
warning(" $ docker run --privilged ...");
|
||||
}
|
||||
else
|
||||
serror("Failed to open %s", PROCFS_PATH "/sys/vm/nr_hugepages");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue