LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2005, 08:54 AM   #1
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Rep: Reputation: 15
kernel compilation


hi every body...

i heard that by compling kernel ,one can make his system run faster.
so is there someone who can tell me from where to begin with.

i m using slackware 10.0.

regards
 
Old 12-19-2005, 09:13 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Hi
I used this tutorial to build my first kernel. Also search this forum for guides. I think there a couple of them...one is here

Tux,
 
Old 12-21-2005, 09:56 AM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by nick021
hi every body...

i heard that by compling kernel ,one can make his system run faster.
so is there someone who can tell me from where to begin with.

i m using slackware 10.0.

regards

http://www.bitbenderforums.com/vb22/...?postid=296104

you could also search for an article by "DrOzz" in this site about kernel compilation

regards
 
Old 12-21-2005, 10:56 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,151

Rep: Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203Reputation: 2203
Yeah, but you could be wasting your time, too...

What you need to do first is to try to speculate why it is running slow now. For example, is DMA turned-on on your hard disk drives? Does the system have adequate memory? Are particular things running slowly; can you characterize what it seems to be doing when it is "running slowly?"

Yes, you can speed up a system somewhat by optimizing the kernel. But most things that "slow down" a computer are not caused by sluggish code-paths through the kernel; they are caused by I/O.

For instance, try these two commands and quote the results here. As root:
Code:
/sbin/hdparm -Tt /dev/hda
/sbin/hdparm -I /dev/hda
This will give you basic timings, and basic configuration parameters, on the I/O to your primary disk-drive ("/dev/hda"). There are plenty of articles on system optimization on the web, and you should start reading .. before you compile anything.
 
Old 12-21-2005, 12:06 PM   #5
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Original Poster
Rep: Reputation: 15
hi sundialsvcs
this is what i received ..

Quote:
/sbin/hdparm -Tt /dev/hda
-bash: /sbin/hdparm: No such file or directory
Quote:
/sbin/hdparm -I /dev/hda
-bash: /sbin/hdparm: No such file or directory
what is hdparm ??
i didn't find it in sbin directory!!

if you make it clear then only i can follow ur advice.

regards
 
Old 12-21-2005, 12:18 PM   #6
nick021
Member
 
Registered: Jan 2005
Location: india
Distribution: slackware 10.0 (kernel 2.4.26)
Posts: 104

Original Poster
Rep: Reputation: 15
hi sundialsvcs

i executed cmd from inside sbin directory..
this are the results..

Quote:

/sbin/hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
Model Number: WDC WD400UE-00HCT0
Serial Number: WD-WXE205015933
Firmware Revision: 09.07D09
Standards:
Supported: 6 5 4 3
Likely used: 6
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 78140160
device size with M = 1024*1024: 38154 MBytes
device size with M = 1000*1000: 40007 MBytes (40 GB)
Capabilities:
LBA, IORDY(can be disabled)
bytes avail on r/w long: 50 Queue depth: 1
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: unknown setting (0x0080)
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* READ BUFFER cmd
* WRITE BUFFER cmd
* Look-ahead
* Write cache
* Power Management feature set
Security Mode feature set
* SMART feature set
* Mandatory FLUSH CACHE command
* Device Configuration Overlay feature set
Automatic Acoustic Management feature set
* Advanced Power Management feature set
* DOWNLOAD MICROCODE cmd
* SMART self-test
* SMART error logging
Security:
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct
Quote:
/sbin/hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 1692 MB in 2.00 seconds = 846.00 MB/sec
Timing buffered disk reads: 84 MB in 3.18 seconds = 26.42 MB/sec
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 02:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 12:35 PM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 11:53 PM
Kernel compilation fraz Linux - Software 1 07-05-2005 09:41 AM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 08:33 AM


All times are GMT -5. The time now is 02:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration