-bash: ulimit: core file size: cannot modify limit: Operation not permitted
shoie13@swgi:~$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
shoie13 21846 0.0 0.1 1744 612 ? S Jun12 0:00 /bin/csh -f ./startup 8060
shoie13 22437 2.0 0.5 4148 2684 pts/0 Ss 15:09 0:00 -bash
shoie13 22493 0.1 3.4 19928 18004 ? SN Jun13 5:34 swreality 8060 copyover 7 0 0 0 -1 -1
shoie13 23555 0.0 0.1 2300 896 pts/0 R+ 15:09 0:00 ps ux
shoie13@swgi:~$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 71680
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
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) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 71680
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
shoie13@swgi:~$ su brian
Password:
brian@swgi:/home/shoie13$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
brian 23638 0.0 0.2 2400 1124 pts/0 S 15:09 0:00 su brian
brian 23652 5.0 0.5 4144 2680 pts/0 S 15:09 0:00 bash
brian 23667 0.0 0.1 2300 896 pts/0 R+ 15:09 0:00 ps ux
brian@swgi:/home/shoie13$ ulimit -a
core file size (blocks, -c) 1000000
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 71680
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
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) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 71680
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
brian@swgi:/home/shoie13$ su shoie13
Password:
shoie13@swgi:~$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 71680
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
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) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 71680
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
shoie13@swgi:~$
treeroots@swgi:/home/lovebucket# /sbin/sysctl -w kernel.core_uses_pid=1
error: "Operation not permitted" setting key "kernel.core_uses_pid"
treeroots@swgi:/home/lovebucket#
treeroots@swgi:/home/lovebucket# /sbin/sysctl -w kernel.core_uses_pid=1
error: "Operation not permitted" setting key "kernel.core_uses_pid"
treeroots@swgi:/home/lovebucket#
treeroots@swgi:/home/lovebucket# /sbin/sysctl -w kernel.core_uses_pid=1
error: "Operation not permitted" setting key "kernel.core_uses_pid"
treeroots@swgi:/home/lovebucket#
top - 02:41:01 up 8 min, 1 user, load average: 0.04, 0.01, 0.00
Tasks: 66 total, 2 running, 64 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 368856k total, 36120k used, 332736k free, 1844k buffers
Swap: 262136k total, 0k used, 262136k free, 11864k cached
top - 03:03:11 up 30 min, 1 user, load average: 0.04, 0.02, 0.00
Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 368856k total, 363720k used, 5136k free, 9760k buffers
Swap: 262136k total, 4k used, 262132k free, 305152k cached
I'm not sure I understand exactly what you mean, but I think it will simply disable restrictions on things like core limit size, CPU usage, etc.
Disabling the limits file. Will that allow me to have as big a core size as I want, or let me us ulimit?