ulimit memlock 标志值的含义

ulimit memlock 标志值的含义

当我运行 docker 并使用该--ulimit memlock=-1:-1选项时,-1 的软/硬值是什么意思?这是否意味着我允许该容器/进程锁定无限量的内存?

答案1

是的你是对的。检查memlock的定义这里

memlock 
maximum locked-in-memory address space (KB) 
This is memory that will not be paged out. It is frequently used by 
database management applications such as Oracle or Sybase to lock 
shared memory for a shared pool so that it is always in memory for 
access by multiple sessions.

相关内容