forums.xandros.com Forum Index forums.xandros.com
Xandros User Forums
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to accelerate boot process
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.xandros.com Forum Index -> The Lab
View previous topic :: View next topic  
Author Message
taternik
Xplorer


Joined: 31 Jan 2004
Posts: 94
Location: Ontario, Canada

PostPosted: Thu Dec 01, 2005 4:08 pm    Post subject: Reply with quote

Arne Anka wrote:
Or as I said earlier, just add the modules by name in /etc/modules (no need to create scripts). Wink


True, but I wanted to have an easy way to turn the hardware detection on if I ever need it in the future. Now I can just change the link S21xandros-detection back to /etc/init.d/xandros-detection to achieve this.

Anyway, after dealing with xandros-detection, I went on to deal with cups. I have decided to background initialization of cups daemon. In /etc/init.d/cupsys I changed the line
start-stop-daemon --start --quiet --exec $DAEMON
to
start-stop-daemon --start --quiet --background --exec $DAEMON

This decreased the boot time only slightly: now, for some reason, another script (xandros-dvmonitor) took longer to execute... I guess my CPU is working at 100%, and backgrounding one process just slows down other processes. But I have decided to background /etc/init.d/xandros-dvmonitor using the same method, by adding --background switch. And voila, this time it helped! I reduced boot time by about 3 seconds.

In total, before all of this tweaking, total execution time for all scripts was 58.44 seconds. After disabling xandros-detect, and backgrounding cupsys and dvmonitor, showtimes reports total execution time 37.4 seconds.

Total reduction so far: 21 seconds - not bad. I wonder what to try next. Perhaps compiling all modules into the kernel, but this is a big job.
Back to top
View user's profile Send private message
jaykruz
Xplorer


Joined: 30 Apr 2004
Posts: 100
Location: Allendale, Michigan

PostPosted: Mon Dec 12, 2005 4:38 pm    Post subject: Reply with quote

I agree with OSXuser that Mac boots faster than Linux... I use OSX daily at work for cutting/plotting. Don't really care for it.

Linux is very slow booting; however, I always thought Xandros had a quicker boot time than most other distros I have tried... can't really remember. I never shut down my system.

Jay K.
_________________
"All that we are is the result of what we have thought." - Buddha

Do you know the Secret?
http://www.thesecret.tv

<b>Resurrect TUX</b> - thee only magazine for the New Linux User
http://www.tuxmagazine.com
Back to top
View user's profile Send private message Visit poster's website
taternik
Xplorer


Joined: 31 Jan 2004
Posts: 94
Location: Ontario, Canada

PostPosted: Tue Dec 13, 2005 9:57 am    Post subject: Reply with quote

jaykruz wrote:
I never shut down my system.
Jay K.

Maybe you should? It is a waste of energy, no matter how small. If you want to see concrete numbers, here are results for my laptop. For desktop, it will be at least twice larger. I measured the current drawn from the power outlet, and calculated the resulting energy consumption.

    Powered on, LCD full brightness, CPU at 1.5Ghz: 370mA 44W
    Powered on, LCD full brightness, CPU at 600MHz: 265mA 32W

    Powered on, LCD min brightness, CPU at 1.5Ghz: 350mA 42W
    Powered on, LCD min brightness, CPU at 600MHz: 235mA 28W

    Laptop turned off: 15mA 1.8W
    Laptop suspended: 29mA 3.5W


All the above measurements were done for idle CPU.
As you can see, even energy-efficient laptop consumes 44W. When suspended, it still uses 3.5W. Even when turned off completely, if the power supply is still plugged in, it draws 1.8W (idle current of the transformer in the power supply).

Now multiply these numbers by the number of hours per year when your computer is doing nothing and you will get the picture. For example, if I kept my laptop on all the time, it would consume 44W x 24h x 365 = 385.44 kWh of energy per year. It takes 0.4kg of coal to produce 1 kWh of energy, so 385.44 kWh corresponds to 150kg of coal. And there are millions of people keeping their PCs powered on all the time...

Of course, for servers there is no choice but to keep them on all the time. For other machines, however, there is no excuse.
Back to top
View user's profile Send private message
Davepet
Xandros Community Moderator
Xandros Community Moderator


Joined: 24 Nov 2002
Posts: 8054
Location: Northern California

PostPosted: Wed Dec 14, 2005 1:50 am    Post subject: Reply with quote

taternik,
Glad to see another voice for enegy efficiency around here! Sometimes I feel like the only one who can add up the KWH Wink

Dave
_________________

Friends don't let friends use windows
GLPW
Registered Linux User #301200
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.xandros.com Forum Index -> The Lab All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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


Powered by phpBB © 2001, 2005 phpBB Group