View unanswered posts | View active topics It is currently Wed May 22, 2013 4:17 am



This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page 1, 2  Next
 [How to] Mount a swap partition 
Author Message

Joined: Tue Oct 05, 2010 9:35 pm
Posts: 4299
Location: Netherlands
Post [How to] Mount a swap partition
Steffen (s-n1965) developed the “mountSwap” script file, which mounts and activates a Linux swap partition on your Playon.
A Linux swap partition performs the same function as the Windows Pagefile.sys, namely providing a virtual extension of the computer’s real memory RAM.
It is not clear why the Playon’s firmware does not provide this function. When the internal hard disk is formatted by the system, a swap partition is created, but it is not used by the player.
By using a swap partition the system’s stability will be enhanced and a small increase of processing speed will be achieved, especially for applications which demand a lot of memory.

An English instruction (in PDF format) to install the script can be found here. The original German text can be downloaded from here.
The script file can be downloaded from here.
All files together zipped into a RAR file can be downloaded from here. A text file with the Telnet commands is included. It may be simpler to make a text file with commonly used commands in advance and copy these commands from the text file.

I would like to thank Steffen for his ongoing efforts to enhance the Playon’s firmware.

_________________
Evert

Playon!HD Mini Firmware 7317 modified [192.168.178.3]
PC Windows 7-64 SP1 [192.168.178.DHCP]
PC Windows 7-64 SP1 + Virtual XP SP3 [192.168.178.DHCP]
Fritz!Box 7390 [192.168.178.1]
Seagate BlackArmor 400 4 x 3TB in RAID-5 [192.168.178.2]


Thu Jan 19, 2012 12:01 pm
Profile

Joined: Thu Nov 04, 2010 1:11 pm
Posts: 23
Post Re: [How to] Mount a swap partition
Thanks !!
Really a good Instruction.
Now my mini1 works with Firmware7317 and YAMJ. Without the SWAP Partition the Player freeze all the time or reboots.
I have the changed minfree to 10240.
Absolutely recommended !!!!!!
By the way, the player seems to be a little bit faster...


Thu Feb 02, 2012 10:03 pm
Profile

Joined: Tue Oct 05, 2010 9:35 pm
Posts: 4299
Location: Netherlands
Post Re: [How to] Mount a swap partition
Thank you for the feed back. Decreasing the minFree to 10240 indeed accelerates the box.

_________________
Evert

Playon!HD Mini Firmware 7317 modified [192.168.178.3]
PC Windows 7-64 SP1 [192.168.178.DHCP]
PC Windows 7-64 SP1 + Virtual XP SP3 [192.168.178.DHCP]
Fritz!Box 7390 [192.168.178.1]
Seagate BlackArmor 400 4 x 3TB in RAID-5 [192.168.178.2]


Sat Feb 04, 2012 11:26 am
Profile

Joined: Mon Aug 08, 2011 3:40 pm
Posts: 31
Location: NL
Post Re: [How to] Mount a swap partition
Tried it this morning, but got lost somewhere.

I have a mini1 and an 128MB USB-stick (EXT3 formatted) with the mountSwap script. Do I have to make the swap partition also on this USB stick? and then proceed as in the instructions?

_________________
I know too little about MS Windows to say something useful about it.


Sat Feb 04, 2012 2:55 pm
Profile

Joined: Thu Nov 04, 2010 1:11 pm
Posts: 23
Post Re: [How to] Mount a swap partition
Snowmiss wrote:
Tried it this morning, but got lost somewhere.

I have a mini1 and an 128MB USB-stick (EXT3 formatted) with the mountSwap script. Do I have to make the swap partition also on this USB stick? and then proceed as in the instructions?


Yes, the stick must be defined as a swap partition. You can use gparted for example under linux.
I have divided my harddisk (500gbyte) into two partitions, i used 128 mbyte for linux swap, the rest for data ..
/tmp/usbmounts/sda1 ==> swap part.
/tmp/usbmounts/sda2 ==> Data part. (i use ext3, because it is faster)


Sat Feb 04, 2012 3:12 pm
Profile

Joined: Mon Aug 08, 2011 3:40 pm
Posts: 31
Location: NL
Post Re: [How to] Mount a swap partition
Rampler wrote:
Yes, the stick must be defined as a swap partition. You can use gparted for example under linux.
I have divided my harddisk (500gbyte) into two partitions, i used 128 mbyte for linux swap, the rest for data ..
/tmp/usbmounts/sda1 ==> swap part.
/tmp/usbmounts/sda2 ==> Data part. (i use ext3, because it is faster)


Thanx, I've used gparted to make one big giant (128MB :D) swap partition on it. Now I have to wait for my daughter to finish her movie and then I can continue this story.

_________________
I know too little about MS Windows to say something useful about it.


Sat Feb 04, 2012 3:21 pm
Profile

Joined: Thu Nov 04, 2010 1:11 pm
Posts: 23
Post Re: [How to] Mount a swap partition
Snowmiss wrote:
Rampler wrote:
Yes, the stick must be defined as a swap partition. You can use gparted for example under linux.
I have divided my harddisk (500gbyte) into two partitions, i used 128 mbyte for linux swap, the rest for data ..
/tmp/usbmounts/sda1 ==> swap part.
/tmp/usbmounts/sda2 ==> Data part. (i use ext3, because it is faster)


Thanx, I've used gparted to make one big giant (128MB :D) swap partition on it. Now I have to wait for my daughter to finish her movie and then I can continue this story.


Maybe, you get not 100 % benefit, while you are using a USB-Stick (cheap one), because the transfer rate is much lower than a harddisk. Please let me know your results. In the Meanwhile a reduced the minfree paramter to 5120, and is working really good.


Sat Feb 04, 2012 3:54 pm
Profile

Joined: Mon Aug 08, 2011 3:40 pm
Posts: 31
Location: NL
Post Re: [How to] Mount a swap partition
Well, the swap partition is in use

Code:
/ # free
              total         used         free       shared      buffers
  Mem:       120632       108164        12468            0          632
  Swap:       124952          116       124836
Total:       245584       108280       137304


and I do feel the mini1 is responding a (little) bit quicker. At first start it rebooted when going to one of my shortcuts (to the NAS) but later this didn't happen anymore.

_________________
I know too little about MS Windows to say something useful about it.


Sat Feb 04, 2012 4:15 pm
Profile

Joined: Thu Nov 04, 2010 1:11 pm
Posts: 23
Post Re: [How to] Mount a swap partition
Snowmiss wrote:
Well, the swap partition is in use

Code:
/ # free
              total         used         free       shared      buffers
  Mem:       120632       108164        12468            0          632
  Swap:       124952          116       124836
Total:       245584       108280       137304


and I do feel the mini1 is responding a (little) bit quicker. At first start it rebooted when going to one of my shortcuts (to the NAS) but later this didn't happen anymore.


For me, the main reason for using swap part. is, that i havent any freezes or reboots anymore. Especially using YAMJ.


Sat Feb 04, 2012 4:23 pm
Profile

Joined: Tue Oct 05, 2010 9:35 pm
Posts: 4299
Location: Netherlands
Post Re: [How to] Mount a swap partition
I have one 512 MB USB stick with a FAT 32 partition of 384 MB (for utilities like firmware, fonts, background) and a Swap partition of 128 MB. I stream form my server and think it is a waste to have a USB hard disk run for the swap partition only.

_________________
Evert

Playon!HD Mini Firmware 7317 modified [192.168.178.3]
PC Windows 7-64 SP1 [192.168.178.DHCP]
PC Windows 7-64 SP1 + Virtual XP SP3 [192.168.178.DHCP]
Fritz!Box 7390 [192.168.178.1]
Seagate BlackArmor 400 4 x 3TB in RAID-5 [192.168.178.2]


Sat Feb 04, 2012 4:39 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 18 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.