SWAP File basics

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

SWAP File basics

Postby stevetogo » Wed Mar 06, 2013 2:42 am

Hi Everyone,

I understand certain basics regarding SWAP file as in it is a temp page file used by the OS, I have the below questions.

I read in some linux sites where they state the responsiveness can be improved, I would like to know what will be the side effects?

I have an E02 plug with 256 megs of RAM on it, I see certain posts in this forum that state a SWAP is not required, I would like to know how is that determined as I always thought having an SWAP is beneficial as it gets turned on demand.

Is there an optimal size or a maximum for a SWAP meaning is it limited by the architecture etc and I would like to know what is the optimum size for a swap?

Last question, I have created a SWAP partition on a HDD for 8 gb, the same hdd also houses all my media and it is a 500 gig. I would like to know if I can use only say (512 or 1024 MB) for a swap and can someone explain me the steps required to do the same.

Thanks,
Steve
stevetogo
 
Posts: 7
Joined: Wed Mar 06, 2013 2:24 am

Re: SWAP File basics

Postby pepedog » Wed Mar 06, 2013 10:16 am

https://wiki.archlinux.org/index.php/Swap
Choose swap file method, then you can change. 1Gb is plenty
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SWAP File basics

Postby yazyazoo » Wed Mar 06, 2013 6:03 pm

If I wanted to make a swap space on my external hard drive I would need to make a ext3 with something like GParted 1 GB partition and name it SWAP and then follow the wiki?

I am not sure if I can have a hard drive with a partition in ext3 and the rest in NTFS, is this possible? If so would the ext partition be named sdb1 and the NTFS partition named sdb2?

So would my swap would be something like?

mkswap /dev/sdb1 /SWAP

Thanks.
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: SWAP File basics

Postby yeehaa » Wed Mar 06, 2013 7:55 pm

$this->bbcode_second_pass_quote('yazyazoo', 'I')f I wanted to make a swap space on my external hard drive I would need to make a ext3 with something like GParted 1 GB partition and name it SWAP and then follow the wiki?

I am not sure if I can have a hard drive with a partition in ext3 and the rest in NTFS, is this possible? If so would the ext partition be named sdb1 and the NTFS partition named sdb2?

So would my swap would be something like?

mkswap /dev/sdb1 /SWAP

Thanks.


why would you pick ext3 when you see the option linuxswap right below it?
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: SWAP File basics

Postby WarheadsSE » Wed Mar 06, 2013 8:41 pm

Here's a thought: why do people thing they still need to make a swap PARTITION
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: SWAP File basics

Postby Socaltom » Wed Mar 06, 2013 9:07 pm

I'm my case I've run my V2 without a swapfile just fine. I did create a swapfile for a time but I found that it was rarely in use when I checked on it.

On my Pogopro with 128MB of memory it was a different story, some programs failed to run at all, and I usually had about 50MB of the swap in use. I tend to make the swap file small. I'm basically a newb, so it doesn't make sense to me how a swapfile larger than my installed memory would be useful. So I'm currently using a 128MB swap. More may be required for some applications, but for what I'm doing its fine ( Samba, CUPS, pyTivo, Webmin)
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: SWAP File basics

Postby stevetogo » Thu Mar 07, 2013 7:47 pm

I wanted to create on because I was Plex Server on it and I was not sure if adding one might help it.
stevetogo
 
Posts: 7
Joined: Wed Mar 06, 2013 2:24 am

Re: SWAP File basics

Postby apowell656 » Sun Mar 10, 2013 3:37 pm

I do not use a swap file and when I decided to run Plex, I found it simpler to buy another PogoPlug and run it there.

-Andre
$this->bbcode_second_pass_quote('stevetogo', 'I') wanted to create on because I was Plex Server on it and I was not sure if adding one might help it.
apowell656
 
Posts: 41
Joined: Fri Jan 25, 2013 1:24 am

Re: SWAP File basics

Postby Kurlon » Mon Mar 11, 2013 2:49 am

$this->bbcode_second_pass_quote('WarheadsSE', 'H')ere's a thought: why do people thing they still need to make a swap PARTITION


In the past, swap to a separate partition was noticeably quicker than to a file on a FS. I haven't tested this in ages however but I suspect many assume like me that it's still the case?
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm
Top

Re: SWAP File basics

Postby yazyazoo » Mon Mar 11, 2013 5:41 am

$this->bbcode_second_pass_quote('WarheadsSE', 'H')ere's a thought: why do people thing they still need to make a swap PARTITION


I was following the advice from the 2nd post on the Official Sabnzbd thread viewtopic.php?f=15&t=741

He says it will reduce errors.
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests