LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2009, 01:21 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Low-Power Slackware


Hi,

I am planning to re-use an old laptop in the basement storage to power an external USB-harddisk for backup purposes. This doesn't require a lot of CPU power, and since the box will be put in a closet, I want it to consume as little power as possible in order to emit as little heat as possible.

So far on my wish-list I'll use ACPI power-settings to tune the CPU to the lowest possible frequency and avoid pretty much anything loaded besides NFS, SSH and a firewall.

I would greatly appreciate any suggestions for kernel compile options and other things to tweak in order to make this laptop as cold as possible!

Thanks in advance,

-y1
 
Old 12-10-2009, 01:45 AM   #2
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
Enable the powersave cpu frequency scaling governor in the kernel configuration (CONFIG_CPU_FREQ_GOV_POWERSAVE):

Power management and ACPI-> CPU Frequency scaling -> powersave
 
Old 12-10-2009, 04:57 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks tramni1980! However, the scaling governors only change the CPU frequency, so by locking it on the lowest speed I believe to achieve more than running the powersave governor.

Are there any other interrupt or IO/related settings that could help reduce power consuptions?
 
Old 12-10-2009, 05:18 AM   #4
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
http://www.lesswatts.org/projects/powertop/

And turn hal off, or at least explicitly disable device polling.
 
Old 12-10-2009, 07:39 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by Yalla-One View Post
Hi,

I am planning to re-use an old laptop in the basement storage to power an external USB-harddisk for backup purposes. This doesn't require a lot of CPU power, and since the box will be put in a closet, I want it to consume as little power as possible in order to emit as little heat as possible.

So far on my wish-list I'll use ACPI power-settings to tune the CPU to the lowest possible frequency and avoid pretty much anything loaded besides NFS, SSH and a firewall.

I would greatly appreciate any suggestions for kernel compile options and other things to tweak in order to make this laptop as cold as possible!

Thanks in advance,

-y1
Why the firewall? Will the machine be exposed to the internet or just your LAN? If your LAN then look at setting up a 'DMZ'. Minimize all services. You should TP Ethernet instead of wireless. Disable in the BIOS the display & VGA, disable any of the configurable sub-systems, video, wireless or whatever your not going to use. Most older laptops allowed this ability of disabling un-wanted devices.

You should look at your storage media configurations via 'hdparm -I /dev/Your_device'. Then adjust as you need.

Trim the kernel to suit the install hardware to be used. I would start with a 'Minimal System' install then work from there.

 
Old 12-10-2009, 08:35 AM   #6
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
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-10-2009, 09:11 AM   #7
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by onebuck View Post
I would start with a 'Minimal System' install then work from there.
I must say that I disagree and that I disagree with the Minimal System install in general. Let me explain...

When choosing to install anything less than everything you are choosing to sacrifice future flexibility and available options for system resources. This can be a necessary sacrifice. When hard disk space is limited, it is especially necessary. Further, In RedHat-based systems (for example) when you install something that has a daemon component, that daemon is started by default and so purely by installing the software you are impacting on boot-time, available RAM and processing cycles unless you choose to customise or disable it.

In Slackware, the issue is not the same. Even in Full installation mode there is a small set of services that are started by default, and during installation you are prompted to modify this small set to meet your needs. If you wish to have more services start then it is up to you to enable them for boot-time and start them. This means that the inclusion of all of the available software does not necessarily have any impact on available resources other than hard disk space.

To this end, I only ever recommend that someone install anything less than the Full set of packages if they have very limited disk space (or for some reason extremely poor-performance storage); but in the past decade storage space has become so cheap and compact that space has almost exclusively become the concern of people storing large amounts of media. The 4 or so gigabytes needed to install all of Slackware is usually negligible.

To sum up:
If HDD space is a problem, Minimal Install is a good starting point.
In all other cases, you do yourself a favour by using the Full install.

Last edited by zordrak; 12-10-2009 at 09:14 AM.
 
Old 12-10-2009, 09:45 AM   #8
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
zordrak:
Quote:
When choosing to install anything less than everything you are choosing to sacrifice future flexibility and available options for system resources.
This is, of course, correct; & I also tend to do a full install for a desktop system, then, later, go into "pkgtool" & take out what I don't want/need. But Y1 specified a backup server application. That is an entirely different plate of worms. If I'm installing a server, I start with a minimal system & add some to it, rather than start with everything & just begin the paring down by taking out all of X, then any X-related programs.
Regards,
Bill
 
Old 12-10-2009, 09:59 AM   #9
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by TSquaredF View Post
zordrak:
This is, of course, correct; & I also tend to do a full install for a desktop system, then, later, go into "pkgtool" & take out what I don't want/need. But Y1 specified a backup server application. That is an entirely different plate of worms. If I'm installing a server, I start with a minimal system & add some to it, rather than start with everything & just begin the paring down by taking out all of X, then any X-related programs.
You're still talking about removing packages. If hard disk space is not a consideration there is just no need. Leave X in and so long as you usually run it in runlevel3, it's as if it isn't there.. until the day you want to compile against an X library, or you want to start fluxbox for 30 seconds to play around with something, and then shut it down again. The same goes for all the rest of the packages. You can even completely re-assign the server to a completely new task just by changing the configuration, not having to install/uninstall a ton of packages.

Not to mention that, and I will say this again: so long as disk space is not a concern, you save all that time you'd waste choosing individual packages to add/remove and then doing it.
 
1 members found this post helpful.
Old 12-10-2009, 10:25 AM   #10
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
zordrak:
Quote:
You're still talking about removing packages.
No, I'm not. I have several sets of tagfiles (thanks to AlienBob's tagfile generator script) that allow me to do different installs based on what I want to do with the partition. But, with disk space costing what it does today, I do agree that for the average/new user, or for that user that just doesn't want to "prank" with his system (my wife would say that I "prank" our systems all the way down to parade rest!), doing a full install & using the stock kernels is the best method.
Regards,
Bill
 
Old 12-10-2009, 12:01 PM   #11
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
If you are looking to conserve power, why not use something like wake-on-lan if the laptop supports it. Then, if you have a script to do your backups, just have the script wake the machine and sleep for x amount of seconds then do the backup. I would also have another script on the laptop to put it back to sleep after x amount of time.
 
Old 12-10-2009, 01:08 PM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by zordrak View Post
In all other cases, you do yourself a favour by using the Full install.
You argue your case well and I agree with much of it ... but, while HDD space is seldom a constraint now, backup space is -- especially if multiple copies of full backups are chosen for ease of recovery (possibly to a state some time ago) and for backup media redundancy. This issue is compounded in my situation because DVDs are the least bad media choice being in the tropics without AC.
 
Old 12-10-2009, 04:02 PM   #13
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by catkin View Post
You argue your case well and I agree with much of it ... but, while HDD space is seldom a constraint now, backup space is -- especially if multiple copies of full backups are chosen for ease of recovery (possibly to a state some time ago) and for backup media redundancy. This issue is compounded in my situation because DVDs are the least bad media choice being in the tropics without AC.
Obviously everyone's situation is different and I'm talking about the majority of generic setups.

With respect to backing-up, often all that is truly required is the contents of /etc, /var/log/packages and perhaps /srv & /var.. most of the space taken by a full install is in /usr which doesn't necessarily require a backup so long as you have the install media.

Incremental backups and/or snapshot backups also reduce backup space required to just that which has changed. Personally I'm in the lucky position of having 32 tapes in a robotic library with a maximum theoretical storage capacity of over 25TB.

Of course none of this covers DVD backups That's where being a good SysAdmin who knows the best way to deal with his/her own situation comes in; and is what pays your salary
 
Old 12-10-2009, 05:05 PM   #14
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
If drive space is a concern (and even if not), consider using rsnapshot. I use rsnapshot for my backup strategy. I am able to keep backups for many months because rsnapshot uses rsync and hard sym links to minimize storage space consumed. Quite nice.

Last edited by Woodsman; 12-10-2009 at 07:12 PM.
 
Old 12-10-2009, 06:02 PM   #15
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Woodsman View Post
consider using rsnapshot
+1 for rsnapshot
 
  


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
[SOLVED] Choosing a low power CPU MrMcGoo Linux - Hardware 22 07-15-2009 10:13 AM
Low-power computer for intensive downloading simopal6 General 4 07-07-2008 11:54 AM
LXer: NCS Introduces Ultra-Compact, Low-Cost, Low-Power and Super-Quiet Set-top Server Appliance Platforms LXer Syndicated Linux News 0 01-29-2006 08:01 PM
low power machine suggestions? clockworks Linux - Hardware 2 07-23-2004 05:58 PM
How to do a low power server? jbuszkie Linux - Software 1 06-05-2004 02:31 AM

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

All times are GMT -5. The time now is 11:16 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