Hi ,
-->a) I want to limit the core file size but linux is not limiting the core file size to specified size...
if i limit core file size using(ulimit -c) (keep ulimit -f unlimited)
ulimit -c 10, then core file generated is of 12288 bytes
ulimit -c 20, then core file generated is of 20480 bytes
ulimit -c 30, then core file genearted is 0f 32768 bytes
i dont know what is the funda or on what fators does ulimit limits core file size
if it limits , for ulimit -c 10 , it should limit to 10*1024 bytes i.e 10240 bytes
but core file size is crossing 10240 bytes, and the core size generated is of 12288 bytes.
for ulimit -c 20 , core file size is 20480 , which is again 1024*20
again for ulimit -c 30 , core file size is 32768
[root@localhost three]# ls -la /tmp/corefiles/
total 124
drwxr-xr-x 2 root root 4096 2008-06-28 15:24 .
drwxrwxrwt 53 root root 20480 2008-06-28 15:08 ..
-rw------- 1 root root 12288 2008-06-27 19:34 core.31832
-rw------- 1 root root 1024 2008-06-28 15:18 core.3779
-rw------- 1 root root 1260 2008-06-28 15:18 core.3784
-rw------- 1 root root 20480 2008-06-28 15:23 core.3798
-rw------- 1 root root 32768 2008-06-28 15:24 core.3807
-->b) If we go for ulimit -f option(which limits core file size)
(keeping ulimit -c unlimited)
ulimit -f 1 then core file generated is 1024 bytes
ulimit -f 2 then core file generated is 1260 bytes
ulimit -f 3 then core file generated is 1260 bytes
ulimit -f 5 then core file generated is 5120 bytes
ulimit -f 10 then core file generated is 10240 bytes
now for ulimit -f 1, core file size is limiting to 1024 bytes,
for ulimit -f 2, core file size is limiting to 1260 bytes,but it should actually limit to 2048 bytes?
i am not able to come to a solution please help me
thanks in advance,
kpraveen455@gmail.com
praveen