哪里可以存储ulimit -v全局设置?
> me@server:/home/me : ulimit -a
core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 61817
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 6736760
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 61817
virtual memory (kbytes, -v) 9695920
file locks (-x) unlimited
我可以通过ulimit -v INTEGER
增加虚拟内存,但此命令仅影响我当前的会话。
在这些文件中我没有定义ulimit -v
me@server:/home/me : cat /etc/profile | grep ulimit
# ulimit package instead to set up ulimits and your PATH.
# ulimit -Sc 0 # don't create core files
# ulimit -Sd $(ulimit -Hd)
# ulimit -Ss $(ulimit -Hs)
# ulimit -Sm $(ulimit -Hm)
me@server:/home/me : cat /etc/security/limits.conf | grep ulimit
me@server:/home/me :
哪里可以定义虚拟内存值 9695920 ,或者它来自哪里?
感谢您的帮助。
第
答案 0 :(得分:0)
ulimit -v
位于/etc/initscript
,根据MemTotal和SwapTotal计算
me@server:/proc : cat ./meminfo
MemTotal: 7925532 kB
SwapTotal: 4194300 kB