Jump to content


Photo

Speed up boot process from deep stand by


  • Please log in to reply
59 replies to this topic

Re: Speed up boot process from deep stand by #21 Dimitrij

  • PLi® Core member
  • 10,087 posts

+343
Excellent

Posted 24 December 2011 - 17:50

I guess Bri just won't believe us until he finds out for himself. Ah well, he'll learn two things then...

:D +1

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Speed up boot process from deep stand by #22 Bri

  • Member
  • 8 posts

+1
Neutral

Posted 25 December 2011 - 22:12

I will believe it if anyone says he has installed the root fs on internal hard disk and tried it out. :-)
UBI fs and JFFS2 uses compression. How does this influence the time to load a file? Did anyone tried to investigate why enigma2 needs so long to start? Is the driver initialization, dynamic linking, python scripting initialization, hardware scan, loading the settings or something else the reason? I can not believe that a 400MHz MIPS CPU is not able to boot linux and start a TV application in 30s.

Re: Speed up boot process from deep stand by #23 nietgiftig

  • Senior Member
  • 787 posts

+39
Good

Posted 25 December 2011 - 22:36

I can not believe that a 400MHz MIPS CPU is not able to boot linux and start a TV application in 30s.


That's the spirit.

And now we are all waiting for the moment you show us how to do it.
Success!!!

 Hardware: Master VU Uno 4K SE  1x Mut@nt HD51.4K & 2x ZgemmaH9T
Software : Pli (v7) (7.1rc) 2019 


Re: Speed up boot process from deep stand by #24 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 December 2011 - 22:43

LOL! Honestly, we also don't understand how DMM managed to make it so slow, but apparently they succeeded!

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Speed up boot process from deep stand by #25 Bri

  • Member
  • 8 posts

+1
Neutral

Posted 25 December 2011 - 23:26

I thought you are enigma2 hackers knowing every line of the source code and the only thing I have to do is to ask the right questions. ;-)

Erik you said that suspend to disk is not supported for MIPS in the kernel. I think this is not correct. In the kernel configuration I found the following lines for MIPS:

config ARCH_HIBERNATION_POSSIBLE
def_bool y
depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP

config ARCH_SUSPEND_POSSIBLE
def_bool y
depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP

Suspend to disk seems to be possible if SMP is disabled or support for hot plug CPUs is enabled. The question is is it enough to compile the support for hot plug CPUs in the kernel or do we need hardware support for hot plug CPUs? This might be a second chance to boot in 30s if other fails.

Re: Speed up boot process from deep stand by #26 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 26 December 2011 - 09:53

Not being a specialist (even far from that) I noticed epg,dat and channel/bouquetlist to be very important to boottime (and E2 restart time of course).
If epg.dat is small (or even absent) and only a few channels are in the settings booting is even very fast.

Re: Speed up boot process from deep stand by #27 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 26 December 2011 - 09:53

Hmmm interesting on itself, but you really wouldn't want to turn off the second core/thread only for this!

I've been using suspend-to-disk for some time on linux (i386 arch) and I can say, don't bet your money on it, it's actually quite slow and sometimes it tends to crash.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Speed up boot process from deep stand by #28 Bri

  • Member
  • 8 posts

+1
Neutral

Posted 29 December 2011 - 14:31

My new hard disk arrived yesterday. I installed openpli on hard disk and found some adjustments to speed up the boot process. My box needs 40s now.(27s linux, 13s enigma2)

- installation on hard disk: saves 3s over all (mount needs some seconds therefore the speed gain is not as high as expected, most time is needed for the large 1.4TB partition, might be mounted later in background to save additional 3s)
- static ip address: saves 10s-12s if network cable is not plugged in, otherwise about 2s
- samba & dropbear disabled in rc3.d, getty disabled in inittab: 2s
- removed all not needed satellites in file satellites.xml (good advice from SatKiekerd): saves 3s

Reading XML setting files in enigma2 is slow. I guess there is much room for optimizations. Many parts of enigma2 are written in python. Not a good idea for an embedded system with limited CPU power. I will try to rewrite some slow parts in C++.

Re: Speed up boot process from deep stand by #29 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 29 December 2011 - 14:35

xml parsing has been implemented in c++, indeed for performance reasons

Re: Speed up boot process from deep stand by #30 Bri

  • Member
  • 8 posts

+1
Neutral

Posted 29 December 2011 - 23:03

I know. But parsing a 6500 lines XML file is slow in C++ too. An easy to parse ASCII file format might be better because there is no overhead for a DOM in memory. XML has many advantages for the programmer. But the user does not care about the format the data is stored. The user only sees a program that needs 20s to start.
As far as I know the satellites file is parsed in C++ but the data is stored in a python data structure. Within the next few days I will try to locate the bottlenecks with a profiler.

Re: Speed up boot process from deep stand by #31 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 30 December 2011 - 10:13

Reading and parsing the satellites.xml file takes about 2 seconds. I tried replacing it with a Python binary (pickle) file, which still took one second to load, and had some nasty side-effects. Apparently, loading that file also does some initialization as a side-effect, and skipping it results in malfunction.

Actually, the data from satellites.xml isn't being used at all, until you go into sat searching and stuff. So it's a waste of CPU and memory to begin with. That's a much better path to pursue - don't load it at all!
Real musicians never die - they just decompose

Re: Speed up boot process from deep stand by #32 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 30 December 2011 - 10:21

My intention is to load sats.xml in a workerthread, to make proper use of SMP.
starting e2 consumes 100% on just one of the cores.

Re: Speed up boot process from deep stand by #33 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 30 December 2011 - 12:55

So enigma starts faster on a custom slimmed down sats.xml? Good to know...

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Speed up boot process from deep stand by #34 daddelfalk

  • Senior Member
  • 489 posts

+17
Neutral

Posted 30 December 2011 - 16:39

Hi,

found a german wiki for this research process:

http://wiki.blue-pan..._aus_meiner_Box

Re: Speed up boot process from deep stand by #35 Robinson

  • Senior Member
  • 2,616 posts

+30
Good

Posted 3 January 2012 - 22:52

- removed all not needed satellites in file satellites.xml (good advice from SatKiekerd): saves 3s

Hi guys,

What's the best way to go about removing unwanted satellites from satellites.xml file? I thought I could remove satellites using DreamBoxEdit but I think I can only remove individual transponders and not the whole satellites? Or do I just use my FTP application? In my case, it would be Total Commander.

And do I need to stop Enigma2 to be able to modify the file or is it not necessary?

ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Speed up boot process from deep stand by #36 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 3 January 2012 - 23:05

Dbedit should work, filter by the satellite you want to remove & all services, ctrl-a to select all (all visible belong to the filtered sat) and delete. Save the results...

--
hemi

Re: Speed up boot process from deep stand by #37 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 4 January 2012 - 10:56

found a german wiki for this research process:


Be aware that this wiki is not about OpenPLi, a lot of the things mentioned there won't apply. For example, multiboot will only make it slower, unused skins have no effect at all, and skin parsing in OpenPLi is way faster anyway so don't expect much there.
Real musicians never die - they just decompose

Re: Speed up boot process from deep stand by #38 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 5 January 2012 - 14:24

The best way to remove unused satellite-positions in the sattelites.xml file, is to stop enigma (init 4), load the file in an editor, remove the unused positions, write the file and then start enigma again (init 3).

Or download an alternative satellites.xml file and overwrite the existing one, then restart enigma.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Speed up boot process from deep stand by #39 greatred

  • Senior Member
  • 268 posts

+2
Neutral

Posted 5 January 2012 - 14:37

found a german wiki for this research process:


Be aware that this wiki is not about OpenPLi, a lot of the things mentioned there won't apply. For example, multiboot will only make it slower, unused skins have no effect at all, and skin parsing in OpenPLi is way faster anyway so don't expect much there.


Hi,

and what about all the "unused" localizations found in usr/share/enigma2/po? I always tend to remove all of them except from en, but obviosuly, next Software Update will place them all again. Would that be possible to implement in OpenPLi a function where only the current used language will be kept?
Eventually please correct me if I`m wrong and the remaining localisations dont influence the boot process but are only occupying the flash memory space.

Re: Speed up boot process from deep stand by #40 MiLo

  • PLi® Core member
  • 14,052 posts

+298
Excellent

Posted 5 January 2012 - 14:39

Can't imagine that unused languages have any effect (other than occupying flash space). It only accesses the language file you actually use. So unless someone proves me wrong, I see no reason to build such a thing.
Real musicians never die - they just decompose


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users