Questions tagged [mlock]

4 questions
1
vote
2 answers

How to set max locked memory in a pod running as non root

Previously my kubernetes pod was running as root and I was running ulimit -l in its startup script before starting its main program in foreground. However, I can no more run my pod as root, would you please know how can I set this…
Fabrice Jammes
  • 2,275
  • 1
  • 26
  • 39
0
votes
0 answers

Locking shared libraries in RAM

Address Kbytes RSS Dirty Mode Mapping 000055f4b738b000 12 0 0 r---- a.out 000055f4b738e000 12 4 0 r-x-- a.out 000055f4b7391000 4 0 0 r---- a.out 000055f4b7393000 4 0 …
user308485
  • 611
  • 1
  • 5
  • 25
0
votes
0 answers

Is there a mlock issue when allocate 1G hugepages return so slow?

Issue: I meet an issue of the 'mlock()' API. the first load is fast when lock the memory from '"/sys/devices/system/node/node0"', but it is too slow on node1, about take more than 3s to return. 1637788891.109283 (+ 7.153795)…
Charles
  • 1
  • 2
0
votes
0 answers

If I mmap a memory region with no access bits set, does mlockall still force it to be backed by physical memory?

By default Linux doesn't actually back the pages allocated with mmap with any physical memory until the first time they are accessed. However you can force it to do so preemptively by calling mlockall(MCL_CURRENT | MCL_FUTURE). It is a common…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165