* Disable core dumps
@ 1999-01-10 5:00 kenand
1999-01-10 5:00 ` Robert Harley
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: kenand @ 1999-01-10 5:00 UTC (permalink / raw)
Hi,
We're running big numerical simulations on our alpha station. Our problem is
that when ever a core dumps happen, it dumps the whole simulation, which can
easily be a few hundred megs. This takes time, and risk filling the file
filesystem.
Is it possible to compile the kernel with the core dump disabled or limited to
some max. amount?
Ken Andersen
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Disable core dumps
1999-01-10 5:00 Disable core dumps kenand
@ 1999-01-10 5:00 ` Robert Harley
1999-01-10 5:00 ` Toon Moene
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Robert Harley @ 1999-01-10 5:00 UTC (permalink / raw)
Ken Andersen (kenand@nbi.dk) writes:
> [...big core dumps...]
>
>Is it possible to compile the kernel with the core dump disabled or
>limited to some max. amount?
Your shell should be able to do this. In tcsh:
------------------------------------------------------------------------------
corton.inria.fr-bla/2038 > unlimit coredumpsize
corton.inria.fr-bla/2039 > limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize unlimited <--
memoryuse unlimited
descriptors 256
memorylocked unlimited
maxproc 256
openfiles 256
corton.inria.fr-bla/2040 > limit coredumpsize 100
corton.inria.fr-bla/2041 > limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize 100 kbytes <--
memoryuse unlimited
descriptors 256
memorylocked unlimited
maxproc 256
openfiles 256
corton.inria.fr-bla/2042 > limit coredumpsize 0
corton.inria.fr-bla/2043 > limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize 0 kbytes <--
memoryuse unlimited
descriptors 256
memorylocked unlimited
maxproc 256
openfiles 256
------------------------------------------------------------------------------
Some shells use "ulimit", "ulimit -c" and so on.
Bye,
Rob.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Disable core dumps
1999-01-10 5:00 Disable core dumps kenand
1999-01-10 5:00 ` Robert Harley
@ 1999-01-10 5:00 ` Toon Moene
1999-01-10 5:00 ` Peter Rye
1999-01-11 5:00 ` Jacob Gladish
3 siblings, 0 replies; 5+ messages in thread
From: Toon Moene @ 1999-01-10 5:00 UTC (permalink / raw)
kenand@nbi.dk wrote:
> Is it possible to compile the kernel with the core dump disabled or limited to
> some max. amount?
Specify:
% ulimit -c 0
after login.
This will set the coredumpsize for all processes run until logout to 0,
which will do what you're asking.
[ You don't have to recompile the kernel for this ... Heck, it seems
that "recompiling the kernel" is getting the same status for Linux
as "rebooting" has for Windows - the cure of every illness ]
Cheers,
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable core dumps
1999-01-10 5:00 Disable core dumps kenand
1999-01-10 5:00 ` Robert Harley
1999-01-10 5:00 ` Toon Moene
@ 1999-01-10 5:00 ` Peter Rye
1999-01-11 5:00 ` Jacob Gladish
3 siblings, 0 replies; 5+ messages in thread
From: Peter Rye @ 1999-01-10 5:00 UTC (permalink / raw)
kenand@nbi.dk writes:
> Hi,
>
> We're running big numerical simulations on our alpha station. Our problem is
> that when ever a core dumps happen, it dumps the whole simulation, which can
> easily be a few hundred megs. This takes time, and risk filling the file
> filesystem.
>
> Is it possible to compile the kernel with the core dump disabled or limited to
> some max. amount?
Depends on which shell your using.
man {bash,tcsh}
Look for ulimit (for bash) or limit for [t]csh.
ulimit -c 0
limit coredumpsize 0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Disable core dumps
1999-01-10 5:00 Disable core dumps kenand
` (2 preceding siblings ...)
1999-01-10 5:00 ` Peter Rye
@ 1999-01-11 5:00 ` Jacob Gladish
3 siblings, 0 replies; 5+ messages in thread
From: Jacob Gladish @ 1999-01-11 5:00 UTC (permalink / raw)
> We're running big numerical simulations on our alpha station. Our problem is
> that when ever a core dumps happen, it dumps the whole simulation, which can
> easily be a few hundred megs. This takes time, and risk filling the file
> filesystem.
>
> Is it possible to compile the kernel with the core dump disabled or limited to
> some max. amount?
One method i've seen used is to create a file named core in the
direcory where you are running it from and remove all permissions from
it . I would have to say the the previous solutions seem to be much more
proper for lack of a better word.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-01-11 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-10 5:00 Disable core dumps kenand
1999-01-10 5:00 ` Robert Harley
1999-01-10 5:00 ` Toon Moene
1999-01-10 5:00 ` Peter Rye
1999-01-11 5:00 ` Jacob Gladish
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox