mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
process: Log when limiting the amount of locked memory
This can be useful for debugging.
This commit is contained in:
parent
afbb8a4c8c
commit
a6a5ac9650
@ -766,6 +766,10 @@ virProcessSetMaxMemLock(pid_t pid, unsigned long long bytes)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
VIR_DEBUG("Locked memory for process %lld limited to %llu bytes",
|
||||
(long long int) pid, bytes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */
|
||||
|
Loading…
Reference in New Issue
Block a user