LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-08-2009, 11:22 PM   #1
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Talking Slap DVD Laptop Kernel Config


All,

This is my first effort in making something more appropriate for laptop users (exclusively). This is a kernel config for 2.6.30.5. I started with the Slackware Generic-SMP 32bit kernel config (this is a 32bit kernel config). All credit for (in my opinion) the best starting place for any kernel config goes to Patrick Vokerding. (Please tell me if I am or am not doing this properly in terms of respecting the work of others, GPL, GNU, etc.)

Here is the changelog:

- Enable NO_HZ: 1% battery life savings is better than nothing.
- Use LZMA compression: a smaller image is better for some machines.
- Optimize for size: a smaller image is better for some machines; -Os is (I hear) a better way to optimize for Pentium-M or other processors with big L2 caches, and is recommended by the kernel help file on the subject.
- Unselect Disable Heap Randomization: hopefully this will improve security a small bit; better something than nothing. Laptop users will probably be interested in security due to the mobility factors.
- Disable support for non-PCs.
- Disable MPS table.
- Select 586/686 as architecture: I doubt anyone's going to have a more ancient laptop, and we need to consider who will possibly use slackware on such an old system: few exist. This is my best attempt to get closer to the minimum recommended CPU for this laptop concept: the Pentium-M. Please contact me if you have a 486 laptop.
- Disable PentiumPro memory errata: the kernel help says it's unlikely and rare; please contact me if you need it.
- Voluntary Kernel Preemption (Desktop): because we're not designing this for throughput (per se)
- Disable CPU Microcode: I doubt anyone needs to update their CPU's microcode. This sounds very dangerous. Please contact me if you need it.
- Disable Math emulation: everything 586+ has a math coprocessor: this is not needed. Please contact me if you have a 486 laptop.
- Enable x86 PAT
- Disable APM: most laptops that had past kernel issues with APM versus ACPI are dead by now, but if you need APM, please contact me.
- Enable Smart Battery System: in case someone has such a laptop.
- Make default CPUFreq governor OnDemand: this is what most laptop manufacturers seem to recommend in the sense that almost every laptop I have used sets "automatic" or basically "ondemand" as the default governor. But feel free to email me if your opinion differs.
- Set UserSpace governor to <M>. If you really need this <*>, please contact me.
- Disable Intel Enhanced SpeedStep (depreciated): ACPI P-states does all this stuff now, and I want to prevent any possible conflicts. Email me if you need it.
- Enable PCI Express ASPM support: in an effort to save even more power. It's marked experimental, so if you find problems, please let me know.
- Enable One Laptop Per Child support.
- Enable SPI support.
- Enable Tablet Input devices.
- Make <M> all new drivers: since the generic-smp config was 2.6.29.6 and a few new modules came out since then.
- Enable Voltage and Current Regulator Support: just in case your laptop has any of this.
- Set default AC97 powersave mode to 1 second time: I have not had a problem with this, and this is my second laptop to have the AC97 codec. If it causes you problems, please contact me.
- Set Intel HD Audio to support digital beep input.
- Set usbcore to <M> and auto-suspend enabled: this is to hopefully have a default /etc/modprobe.d/usbcore.conf that auto-suspends USB system at 1 second. Remember, the goal here is battery life. Please contact me if this causes problems.
- Enable EDAC (error detection and reporting)
- Enable <M> all staging drivers: normally I would not use any of these, but just in case someone does....
- X86 Platform Specific: all laptop modules to <M>. My experience with the Toshiba and Sony modules, and on other people's laptops with the Dell modules, so far this works fine, as Slackware's userspace loads these as needed. Please let me know if you have a laptop where one of these is absolutely required for the laptop to function properly.
- Filesystems ext2|3|4, xfs, reiserfs, jfs to <*>: this is because I will soon be making this the installer kernel. The "slap" will be similar to "huge" and the "slapped" to "generic" in concept (all credit to Patrick for his naming system).
- Windows Logical Disk (Dynamic Disk) enabled: I don't know why support for this is not enabled....

Again, please contact me with your comments. Again, this is not a distribution: it's simply a minor retool/reconfig to be more targeted to laptop users. All credit goes to Patrick Volkerding for my favorite Linux distribution: Slackware Linux. If I did not credit someone, let me know.

Feel free to discuss and give advice, as I am a n00b.
 
Old 09-09-2009, 04:12 PM   #2
bonaire
Member
 
Registered: Jun 2008
Location: Bonn/Germany
Distribution: Slackware-13.37
Posts: 94

Rep: Reputation: 19
You would make testing a lot easier, if you would upload your config file

I'd like to see KMS, but this is not laptop specific

I don' t think non-modular filesystem drivers are a nice idea for a generic version. The rest looks nice so far.
 
Old 09-09-2009, 04:42 PM   #3
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
config-slap-2.6.30.6

All filesystems set to <M>
 
Old 09-09-2009, 06:08 PM   #4
bonaire
Member
 
Registered: Jun 2008
Location: Bonn/Germany
Distribution: Slackware-13.37
Posts: 94

Rep: Reputation: 19
Since 30 minutes I'm runnig this configuration on my EeePC 901. Until now no errors. I'll give feedback, if something gets wrong.

What i can say is, that the digital beep sucks
How can i make this not that loud? I use google for that

cu
 
Old 09-09-2009, 09:59 PM   #5
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by bonaire View Post
Since 30 minutes I'm runnig this configuration on my EeePC 901. Until now no errors. I'll give feedback, if something gets wrong.

What i can say is, that the digital beep sucks
How can i make this not that loud? I use google for that

cu
I think it's tied to your mixer volume.

Thank you for testing!
 
Old 09-11-2009, 11:57 AM   #6
bonaire
Member
 
Registered: Jun 2008
Location: Bonn/Germany
Distribution: Slackware-13.37
Posts: 94

Rep: Reputation: 19
Yes, it can be configured every mixer. Nice. Never noticed this possibility.

I have a suggestion:
It would be cool to set
Code:
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.
 
Old 09-12-2009, 12:44 AM   #7
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by bonaire View Post
Yes, it can be configured every mixer. Nice. Never noticed this possibility.

I have a suggestion:
It would be cool to set

To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.
The point of the kernel is to save battery if possible. Powertop helps do that, and iotop is for I/O. I would like to include that, but the point of this kernel is power savings. For now, I'll leave it out. But thanks!
 
Old 09-12-2009, 12:54 AM   #8
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Config-2.6.31

config-slap-2.6.31
 
Old 09-16-2009, 04:45 AM   #9
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally Posted by bonaire View Post
Yes, it can be configured every mixer. Nice. Never noticed this possibility.

I have a suggestion:
It would be cool to set
Code:
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
To get iotop working. I saw you are interested in performance tuning (using powertop). iotop shows the current io of the system. This is for example interesting when using slow ssds to find bootle necks or processes that don't close files properly.

I see the original poster pooh-poohed this suggestion. Pity. The reason he did so was to "save battery". But by using iotop to identify processes that write to disk (or read) and thus cause the disk to keep spinning, would certainly be of help to preserve battery life. So this would seem to me to be a very good idea. The accounting details gathered are in memory and won't themselves cause extra powerloss. I urge a re-consideration.
 
Old 09-16-2009, 07:20 AM   #10
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by Mark Pettit View Post
I see the original poster pooh-poohed this suggestion. Pity. The reason he did so was to "save battery". But by using iotop to identify processes that write to disk (or read) and thus cause the disk to keep spinning, would certainly be of help to preserve battery life. So this would seem to me to be a very good idea. The accounting details gathered are in memory and won't themselves cause extra powerloss. I urge a re-consideration.
Ok, I will include it. Thanks!
 
Old 10-01-2009, 11:35 PM   #11
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
http://www.puresimplicity.net/~twinr...-slap-2.6.31.1

Includes I/O stats changes.
 
Old 10-08-2009, 08:28 PM   #12
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Talking

New kernel config for 2.6.31.3

Changes:
- New firewire stack now included as <M> so that you can specify which of the two you want using rc.modules and/or blacklist.

Notes:
- HFS+ no longer marked "EXPERIMENTAL" in kernel (but no change to config).

http://www.puresimplicity.net/~twinr...-slap-2.6.31.3
 
Old 12-26-2009, 07:16 AM   #13
bonaire
Member
 
Registered: Jun 2008
Location: Bonn/Germany
Distribution: Slackware-13.37
Posts: 94

Rep: Reputation: 19
Will there be a 2.6.32 version? I could of course create it myself but it looks like you are better informed on what is useful or useless
 
Old 12-26-2009, 05:32 PM   #14
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by bonaire View Post
Will there be a 2.6.32 version? I could of course create it myself but it looks like you are better informed on what is useful or useless
I am keeping the configuration current. Here you go:

http://www.puresimplicity.net/~delah...-slap-2.6.32.2
http://www.puresimplicity.net/~delah...lap64-2.6.32.2

Thanks!
 
Old 12-26-2009, 05:56 PM   #15
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60
Quote:
Originally Posted by TwinReverb View Post
the links are broken
 
  


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
Idea: Slap DVD TwinReverb Slackware 1 09-08-2009 11:39 AM
How to install slap-get jonward690 Linux - Newbie 4 04-16-2008 11:53 PM
Benchmark slap-get? JockVSJock Slackware 2 12-09-2007 11:39 PM
How to make complicated BitchX slap? ivanatora Linux - General 1 12-25-2004 03:54 PM
slap-get problems rosariowong Slackware 5 08-07-2004 07:28 AM

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

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