I have some process (test) which runs on my machine. Sometimes it crashes and a core dump is generated.
Whilst the core dump is being written, the machine is completely frozen (even the mouse pointer cannot be moved).
I thought I could limit the CPU usage for the core-dump generation (I'm willing to accept a longer time to write the dump).
How can this be done? Is there a better solution?
I'm running Ubuntu 14.04.

ulimit -c 0to suppress it. Or perhaps if you run your program under gdb you can exploit the error without causing a dump?