Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Anyone know of a Linux kernel optimized for Intel Pentium M?
New Posts  All Forums:Forum Nav:

Anyone know of a Linux kernel optimized for Intel Pentium M? - Page 2

post #11 of 23
Quote:
Originally Posted by xd_1771 View Post
Took 3 hrs 35 minutes apparently.

I did not run make oldconfig, No, and I got this error. From this article it appears one person did not actually get the new kernel properly configured fixed the problem by running "menu oldconfig" first, will definitely try that. I apparently found another article that told you to edit the "makefile" file, but if I'm correct running those commands into the terminal does the same thing?

I'm also configuring a pre-emptive kernel, I'm assuming there's no problems with that?
Hmm, you've got to run some kind of config, or you'll end up with a 100% vanilla kernel, and that's not good. The "oldconfig" takes your existing config file (for your currently running kernel), and uses it to create the new config file. Saves you trolling through the entire kernel config (which is sorta fun, but you can waste HOURS).

Don't bugger about with editing the makefile, it's messy in there. Just run the export commands before you start, and it'll replace the system-wide default flags for the session.

The pre-emptive kernel - if I'm correct, that's the default anyway so should be picked up by oldconfig, but if it was a patch, you need to download the source kernel package containing the patch (patching your own kernel is possible but a pain in the ass). What distro are you running, and where did you get that kernel from?
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #12 of 23
Thread Starter 
I ran "make oldconfig" before compiling again, it seems to have worked. Performance seemed somewhat snappier, however that left the problem of the CPU still running hot; swapped it for a Pentium M 735A with 21W TDP and MX-3 on the CPU, and it's all cool and quiet now

And eh, I didn't find the commands I needed to edit that hard to find in "makefile".

I don't think pre-emptive kernel was the default. This is on Ubuntu 11.04. Mostly following this article for the process, with some of your tips.
post #13 of 23
Yeah, I recompiled my kernel last night - pre-emptive isn't the default. The "running hot" is because the default CPU governer in the kernel is "performance", rather than "ondemand". This makes your CPU run at full tilt all the time, rather than Speedstepping it. If you can brave another recompile, you can change those options (or you can just wait for the next version of the kernel to be released for Ubuntu, and compile that)
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #14 of 23
Code:
export CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
export MAKEOPTS="-j2"
export CXXFLAGS=$CFLAGS"
that shouldn't be needed, all those cflags should be in the systems default options. all (I believe) systems have config files that set default options and covers most of those (it should, debian and arch do). The only flag that I know for sure isn't covered is the -jX flag, for using multiple threads. I use -j4 (quad core), they say to use one number above your core count, I don't I just use the same.

You can also run concurrency_level=X which does a similar thing, Debian forces you to do that because it doesn't allow the -j4 flag. Also if you run any of the following:
make gconfig
make xconfig
make config
make ? (there's a couple more that I can't remember off the top of my head)

it still uses your oldconfig and then gives you a menu system (or asks questions) for any "new" options. If you do a GUI (I like them more) then its real easy, you can just read the description (for the most part) and find out what you need changed. if the description sucks (it can) than google is your best friend. Really its not hard, mainly all you need are processor options unless you do patches/hacks. You still should look through General/Processor/Power Management and see if there is anything that might help. The other sections are heavily modulated, so they really don't hinder performance but rather create your modules section to be larger or smaller. A full size module section is around 130MB? It isn't really that large, and you have to cut a LOT of modules out to bring it to a really small size.

that's about it though
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #15 of 23
I'd be surprised if they were the default options, as -pipe assumes a lot of RAM (more than the average 386 would have), and -fomit-frame-pointer would ruin a developer's day (although I believe the latest GCC has it included in the -O2 options). -march=native certainly isn't default - it defaults to generic I believe (if not the i386 or x86_64 being compiled on). Didn't know about Debian ignoring the -j# flag, what's the point of that?!?!?
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #16 of 23
Quote:
Originally Posted by chemicalfan View Post
I'd be surprised if they were the default options, as -pipe assumes a lot of RAM (more than the average 386 would have), and -fomit-frame-pointer would ruin a developer's day (although I believe the latest GCC has it included in the -O2 options). -march=native certainly isn't default - it defaults to generic I believe (if not the i386 or x86_64 being compiled on). Didn't know about Debian ignoring the -j# flag, what's the point of that?!?!?
Debian ignores it just for kernel compiles, I haven't done anything for a while but I believe it works on everything else. native is default, GCC 4.4 uses it? One of the GCC's have it as default when you compile kernels if you enable it in the kernel config. I'm sure it's there and -pipe was default for debian? I never had to use it as it didn't change any of the options for me. though I'm on x64 so it might be default for that and not i386.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #17 of 23
Thread Starter 
Quote:
-pipe assumes a lot of RAM
I don't have that much RAM. Could this be hampering anything?

I find performance/battery life is pretty much perfect whether plugged in or on-the-go
post #18 of 23
-pipe uses more RAM while compiling, as GCC will use RAM instead of temporary files.

@mushroomboy: Ah, I'm not sure about Debian, I'm much more familiar with Arch (for my sins!). That's some funny defaults, but I guess they have their reasons *shrug*
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #19 of 23
This is one of my recent kernel configs for 2.6.39 (2.6.39.3) for Pentium M 2.00GHz Dothan:
http://users.on.net/~mbohun/linux/ke...-dothan.config

bash-3.1$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 2.00GHz
stepping : 8
cpu MHz : 800.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2
bogomips : 1596.39
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management:

---
NOTE:
By default they *DISABLED* PAT in the kernel, that may cause performance problem,
go to the kernel dir, open ./arch/x86/kernel/cpu/intel.c and remove the following code
to disable the disabling of the PAT :-)

/*
* There is a known erratum on Pentium III and Core Solo
* and Core Duo CPUs.
* " Page with PAT set to WC while associated MTRR is UC
* may consolidate to UC "
* Because of this erratum, it is better to stick with
* setting WC in MTRR rather than using PAT on these CPUs.
*
* Enable PAT WC only on P4, Core 2 or later CPUs.
*/
if (c->x86 == 6 && c->x86_model < 15)
clear_cpu_cap(c, X86_FEATURE_PAT);

---
Further in my config I disabled swap - do not forget to enable it if you want or need it:
# CONFIG_SWAP is not set
Edited by mbohun - 7/11/11 at 11:22am
post #20 of 23
bash-3.1$ gcc --version => gcc (GCC) 4.5.3
bash-3.1$ echo $CFLAGS => -march=pentium-m -O2 -fomit-frame-pointer

---
DMI: TOSHIBA TECRA S3/Portable PC, BIOS Version 3.20 11/13/2007

this laptop has 2gb RAM, and to compile this kernel with the Pentium 2.00GHz CPU running on 1.33GHz - 800MHz takes apx. 35-40 min (of course that depends on what kernel are you running while compiling, and what scheduler, etc, and what other stuff is running...)
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Anyone know of a Linux kernel optimized for Intel Pentium M?