On Wed, 23 Jul 2008, [log in to unmask] wrote:
> All,
>
> In the past couple of days I have been trying to use Acorn (in the CCP4 suite of programs).
> Consistently it starts up fine and after some small amount of time (5-10 minutes) it has taken up
> all the physical memory and then it starts to slowly gobble up all the swap space until the only
> option is to switch the computer off, since all processes (including X and such) are being pushed
> out of memory and they somehow are not swapped back in.
>
> Is there a way to restrict the amount of memory that Acorn is allowed to use? Any other
> suggestions? Parameters to restrict memory I do not see and the Acorn web page does also not
> mention that they exist, neither does it have any suggestions what to do.
If you want a fallback to stop Acorn crashing your system, you can use
kernel-managed resource limits. These are controlled by shell built-in
commands. If you are using csh/tcsh, the command is 'limit'; if you are using
sh/ksh/bash, the command is 'ulimit'. See the 'man' page for the particular
shell for details.
Use 'limit' on its own (csh family), or 'ulimit -a' (sh family) to see the
current limits. If memory-related ones are high or unlimited, you can try
restricting them.
Be aware though, that if Acorn exceeds these limits it will simply crash. If
the resource limit 'coredumpsize' is unlimited, the resulting core file will
be big. This is something of a last resort to protect your system of course,
and not a substitute for getting Acorn to run properly.
Good luck,
Peter.
--
Peter Keller Tel.: +44 (0)1223 353033
Global Phasing Ltd., Fax.: +44 (0)1223 366889
Sheraton House,
Castle Park,
Cambridge CB3 0AX
United Kingdom
|