On Wed, Jan 21, 2009 at 4:05 PM, Kenneth Gonsalves <law...@thenilgiris.com> wrote: > suddenly found my '/' partition was full. Took a look at /tmp and found > thousands of core.xxxx files - right up to core.9999. I did rm -f core.* and > a whole lot were removed. But however many times i do this, more core.xxxx > files keep appearing. I managed to free about 26 gb of space, but why is this > happening? is it some bug? what to do about it? distro: mandriva2008.1
A core file is generate when a program does something wrong like dereference a NULL pointer. The OS saves the entire state of the process in the core file and terminates the process. You can use gdb to examine the core file in detail. Look for a daemon that's repeatedly crashing and creating core files. Are you running a web server on this machine? Run "ulimit -c 0" to set core file size to zero bytes and you will not get any more core files. This needs to be run before the offending process is started. limits.conf can control this behavior globally. Modern Linux machines have fine grained control of how core files are created. Google produced this nice article: http://aplawrence.com/Linux/limit_core_files.html - Raja _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc