LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2010, 06:15 AM   #1
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
New kernel options to consider


So, I'm building the 2.6.34 kernel and I notice some interesting options, which you may want to consider including in the build, if you are building it:

Code:
  ┌───────────────────── Reroute for broken boot IRQs ──────────────────────┐
  │ CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS:                                │  
  │                                                                         │  
  │ This option enables a workaround that fixes a source of                 │  
  │ spurious interrupts. This is recommended when threaded                  │  
  │ interrupt handling is used on systems where the generation of           │  
  │ superfluous "boot interrupts" cannot be disabled.                       │  

  │ Symbol: X86_REROUTE_FOR_BROKEN_BOOT_IRQS [=y]                           │  
  │ Prompt: Reroute for broken boot IRQs                                    │  
  │   Defined at arch/x86/Kconfig:830                                       │  
  │   Depends on: X86_IO_APIC [=y]                                          │  
  │   Location:                                                             │  
  │     -> Processor type and features                                      │
Code:
  ┌─────────── Low address space to protect from user allocation ───────────┐
  │ CONFIG_DEFAULT_MMAP_MIN_ADDR:                                           │  
  │                                                                         │  
  │ This is the portion of low virtual memory which should be protected     │  
  │ from userspace allocation.  Keeping a user from writing to low pages    │  
  │ can help reduce the impact of kernel NULL pointer bugs.                 │  

  │ This value can be changed after boot using the                          │  
  │ /proc/sys/vm/mmap_min_addr tunable.                                     │  
  │                                                                         │  
  │ Symbol: DEFAULT_MMAP_MIN_ADDR [=4096]                                   │  
  │ Prompt: Low address space to protect from user allocation               │  
  │   Defined at mm/Kconfig:226                                             │  
  │   Depends on: MMU [=y]                                                  │  
  │   Location:                                                             │  
  │     -> Processor type and features                                      │
I know I've a seen thread about this one, kernel NULL pointer bugs.
 
Old 06-27-2010, 08:40 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Oh, and I forgot to mention why I compiled a new kernel, it's because my USB flash drive. Whenever I try to copy large files to it, the transfer rate is very very slow, like under 1 MB/s. So, I read that a new kernel may fix it, and it does, I just tested it and the bug is fixed with the latest kernel, transfer rate is now over 8MB/s even with large files, dd reports 12.4 MB/s.

I think this is the option that fixes it:

Code:
  ┌─────── Improved Transaction Translator scheduling (EXPERIMENTAL) ───────┐
  │ CONFIG_USB_EHCI_TT_NEWSCHED:                                            │  
  │                                                                         │  
  │ This changes the periodic scheduling code to fill more of the low       │  
  │ and full speed bandwidth available from the Transaction Translator      │  
  │ (TT) in USB 2.0 hubs.  Without this, only one transfer will be          │  
  │ issued in each microframe, significantly reducing the number of         │  
  │ periodic low/fullspeed transfers possible.                              │  
  │                                                                         │  
  │ If you have multiple periodic low/fullspeed devices connected to a      │  
  │ highspeed USB hub which is connected to a highspeed USB Host            │  
  │ Controller, and some of those devices will not work correctly           │  
  │ (possibly due to "ENOSPC" or "-28" errors), say Y.                      │  
  │                                                                         │  
  │ If unsure, say N.                                                       │  
  │                                                                         │  
  │ Symbol: USB_EHCI_TT_NEWSCHED [=y]                                       │  
  │ Prompt: Improved Transaction Translator scheduling (EXPERIMENTAL)       │  
  │   Defined at drivers/usb/host/Kconfig:74                                │  
  │   Depends on: USB_SUPPORT [=y] && USB_EHCI_HCD [=m] && EXPERIMENTAL [=y │  
  │   Location:                                                             │  
  │     -> Device Drivers                                                   │  
  │       -> USB support (USB_SUPPORT [=y])                                 │  
  │         -> Support for Host-side USB (USB [=y])                         │  
  │           -> EHCI HCD (USB 2.0) support (USB_EHCI_HCD [=m])             │

Last edited by H_TeXMeX_H; 06-27-2010 at 08:43 AM.
 
Old 06-27-2010, 08:55 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
maybe not at all related H_TeXMeX_H
but, I compiled new zen kernel from packer

packer -S kernel26-zen

and now xconf; used in my arch/slack nfluxos builds wont work
xorg-server is 1.8.1

with Quax's 2.6.33.3 kernel it all works....

do you have any ideas?
sorry to hijack your thread, but my kernel under General says

[ ] Automatically SCHED_ISO policy for X

and I didn't "check" it[*]
could that be an issue?
what does that mean- "[ ] Automatically SCHED_ISO policy for X"

I noticed many new things with this kernel and dont know what they are?
This is also the original kernel I had the issue with x86_64 arch as we discussed in that thread...
 
Old 06-27-2010, 09:43 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I'm pretty sure it is optional, so you don't need it.

You know, if you're compiling a kernel, you may want to look through this:
http://www.kroah.com/lkn/
see chapter 7 especially.

I usually start with the .config that comes with the distro, then remove and add modules as necessary. You kinda have to keep trying and thinking about it until you get it right. It takes a while.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Building Your Own Linux Kernel: Tricky kernel options (part 3) LXer Syndicated Linux News 0 10-23-2009 02:50 AM
kernel options darthaxul Linux - General 0 10-20-2008 05:08 PM
kernel options sycamorex Linux - Kernel 3 11-11-2007 03:58 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
kernel options thrix Linux - General 14 01-25-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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