LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-18-2009, 09:14 AM   #1
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
tickless kernel?


(I originally asked this in another thread, but it got lost in the debate on another matter.)

Looking at this page it seems that setting NO_HZ in the kernel config leads to significant power saving.

Before I find out the hard way, can anyone confirm this in slackware 13 and advise of any potential drawbacks in setting NO_HZ? (Must be a reason why PV didn't set it.)
 
Old 12-18-2009, 09:53 AM   #2
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
What hard way? If you don't like it, just reboot with your original kernel.
 
Old 12-18-2009, 10:46 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Never had problems with tickless kernel, but just make sure you keep your old kernel in lilo in case something does go wrong.
 
Old 12-21-2009, 02:23 PM   #4
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Original Poster
Rep: Reputation: 73
Just keeping another kernel (image) in lilo isn't quite enough. I had to take care of the modules too, including some (e.g. vboxdrv) that I'd compiled outside the kernel source. I'm a bit out of practice at compiling kernels so I did find this quite hard to get right. Also I'm working on a laptop I used for work so messing things up is a big deal.

From what I could glean from a search of the internet, it seems that the timer tick is more of a legacy thing and there is no real downside to a tickless kernel.

I didn't see a huge saving in power from going tickless, probably because the intel Atom processor (it's in an asus eee pc 1000h) consumes so little power. The C2 state uses only slightly more power than C4 and even at full tilt in C0 state the power increase is only a couple of watts.

However, I did get powertop to show we how to save a few watts of power. So running slack13 with kde 4.2.4 and wireless I dropped from 13W down to 10.5W pushing battery life from about 4 up to almost 5 hours under light use. The main power saving seemed to be switching off power to usb devices that weren't active, in particular the built-in webcam. To achieve this I followed powertop's advice and added this to lilo.conf
Code:
  append=" usbcore.autosuspend=1"
but this didn't quite work. I also added this to rc.local to stop the webcam getting power when inactive:
Code:
echo auto > /sys/bus/usb/devices/1-8/power/level
Hope this is useful to someone.

Last edited by mcnalu; 12-21-2009 at 02:25 PM. Reason: type
 
Old 12-21-2009, 03:59 PM   #5
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
I heard VirtualBox doesn't get along well with a tickless system. Otherwise I always just keep my system at 1000Hz to play it safe. Would be interested to know of tickless drawbacks as well.
 
Old 12-21-2009, 04:02 PM   #6
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Original Poster
Rep: Reputation: 73
ah, I started up virtual box but only to check it works. Will give it a more thorough test drive and let you know the results.
 
Old 12-21-2009, 11:12 PM   #7
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
that's a pretty impressive power savings for just turning off the USB not in use, wowzers!

How is this still working out for you? If you decide to use a device that was asleep, will it really wake-up? Have you seen any issues as a result of suspend to ram/disk at all?
 
Old 12-21-2009, 11:21 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by amiga32 View Post
Otherwise I always just keep my system at 1000Hz to play it safe.
Lucky you. I get whining capacitors at 1000hz.

I'm running a tickless kernel right now. I haven't noticed a difference though.

Last edited by dugan; 12-21-2009 at 11:26 PM.
 
Old 12-24-2009, 04:16 AM   #9
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Original Poster
Rep: Reputation: 73
Virtual box seems equally happy with the tickless kernel as it was under the stock generic kernel.

The usb devices I use are all fine in waking up after being powered down as described above. I did read reports of usb printers having problems with this, but I never use a printer so I can't comment.

If anything, I have the opposite problem: it seems that the usb devices are woken up for reasons I don't understand, so my power saving mentioned above is hard to sustain in practice. Oh well, 4 hours isn't bad
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Tickless Kernel" in 2.6.21 -- general discussion. GrapefruiTgirl Linux - Kernel 12 09-23-2007 12:49 PM
LXer: Linux: Reviewing The Tickless Kernel For x86-64 LXer Syndicated Linux News 0 07-13-2007 01:17 AM
LXer: The Impact Of A Tickless Kernel LXer Syndicated Linux News 0 02-25-2007 06:16 AM
LXer: Linux: Improving KVM Performance With A Tickless Kernel LXer Syndicated Linux News 0 01-13-2007 02:03 PM
LXer: Linux: High-Res Timers and Tickless Kernel LXer Syndicated Linux News 0 06-24-2006 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration