From: Jeff Odom <zeus@jhu.edu>
Subject: Re: Action at Swap-full
Date: Mon, 7 Jul 1997 12:44:34 -0400 (EDT) [thread overview]
Message-ID: <fa47bb3100e20a8a3a26002e7a22e7af.axp-list@archive.invalid> (raw)
In-Reply-To: <199707051616.KAA31061@ellpspace.math.ualberta.ca>
> >
> > Is there any way to stop a process from consuming the
> > whole of remaining swap
>
> Type, in bash, 'ulimit -a' and 'help ulimit'.
>
> > has gone and there is nowhere to swapout some user-mem
> > in order to swap-in the system process. The machine then
> > hangs.
>
> Yes, when your memory is gone, then it is gone - real or virtual -
> and your computer cannot do much about that. If you really need
> more swap space you may add more swap partitions; on a new disk,
> for example. A default is eight swap partition total, but this
> can be simply raised by editing source and recompiling your kernel.
You can also add swap "files" to your swap space, if repartitioning isn't
convienient. Use
dd if=/dev/zero of=swapfile bs=1024 count=xxxx
replacing xxxx by the number of megs you want your file to be. This will
create the file, but it still needs to be initialized. To do that, use
mkswap swapfile xxxx
and then add the file to your active swap by
swapon swapfile
Be aware that you may incur a slight performance hit by using a swapfile,
rather than a swap partition, as the swapper must do some filesystem
translation to get at the file. However, if you can't (or don't want to)
repartition, and need the extra swap, this is the way to go.
Jeff Odom
System Administrator
The Johns Hopkins Krieger Mind/Brain Institute
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-07-07 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199707051616.KAA31061@ellpspace.math.ualberta.ca>
1997-07-07 16:44 ` Jeff Odom [this message]
1997-07-05 11:58 Action at Swap-full T. S. Horsnell
1997-07-05 16:16 ` Michal Jaegermann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox