[PLUG] Ideal Swap partition size

Manas Alekar maalekar at gmail.com
Sun Mar 23 00:41:21 IST 2008


Not a loopback mounted filesystem, but a swap file ?
---
dd if=/dev/zero of=swapfile count=<whatever>mkswap swapfile
swapon swapfile
---
You can run a bash script with a vmstat that adds new files with thresholds.
But realistically, why not just give 2 GB ? Backing some music you never
listen to on a DVD will free up this space. And, if the material is
copyrighted, and not licensed (the music), DVDs are easier to disown ! :)

Cheers,
Manas

On Thu, Mar 20, 2008 at 9:35 AM, श्रीधर नारायण दैठणकर <
ghodechhap at ghodechhap.net> wrote:

> On Thursday 20 Mar 2008 21:22:09  शंतनु महाजन (Shantanoo Mahajan)
> wrote:
> > How about having loopback mounted file to be used as swap instead of
> > whole
> > partition? This way you can increase/decrease the swap size. You can
> > have
> > multiple swaps. And since swap will be used occasionally, it may not
> > have
> > much impact on performance in desktop environment in most of the cases.
>
> Care to share an illustration with commands?
>
> And how it is different that using swapfiles?
>
>  Shridhar
>
>
> --
> ______________________________________________________________________
> Pune GNU/Linux Users Group Mailing List:      (plug-mail at plug.org.in)
> List Information:  http://plug.org.in/cgi-bin/mailman/listinfo/plug-mail
> Send 'help' to plug-mail-request at plug.org.in for mailing instructions.
>


More information about the Plug-mail mailing list