FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-10-2012, 12:09 AM
Smoot Carl-Mitchell
 
Default Swap size on RAM upgrade

On Thu, 2012-08-09 at 19:39 -0400, Felix Miata wrote:
> On 2012/08/10 00:14 (GMT+0100) sam tygier composed:
>
> > Felix Miata wrote:
>
> >> On 2012/08/09 00:56 (GMT+0200) Amedee Van Gasse composed:
>
> >>> If you don't use hibernation: swap can be *any* size
>
> >> That includes no swap partition at all. My most used system has 4G RAM
> >> and 8G of swap partitions. The latter is a total waste, since I keep
> >> both swap partitions unmounted and find no evidence of drawbacks in so
> >> doing.
>
> > It will effect what happens if for some reason your programs want to use
> > more than 4GB of RAM. This might happen because you have some very large
> > files open, or because some program is misbehaving. In the case where you
> > have no swap the out of memory (OOM) killer will be forced to step in and
> > kill the program that it thinks is causing the problem. when you have
> > enough swap, then this will be used and stuff will run slowly. If you are
> > sure this will never happen, then you might not need swap.
>
> The way I understand swap, if there is no swap partition, and the kernel
> requires swap, and freespace exists on the / filesystem, it will create and
> use a swap file on the / filesystem.

This functionality appears to be in the swapspace package and does not
appear to be installed by default. Interesting concept. It does appear
to have enough knobs to keep a runaway process from consuming your disk.
It would make initial system configuration easier.

--
Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot@tic.com


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-13-2012, 08:05 AM
sam tygier
 
Default Swap size on RAM upgrade

On 10/08/12 01:09, Smoot Carl-Mitchell wrote:
> On Thu, 2012-08-09 at 19:39 -0400, Felix Miata wrote:
>> The way I understand swap, if there is no swap partition, and the kernel
>> requires swap, and freespace exists on the / filesystem, it will create and
>> use a swap file on the / filesystem.

Thats not a built in feature of the linux kernel, or anything I have heard of being enabled in any distro.

> This functionality appears to be in the swapspace package and does not
> appear to be installed by default. Interesting concept. It does appear
> to have enough knobs to keep a runaway process from consuming your disk.
> It would make initial system configuration easier.
>

Thats very interesting, a bit tricky to search for given the name, but i think this is it
http://pqxx.org/development/swapspace/
in ubuntu it is in the universe repo, so it can't be part of the default install.

also found this page, https://help.ubuntu.com/community/SwapFaq/ which has lots of useful wisdom.

sam


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-13-2012, 05:54 PM
Phil Dobbin
 
Default Swap size on RAM upgrade

sam tygier wrote:

> Thats very interesting, a bit tricky to search for given the name, but i think this is it
> http://pqxx.org/development/swapspace/
> in ubuntu it is in the universe repo, so it can't be part of the default install.
>
> also found this page, https://help.ubuntu.com/community/SwapFaq/ which has lots of useful wisdom.

So, as far as I can tell after reading all replies & perusing all the
links (albeit briefly in some cases), swap, all kinds of, is an issue
with hibernate (i.e. laptops & the like) and/or if excessive swapping or
RAM consumption is seen.

Once again, thanks to all.

Cheers,

Phil...

--
currently (ab)using
CentOS 6.2, Debian Squeeze, Fedora Beefy, OS X Snow Leopard, Ubuntu Precise


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 12:05 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org