Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix

Reply
 
LinkBack Thread Tools
Old 01-11-09   #31 (permalink)
Overclocker
 
amd nvidia

Join Date: Jan 2008
Location: Maryland
Posts: 78

Rep: 26 enorbet2 is acknowledged by some
Unique Rep: 15
Trader Rating: 0
Default Custom Kernels

Greetz
It is my understanding that the kernel is only one step removed from bios in terms of low level priority and like the bios it is read more or less constantly. The advent of on-demand modules a few years ago certainly and happily made kernel size a bit less important but AFAIK there still is considerable speed advantage to smaller kernels since module identification and loading is only part of what a kernel does. This is partly why after so many years and so much difficulty work is still being done on the HURD microkernel project.

An example that is easily tried and clocked for speed comparison is readily available with the latest versions of Slackware. Slack ships with multiple kernel images chosen according to perceived user hardware needs. The largest kernel appropriately labeled "huge" is around 5 MB in size. The "generic" kernel is around 2MB. My custom kernel is 1.3MB. It is quite easy to set up a system with all 3 kernels available with a menued bootloader. I assure you my custom kernel is noticeably faster than the generic kernel and majorly faster than the "huge" kernel. This remains true even if I customize the 2 default kernels to match for CPU type and other hardware sensitive issues. This is somewhat minimized by the fact that recent kernels are all compiled stock for i686 instead of i486 or even i386 common only a couple years ago for compatibility's sake.

Even raid and solid state drives still have read times slow enough to where the difference between a constantly read 1MB file and a 5MB file is cumulatively enormous in terms of system overhead. Reducing that overhead not only improves speed but enhances overall system timing since it is common for CPUs to spend considerable idle time waiting on ram let alone hard drive reads. Good examples of this issue can be found in how older systems of less than 2GHz CPUs with fast ram and hard drive systems are not altogether obsolete nor an agonizing experience subjectively to run. Another can be seen either in the gains that AMD enjoyed for awhile over Intel resulting in Intel finally caving in to the on-chip memory controller finally signaling the obsolescence of the Front Side Bus.

In short, there are still considerable gains to be made in custom kernels including smooth speed.
Jimmy
__________________
System: Demon64
CPU
FX-57 @3.04 GHz
Motherboard
Asus A8NE Deluxe
Memory
2x1G OCZ Platinum (OC'd)
Graphics Card
Asus 8800 GTS
Hard Drive
Seagate SATA 500GB
Sound Card
ESi Juli@
Power Supply
PC Power&Cooling 600 Silent
Case
Antec Sonata I
CPU cooling
AMD heatpipe HS lapped w/ ThermalTake 4800 rpm fan
GPU cooling
Arctic Cooler
OS
Slackware, Xandros, XP64, OS/2 Warp 4.5
Monitor
Viewsonic A95f + DLP
enorbet2 is offline   Reply With Quote
Old 01-11-09   #32 (permalink)
4.0ghz
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 9,737
Blog Entries: 4

Rep: 1167 error10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a star
Unique Rep: 708
Hardware Reviews: 1
Trader Rating: 45
Default

I agree, building a custom kernel is one way to really speed up performance, but it's not something I would recommend to a beginning Linux user.

Buying an SSD drive, however, is.

System: Underground
CPU
Core i7 920
Motherboard
ASUS P6T6 WS Revolution
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT SC 512MB
Hard Drive
4x MBA3147RC RAID5
Sound Card
Intel ICH10 HD Audio / ADI Codec
Power Supply
BFG ES-800
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
3 Million+ Folding at Home points
error10 is offline Overclocked Account error10's Gallery   Reply With Quote
Old 01-12-09   #33 (permalink)
Angry Linux Gamer
 
Melcar's Avatar
 
amd ati

Join Date: Sep 2005
Location: L.A.
Posts: 6,249

Rep: 511 Melcar is becoming famousMelcar is becoming famousMelcar is becoming famousMelcar is becoming famousMelcar is becoming famousMelcar is becoming famous
Unique Rep: 344
Trader Rating: 1
Default

Compiling a kernel is cheaper .

System: Magicbox
CPU
Phenom X4 9650 @ 3GHz
Motherboard
DFI DK 790FX-M2RS
Memory
2x2GB G.Skill DDR2 1000
Graphics Card
HD4850 @ 750/1100
Hard Drive
WD 640GB SATAII / Seagate 160GB SATAII
Sound Card
Audigy 2ZS
Power Supply
OCZ GameXStream 700W
Case
Chenming 602 server case
CPU cooling
Apogee
GPU cooling
MCW60
OS
Kubuntu 64 bit / Windows 7 64 bit
Monitor
Acer X193W+BD 19" WS LCD (1680x1050)
Melcar is offline Overclocked Account   Reply With Quote
Old 01-12-09   #34 (permalink)
Overclocker
 
amd nvidia

Join Date: Jan 2008
Location: Maryland
Posts: 78

Rep: 26 enorbet2 is acknowledged by some
Unique Rep: 15
Trader Rating: 0
Default Custom Kernels

Actually with one qualifier I disagree regarding newbies and custom kernels. IMHO as long a s a newbie understands how to add a 2nd kernel to the boot menu so the origibal is still available to fall back on when problems occur I see no problem.

Additionally there is a lot to be said for wiping that fear out from "jump street". I didn't really start learning about PCs until I learned I couldn't kill hardware from the keyboard. I had an old Tandy 8086 (with a soundcard no less!) running DOS v3 (with DOS in ROM too!) and after it was backed up I ran every executable I could find just to see what it did. I crashed but not burned many times and discovering how to recover both increased my abilities and my confidence.

I had held off having a computer because I couldn't see what I would want to compute that a sci calc couldn't do. Once I installed PCTools I reliazed a computer wasn't just a toolbox . it is ANY tool box. My first custom command line said "Yes_Master?" because I knew that baby's every nut and bolt both hard and soft and I'd learned it could be just about whatever I wanted it to be. However I was at first shocked when I saw DOS in ROM. Talk about cold molasses! But I digress..

Bottom line get your hands dirty as soon as possible once you've covered your butt. The worst you can do is lose data and time, but with backups that only leaves time and that is well spent learning you can be the driver instead of the passenger.

Jimmy
__________________
System: Demon64
CPU
FX-57 @3.04 GHz
Motherboard
Asus A8NE Deluxe
Memory
2x1G OCZ Platinum (OC'd)
Graphics Card
Asus 8800 GTS
Hard Drive
Seagate SATA 500GB
Sound Card
ESi Juli@
Power Supply
PC Power&Cooling 600 Silent
Case
Antec Sonata I
CPU cooling
AMD heatpipe HS lapped w/ ThermalTake 4800 rpm fan
GPU cooling
Arctic Cooler
OS
Slackware, Xandros, XP64, OS/2 Warp 4.5
Monitor
Viewsonic A95f + DLP
enorbet2 is offline   Reply With Quote
Old 01-12-09   #35 (permalink)
4.0ghz
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 9,737
Blog Entries: 4

Rep: 1167 error10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a star
Unique Rep: 708
Hardware Reviews: 1
Trader Rating: 45
Default

Oh, I'd love to throw a noob right into kernel compilation, or even more interesting stuff, but it takes a certain kind of person. Most people just throw up their hands and say Linux sucks. (Of course it's because all they've ever known is Windows, and they think its many design flaws are the way things are supposed to be.)

System: Underground
CPU
Core i7 920
Motherboard
ASUS P6T6 WS Revolution
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT SC 512MB
Hard Drive
4x MBA3147RC RAID5
Sound Card
Intel ICH10 HD Audio / ADI Codec
Power Supply
BFG ES-800
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
3 Million+ Folding at Home points
error10 is offline Overclocked Account error10's Gallery   Reply With Quote
Old 01-12-09   #36 (permalink)
Overclocker
 
amd nvidia

Join Date: Jan 2008
Location: Maryland
Posts: 78

Rep: 26 enorbet2 is acknowledged by some
Unique Rep: 15
Trader Rating: 0
Default The Point!

Hey Error10 you know I think you've the exact point only from the backside in. What I mean is we who know Linux often make the mistake of trying to convince newbs of how much Linux can be like windows, run windows programs, etc instead of simply touting how Linux is different and better, of how while it doesn't necessarily require that you get down to nuts and bolts level you actually can in ways impossible for windows, partly due to it's proprietary nature but way more than that.

In the case of kernel compiles if you fail to get it right the first time (as most likely will) as long as you keep the shipped with kernel there is no loss other than a missed gain which can be fixed the next time. Even though the first look at all the config options is daunting it is also a peek at the power of what can be possible.

I think this sort of attitude opens the door for talking about how interdependent windows is with the "all eggs in one basket" approach where both the registry and the "Windows" and "Documents and Settings" directories require linking to everything essentially handicapping if not ruining the whole concept of a pre-emptive OpSys preventing crashes and data loss. On top of that there is just no easy equivalent way for windows to avoid reinstalling every last program on all reinstalls and some repair installs, which is so easily avoided with Linux. There are so many other points without even having to mention how unnecessary it makes piracy of programs but makes most drm issues irrelevant.

I know newbs contemplating trying Linux want to be reassured that Linux is like Windows but part of that is because they don't even know enough to ask better questions. They only know Windows so that's what they ask about. If instead of falling into that mode we offer up exciting differences or for that matter even limitations so we don't create more flamers by trying to bring someone in who may never "get it". I mean some people are just never (or not for a long time I think) going to go for Linux unless it is just like Windows and what's the value in that other than price ? After all there are actually some people who love cars but will never buy one with a stick transmission let alone pop the hood.

Bottom line why fight a battle we're unlikely to win when we can choose so many we can't possibly lose? Linux is *that* good but to stay that good it can't become Windows and should avoid most compromises to avoid becoming watered down and weak. I say give them the adventure!
__________________
System: Demon64
CPU
FX-57 @3.04 GHz
Motherboard
Asus A8NE Deluxe
Memory
2x1G OCZ Platinum (OC'd)
Graphics Card
Asus 8800 GTS
Hard Drive
Seagate SATA 500GB
Sound Card
ESi Juli@
Power Supply
PC Power&Cooling 600 Silent
Case
Antec Sonata I
CPU cooling
AMD heatpipe HS lapped w/ ThermalTake 4800 rpm fan
GPU cooling
Arctic Cooler
OS
Slackware, Xandros, XP64, OS/2 Warp 4.5
Monitor
Viewsonic A95f + DLP
enorbet2 is offline   Reply With Quote
Old 01-12-09   #37 (permalink)
4.0ghz
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 9,737
Blog Entries: 4

Rep: 1167 error10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a star
Unique Rep: 708
Hardware Reviews: 1
Trader Rating: 45
Default

True enough. But some people just don't want an adventure. They want to get on eBay and buy $35 fans for $5. They want to chat with their friends and play their MP3s. They don't care about power. To them the computer is a toaster.

System: Underground
CPU
Core i7 920
Motherboard
ASUS P6T6 WS Revolution
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT SC 512MB
Hard Drive
4x MBA3147RC RAID5
Sound Card
Intel ICH10 HD Audio / ADI Codec
Power Supply
BFG ES-800
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
3 Million+ Folding at Home points
error10 is offline Overclocked Account error10's Gallery   Reply With Quote
Reply

Tags
hard drive, linux, memory, performance


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



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


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.15650 seconds with 8 queries