Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 00:57
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
World record in Linux boot time! 1 Second :)
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
DMcCunney

Joined: 02 Feb 2009
Posts: 897

PostPosted: Tue 09 Mar 2010, 16:57    Post subject:  

sunburnt wrote:
yep... If you have one set of hardware you don`t need lots of boot code to figure it out.
In fact most of Puppy`s boot code does exactly that, and finding itself of course...
Driver modules can be compiled into the kernel ( no loading...), etc., etc...

And one of the standard things Linux users used to do was get the source and recompile the kernel. Generic kernels are...generic, built to work with the widest range of hardware. If you know what hardware you have, you can recompile the kernel to include only the bits you need for a smaller, faster, and more efficient system, and do thing like build in the drivers rather than load them at boot.

It's not done that much now, I suspect because hardware has gotten fast and cheap enough that the performance gain isn't worth the effort involved.
______
Dennis
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 09 Mar 2010, 17:07    Post subject:  

Top 3 things that slow Puppy down

a lot of the boot time delays in puppy regarding searching for files is either for backwards compatibility or lack of coordination between the installer script and the init script - not sure which. phome/psubdir should be included by default in every install so that those scans during init are unnecessary. I'm only about 80% familiar with the init process and ~90% with the frugal install script, so I've been hesitant to make the changes myself.

Also copying of the sfs into ram could begin as a thread early on in the init sequence and run concurrent with the rest of the init sequence ... leaving a breadcrumb for the pivotroot sequence to check before running

Adding the modules.dep is already supported but you have to enable it in the woof build (trades 1-2 seconds of boot speed for <1Mb size)

Just my 2¢

The command line setup interface also increases the perceived boot speed. I have addressed this before for keyboard, language and mouse for sidder's hsb puplet, but have yet to come up with a good way to do it for video (too complex for the time I had) or timezone (was not supported). I would suggest en_US, detected mouse, UTC timezone and xorg video at the top resolution and bit depth, with a gui that pops up at first boot to allow any necessary changes.[/code]

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1857
Location: South Australia

PostPosted: Tue 09 Mar 2010, 17:11    Post subject:  

What would be nice to see is a very fat Puppy that has all the drivers to work on the majority of computers. Once the live CD/DVD is booted it determines what drivers are actually required for the individual hardware and all unused drivers are stripped out and a new OS is created just for this one machine. This would reduce the current distro size significantly and I expect also the boot time. I think Puppy does this to some degree within the pupsave file.

I think Jemimah has used this method for pupeee.

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 09 Mar 2010, 17:25    Post subject:  

I worked on a script about a month ago to do exactly that - zdrv cutter
... still needs testing to work out the corner cases though
goingnuts has adapted it for pup'n-go (resulted in 3MB zdrv sfs including the modules.dep - down from over 20MB)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1857
Location: South Australia

PostPosted: Tue 09 Mar 2010, 18:00    Post subject:  

technosaurus wrote:
I worked on a script about a month ago to do exactly that - zdrv cutter
... still needs testing to work out the corner cases though
goingnuts has adapted it for pup'n-go (resulted in 3MB zdrv sfs including the modules.dep - down from over 20MB)


Excellent technosaurus.

I've been thinking about this for a long time now but I just can't seem to find the time and I probably don't have the tech skills anyway.

Another enhancement that I think would be good is to have a separate config file to the pupsave file. The config file would save all of your settings. I couldn't count the amount of times when I've had to create a new pupsave as it got trashed because of some sofware I had installed. I know it creates another file but I can see some advantages especially if the config file was plain text and easy to manually edit.

I actually like the idea of having additional software included by the SFS method as it keeps the pupsave file size down.

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 09 Mar 2010, 18:16    Post subject:  

The single config file is not a bad idea & fairly easy to implement on a case by case basis - it may actually reduce the number of files by combining them into one location. /etc/DISTROSPECS ??? (or something like that) contains a lot already.

as for sfs vs pup_save - maybe you would prefer some sort of compressed save file?

here is a little trick for making "meta-packages"

mkdir mypets
dir2pet mypets

When it asks you for dependencies, just enter the comma separated list of the .pets that you normally install.
+firefox,+bmp,+icewm,...

Now you have a metapackage that you can use to install all of your favorites in each Puppy/puplet you install

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Wed 10 Mar 2010, 13:05    Post subject:  

deleted - wrong post Embarassed
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0584s ][ Queries: 11 (0.0033s) ][ GZIP on ]