[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Ideal Swap Partition Size



I always thought swap space should 1 1/2 times the amount of physical memory.

If you start thrashing swap space you should buy more physical memory and fix your programs that might have a memory leak or not release memory properly after completing.

James


From: Patrick O'Callaghan <pocallaghan gmail com>
To: "Community assistance, encouragement, and advice for using Fedora." <fedora-list redhat com>
Sent: Thursday, January 22, 2009 7:43:17 AM
Subject: Re: Ideal Swap Partition Size

On Thu, Jan 22, 2009 at 12:05 PM, Tim <ignored_mailbox yahoo com au> wrote:
> Tim:
>>> It seems strange to think that a system will swap just because
>>> there's swap space available.  Surely, it's only going to swap when
>>> it needs to, and you'd be faced with operating and swapping, or being
>>> unable to swap and unable to operate once you reach that stage.
>
> Patrick O'Callaghan:
>> True, but in some systems -- especially those with realtime
>> requirements -- it can actually be preferable to fail than to go slow
>> (due to what we oldtimers call "thrashing").
>
> But it wouldn't be case of your application running or not, it'd be a
> case of something else dying off, as some additional task was started up
> at an inopportune moment.  A Linux OS isn't just one running process,
> even if you only run one application on the box.

Er, I think I knew that :-)

The scenarios in which dying is better than swapping are definitely
not common, but typically a real-time system will be configured to run
only certain processes anyway, i.e. it's not a general-purpose system
that just happens to have some RT app running on it.

Note that this is in no way implies that just having more swap is in
itself going to make the system use it. I was simply putting forward a
situation in which the general rule (more swap is better) might not
apply.

poc

--
fedora-list mailing list
fedora-list redhat com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]