From: Silviu Marin-Caea <silviu@genesys.ro>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-kernel@vger.kernel.org
Subject: Re: dynamic allocation of swap disk space
Date: Mon, 10 May 2004 13:22:41 +0300 [thread overview]
Message-ID: <409F57F1.2060803@genesys.ro> (raw)
In-Reply-To: <200405101003.i4AA3uJt000135@81-2-122-30.bradfords.org.uk>
John Bradford wrote:
>>The way I see the solution is: allocate swap space dynamically, until
>>there is no need for more or the disk becomes nearly full. If that
>>happens, then start thrashing it, all right. Then when the condition is
>>gone and things are back to normal deallocate the additional swap.
>
>
> Very bad idea in my opinion.
Most likely quite so, I'm not a guru yet :-)
> Over allocating swap space is a BAD practice, but the effects are usually not
How about dynamically allocating up to a certain limit.
Say, you have 256 MB or even less (to save space), and you allocate when
needed up to 1 GB, then stop allocating, thrash disk, let the kernel
detect and kill the runaway process.
next prev parent reply other threads:[~2004-05-10 10:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-10 8:50 Silviu Marin-Caea
2004-05-10 10:03 ` John Bradford
2004-05-10 10:22 ` Silviu Marin-Caea [this message]
2004-05-10 20:28 ` Paul Jackson
[not found] <fa.n6pggn5.84en31@ifi.uio.no>
2004-05-11 15:22 ` Ray Bryant
2004-05-11 15:52 ` John Bradford
2004-05-11 15:54 ` Valdis.Kletnieks
2004-05-11 16:39 ` John Bradford
2004-05-11 16:28 ` Ray Bryant
2004-05-12 6:56 ` Silviu Marin-Caea
2004-05-11 16:00 ` Oliver Neukum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=409F57F1.2060803@genesys.ro \
--to=silviu@genesys.ro \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®