Jump to content


Photo

Swap file

DM800

  • This topic is locked This topic is locked
17 replies to this topic

#1 godrica

  • Member
  • 3 posts

0
Neutral

Posted 19 December 2010 - 17:14

Hello,


How do you create swapfile in OpenPli images, since i cannot find any device manager or so to do that?

can you please help me?

Thanks in advance!

Re: Swap file #2 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 19 December 2010 - 19:09

You'll have to use the command line.

There's no "easy" way to create a swap file because normal users won't need it, it's more likely to do harm than good.
Real musicians never die - they just decompose

Re: Swap file #3 shumifan50

  • Senior Member
  • 195 posts

+2
Neutral

Posted 22 December 2010 - 11:55

Telnet to the STB then:

Make sure the device you want your swapfile on is mounted e.g. like "ls /hdd" or "ls /media/hdd" returns a file list (at least lost&found).
The following assumes adjusting and exisiting swap on /hdd - note that using your hard disk is not a good idea as it will have the disk active a lot of the time, rather use a flash disk.
If you are setting up swap for the first time skip step (1).
1. /sbin/swapoff /hdd/swapfile --- do this only if you are adjusting swapfile size, adjust this to where you have a swapfile at the moment if any
2. /bin/dd if=/dev/zero of= /hdd/swapfile bs=1048576 count=32 -- adjust /hdd to where the device is mounted that you want the swapfile on; adjust count=32 to size of swap in MB
3. /sbin/mkswap /hdd/swapfile
4. /sbin/swapon /hdd/swapfile

As Milo said, if you have a DM800 you should not need a swapfile. If you do, you must have another look at the plugins you are running and consider reducing them. The DM800 has a weak processor and having to use swap will further destabilise the STB. Swap does not improve processor power, it helps when the STB is running out of memory, but it further loads the processor; so if you already suffer from too heavy a load on the processor, swap is a really bad idea.

Swap is really only needed on the older Enigma1 boxes that had very little memory.
DM600, DM800HD, DM7025, DM500S HD. DM800HDse, 90cm multi-bracket dish: 13E, 19.2E, 23.5E, 28.2E. Runnign OpenPli where I can and loving it!

Re: Swap file #4 godrica

  • Member
  • 3 posts

0
Neutral

Posted 23 December 2010 - 16:08

thx for your help shumifan50...

why swap file???

well maybe you can help me decide if i should use it or not...

i'm using rytec epg plugin which uses a lot of RAM from what i understood (i use it for many providers), and i also want to try DDamir Subtitle Player plugin which also (from what i understood) uses a lot of working memory, so i read on one forum that author of subtitle player suggested that making swap is a good idea.

i tried the combination of two plugins and they result in enigma crashing on openpli (i suspect due to large epg data), and i heard user of other images use both plugin with help of swap succesfully... so i decided to try it, but if there are more downsides than upsides, i don't need subtitle players so much to compromise funcionality of the box...

what do you think?

thanks in advance

Re: Swap file #5 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 12 July 2012 - 08:44

Godrica, I was told by a developer (OpenPLi for Ferrari 500 HD) that an update has a good chance of failing (50+ or 60+ files) if there isn't a SWAP file present.

And sure enough, it happened - no go... And I had similar problems with Automounting of my internally placed 16GB USB stick (in sda1, not under usb)...

So, another reason for it...
<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #6 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 12 July 2012 - 08:53

Godrica, I was told by a developer (OpenPLi for Ferrari 500 HD) that an update has a good chance of failing (50+ or 60+ files) if there isn't a SWAP file present.
And sure enough, it happened - no go...

That is indeed possible, and that's why the unattended upgrade has been introduced. So certainly that is no reason for a permanent swap-file.

Re: Swap file #7 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 12 July 2012 - 08:57

I see: remove SWAP after upgrade?

OK but the problem is with automounting and SWAP creation apps, then...

They do not see a device to which one needs to put a SWAP file. And OpenPLi doesn't have a Device Manager, for us, non-geeks... :D
<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #8 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 12 July 2012 - 10:04

In my experience a SWAP-file is only needed in special circumstances. An online update is one of them, but if you use the 'unattended upgrade' no swap is needed at all (because Enigma stops before the upgrade, thus releasing a lot of memory).

Re: Swap file #9 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 12 July 2012 - 10:32

If you want to create a swap-tile you could use the 'systemtools for ppanels'.

Re: Swap file #10 2boom

  • Senior Member
  • 100 posts

+17
Neutral

Posted 12 July 2012 - 12:27

plugin

Attached Files


Edited by 2boom, 12 July 2012 - 12:31.


Re: Swap file #11 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 12 July 2012 - 14:11

Thanx!

I presume you tested it on DB in OpenPLi?
<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #12 2boom

  • Senior Member
  • 100 posts

+17
Neutral

Posted 12 July 2012 - 14:29

I wrote this plugin and, naturally, checked it on pli, since I'm using that image

Re: Swap file #13 littlesat

  • PLi® Core member
  • 57,173 posts

+698
Excellent

Posted 12 July 2012 - 14:39

When the ipk has the correct format and more better when it could be added to e2openplugins we're able to put it on out feeds.... when the author likes that...

Edited by littlesat, 12 July 2012 - 14:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Swap file #14 2boom

  • Senior Member
  • 100 posts

+17
Neutral

Posted 12 July 2012 - 15:01

author agrees :)

Re: Swap file #15 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 12 July 2012 - 18:38

Hehe, cool to see all this - cheers, guys!!! :)
<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #16 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 12 July 2012 - 18:42

Btw, SiF Koala has a good system of sorting these things out, at least to my mind...

You know, a Device Manager, SWAP creation procedure etc. It works nicely!

(Mind, I had a problem with Media Player etc. - but for these things it was good!)

Maybe OpenPLi could adopt these SiF goodies and we should have those problems resolved?

Edited by gorski, 12 July 2012 - 18:43.

<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #17 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 13 July 2012 - 01:03

OK, here is the report, regarding the easyplipanel you kindly sent to me to test, 2boom...

HW: AZbox HD Elite with a custom 1GB DOM by Transcend (as opposed to 256MB standard one)
Kernel: the latest - flashed using telesat's AZUp 2.1.6, "Only kernel" option
Image: the latest - flashed using JaZUp 2.6, which creates 64MB SWAP partition during the flashing process.

Here is the log:

JaZUp! is connected to your AZbox IP: 192.168.1.xx
Your AZbox kernel is Enigma2
Your AZbox is in rescue mode
ID Team : OpenRSI
ID Enigma : OpenPli_for_Azbox
Version : 2.1
About E2 : Enigma2
Your current kernel doesn't support ext4, back to ext3.
Checking availability of destination...
Checking E2 partitions...
Formatting E2 partitions...
Formatting Extended partitions... Please wait! This operation can take a very long time.
FTP sending data Firmware E2...
FTP Transfer Ok!
Creat Swap...
Mounting MMP, please wait!
Mounting firmware, please wait!
Copying E2... Please wait, this operation takes time!
Setting correct Mount Point...
Cleaning up Cramfs...
Unmounting MMP and Root...
Swap off.
Rebooting...
JaZUp! is disconnected from your AZBOX


I installed your plugin many times in two different ways: via ipk you provided me with and from the net.

First, I transferred it to / and to /tmp. It is in /usr/lib/enigma2/python/Plugins/Extensions/PPanel but it doesn't show anywhere or at least I don't know how to access it, sadly...

The xml file is in /etc/ppanels.

Second, I installed it from the net (Plugins -> Extensions management and Advanced -> Packet Management) with the same result...

Please, advise if I am doing something wrong... Could it be the specific E2 image by RSI for AZbug HD?

Or is it only to be used by geeks, via Telnet but no GUI for the 'great unwashed'? :D

I will try this in my Ferrari, too, as soon as I find time... But it seems after holidays...

Thanx again and best regards!

Edited by gorski, 13 July 2012 - 01:07.

<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Swap file #18 Henksat

  • Senior Member
  • 14,843 posts

+50
Good

Posted 13 July 2012 - 06:29

OK, here is the report, regarding the easyplipanel you kindly sent to me to test, 2boom...

HW: AZbox HD Elite with a custom 1GB DOM by Transcend (as opposed to 256MB standard one)


Gorski,

We said several times before, this is the OpenPLi forum for support OpenPLi images and OpenPLi-images related hardware.
For support for your Azbox go to an Azbox forum please.

So this topic will be closed....



Also tagged with one or more of these keywords: DM800

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users