From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199707071630.KAA03689@bamboo.verinet.com> Date: Mon, 7 Jul 1997 12:44:34 -0400 (EDT) From: Jeff Odom Subject: Re: Action at Swap-full 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