* Action at Swap-full
@ 1997-07-05 11:58 T. S. Horsnell
1997-07-05 16:16 ` Michal Jaegermann
0 siblings, 1 reply; 3+ messages in thread
From: T. S. Horsnell @ 1997-07-05 11:58 UTC (permalink / raw)
RHL 4.1-axp.
Is there any way to stop a process from consuming the
whole of remaining swap (after legally consuming the
whole of remaining memory)? I seem to get to the stage
where system jobs get swapped out to make way for
the user-process's memory requirements, and then cant
get swapped in again as needed because the rest of swap
has gone and there is nowhere to swapout some user-mem
in order to swap-in the system process. The machine then
hangs.
TIA, Terry Horsnell
tsh@mrc-lmb.cam.ac.uk
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Action at Swap-full
1997-07-05 11:58 Action at Swap-full T. S. Horsnell
@ 1997-07-05 16:16 ` Michal Jaegermann
0 siblings, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1997-07-05 16:16 UTC (permalink / raw)
>
> 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.
Michal
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <199707051616.KAA31061@ellpspace.math.ualberta.ca>]
* Re: Action at Swap-full
[not found] <199707051616.KAA31061@ellpspace.math.ualberta.ca>
@ 1997-07-07 16:44 ` Jeff Odom
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Odom @ 1997-07-07 16:44 UTC (permalink / raw)
> >
> > 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-07-07 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-05 11:58 Action at Swap-full T. S. Horsnell
1997-07-05 16:16 ` Michal Jaegermann
[not found] <199707051616.KAA31061@ellpspace.math.ualberta.ca>
1997-07-07 16:44 ` Jeff Odom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox