LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-19-2004, 01:02 PM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
Linux Speed


Well you will have to forgive me for asking another question. I am wondering why the speed in Linux is not par to my Windows. I have a gig of hynix ram PC3200, 160gig hd with 8mb cache Athlon XP1800+. It runs very well on my windows OS yet on linux I notice lag. Is there any tweaks or settings that I should know? Thanks again for the help.
 
Old 02-19-2004, 01:08 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well just a shot in the dark here, but maybe you don't have dma enabled on your drive ?
if your main drive is in fact hda, then run this command and post the output ...
hdparm -cd /dev/hda

now first i will note that you have to run this as root, and second if your drive is not hda then replace it where necessary ..
 
Old 02-19-2004, 01:09 PM   #3
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
Yes!!
recompile the kernel (use 2.6 series if possible) and customise/optimise it for ur specification
 
Old 02-19-2004, 01:12 PM   #4
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 659

Rep: Reputation: 30
and.. for the dma thing, since u are using redhat, u can edit the /etc/sysconfig/harddisks or something like that to enable dma, readahead and a lot more!!
 
Old 02-19-2004, 01:14 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well just to save the trouble of editing files, just simply type :
hdparm -d1 /dev/hda
as root, to enable it ;-)
 
Old 02-19-2004, 01:40 PM   #6
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
DMA Is enabled

# These options are used to tune the hard drives -
# read the hdparm man page for more information

# Set this to 1 to enable DMA. This might cause some
# data corruption on certain chipset / hard drive
# combinations. This is used with the "-d" option

# USE_DMA=1
 
Old 02-19-2004, 01:41 PM   #7
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
As for recompiling the Kernel I have no idea how to go about doing that, i have read a few guides but it seems as though I would really have to know my command line and I am just not at that level yet.
 
Old 02-19-2004, 02:05 PM   #8
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well listen i already told you what to do, so if you don't want to just see what that command i wrote above outputs then so be it .....
cause if you look at what you just typed to us you will notice the (#)Pound symbol in front of the line, meaning it is commented out, or in lamens terms it is not using ...

so i'll state again...
open a terminal
type :
su -
type your root password
then type :
hdparm -d /dev/hda

it may very well be enabled already, but judging by what you showed us, then that means nothing cause it is a commented line ... so show the output of that command ...

as of the kernel ... no you really don't have to be a rocket scientist to do it ...
read my guide here i made an overly simplified version of howto compile the kernel ..
 
Old 02-19-2004, 02:24 PM   #9
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
I follow what you directed me to do.

[mike@h24-108-224-140 mike]$ su
Password:
[root@h24-108-224-140 mike]# hdparm -d /dev/hda
bash: hdparm: command not found
[root@h24-108-224-140 mike]#
[root@h24-108-224-140 mike]#

did I type in the wrong command? thank you for all the help.
 
Old 02-19-2004, 04:06 PM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
no you didnt type it wrong .... its just that /sbin is not in your PATH so it couldn't find the command cause it didn't know where to search for it ...
but not to worry its not an issue, just type the full command :
/sbin/hdparm -d /dev/hda
 
Old 02-19-2004, 04:30 PM   #11
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Or, use 'su -' as originally pointed out, rather than 'su'.
That will 'enable' the root environment which will have the /sbin in its path.
 
Old 02-19-2004, 05:30 PM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The speed of linux is a very general question that gets ask a lot in this forum.

Almost all the the modules (drivers) in LINUX have to be re-engineered. What this means the modules for chipsets, IDE, sound, tv tuners, MPEG decoders, video cards, etc are not optimized. LINUX doesn't run certain components into memory to speed up software loading like Windows. If you use LINUX for a whole day, you will see it gets a little faster at the end of the day for certain programs that you used that day. This is because LINUX caches the programs or data to be used next time instead of retriving it from the hard drive. Windows rarely caches programs well, so it loads some of the data into memory.

Compiling the kernel to hard code only the components that you need can increase computer speed because the utility modprobe doesn't have to do trial and error to find out what module works best with your devices. Compiling devices as modules adds overhead to the kernel so it takes a little more time to access certain devices.

Kernel versions 2.4.x or higher already sets the best settings for hard drives. You shouldn't have to worry about changing the IDE specs for hard drives. You probably may have to do it for CD-ROM or DVD-ROM. You have to login as su or root and use sysctl to tweak your system's performance. I suggest doing research before jumping in and edit the /etc/sysctl.conf

I recently tried Redhat 9.0. It was slower than Mandrake 9.0 and Redhat doesn't have usb and the paths setup properly. I like how Mandrake is litle more soft when it comes to making partitions. On my setup I put the swap partition near the front of the drive. I can not tell if my system is using my swap. For my /boot, /, and /home partitons I used different filesystems like ext3 for /boot, xfs for /, and reiserfs for /home. XFS speed up my system a lot and I haven't yet had any problems with programs.
 
  


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
PCI bus speed and video card speed juanbobo General 0 08-01-2005 01:13 PM
Processor clock speed vs. CPU speed moxieman99 Linux - General 4 06-24-2005 10:43 AM
Gnome Update, Mouse Speed, Overall System Speed funaroma Linux - Newbie 2 08-04-2004 10:13 PM
cdrecord - trying to use high speed medium on low speed writer captain-cat Linux - Hardware 2 07-12-2004 06:27 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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