LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2004, 02:27 PM   #1
tonan
Member
 
Registered: Nov 2003
Location: india, New Delhi
Distribution: Red Hat Linux
Posts: 62

Rep: Reputation: 16
Speed Up Linux


hi guys, i have a very simple question, how to speed up my Red Hat 9.0
It has great graphics and stability but the only problem i am facing when using my internet is that it gets slow after sometime, or if i open 3-4 windows, is there any way to kill useless processes, i know i can do that using kill but which ones, also can i configure my startup items like we can do in windows, using msconfig... please help to make my speed up, because the net in the linux system is very very fast, even faster than winXP,

help needed ....
 
Old 09-21-2004, 02:33 PM   #2
ky-lab_rat
Member
 
Registered: Jan 2004
Posts: 44

Rep: Reputation: 15
To me and everything I've seen and read tuning linux is like an art. It takes reading tons of stuff some useful and some are a waist of time. Here are a few links that help me out.

http://www-124.ibm.com/developerworks/oss/linuxperf/

http://www.redbooks.ibm.com/redpiece...6434.html?Open

linux performance on xSeries: http://publib-b.boulder.ibm.com/abst...5287.html?Open

linux 2.6 kernel and app performance: http://publib-b.boulder.ibm.com/abst...3876.html?Open

tunning RH on xSeries: http://publib-b.boulder.ibm.com/abst...3861.html?Open


My 2 cents
 
Old 09-21-2004, 05:33 PM   #3
oracleofmist
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Rep: Reputation: 0
what browser do you use? maybe that's it, i've always used mozilla or one of its children and i never run into those issues
 
Old 09-21-2004, 06:21 PM   #4
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
Maybe you would like to do some kernel tuning, for example i activate the "Overcommit Memory" option, but be carefull and read the comments about it.
Look at your kde or gnome menu i am sure you have an icon that says "kernel tuning".
 
Old 09-21-2004, 09:10 PM   #5
Electronkz
Member
 
Registered: Mar 2004
Location: Punta del Este, Uruguay
Distribution: Fedora
Posts: 176

Rep: Reputation: 31
This may help too

I forgot to tell you, that you can do this too:
Login as root:
at the command prompt type: system-config-services # there you select which services will run at start up, read the comments so you will know whatv the services are for and you will learn something in the process,
Probably you may want to disable telnet if it is not disable already, because telnet is insecure. OpenSSH too if you dont use it. Those two i mentioned are for remote login.
There are a lot of process there to disable, the crond (Cron Daemon) is usefull to manage automated tasks, so you may want to use it, search at
google/linux for information on how to use cron.
To list the process you can use the top command, it will list the process that consume more resources, you can tipe "k" and then the PID (Process ID number) to kill the process, type "u" and enter the name of an user to see all the process started by the user.
This command: ps -aux |more # list all process. then use the kill command to kill any process you want, type man kill for more information.
Hope this helps,
If you have any more doubts let me know.
 
Old 09-22-2004, 04:04 AM   #6
tonan
Member
 
Registered: Nov 2003
Location: india, New Delhi
Distribution: Red Hat Linux
Posts: 62

Original Poster
Rep: Reputation: 16
Thankyou friends, well i use mozilla the default browser which comes with the RED HAT 9.0 Packaged software. The only problem is that it is not the browser which is slow. but it is that after doing some tasks (like opening any application or windows) Even after i close them , the system seems to be sluggish

I have a 1.7 Celeron Processor
128 MB ram..
I have a swap of 300 MB
 
Old 09-22-2004, 04:06 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This may help; I've got RH9 (w 128MB) as well, but it's a little old, so there are a good many updates worth getting if you haven't already.
1st, goto http://linux.duke.edu/projects/yum/ , and as root, install the yum tool.
This will enable you to do installs, updates etc and have dependencies automatically taken care of.
Here's my yum.conf:

Code:
# $Id: yum-rh.conf,v 1.2 2003/09/18 16:29:06 dude Exp $

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
gpgcheck=1
tolerant=1
exactarch=1

[rhl-9-stock]
name = Red Hat Linux 9 stock @ dulug
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/9/i386/

[rhl-9-updates]
name = Red Hat Linux 9 updates/errata @ dulug
baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/9/

[os]
name=Red Hat Linux $releasever - $basearch - os
baseurl=http://ayo.freshrpms.net/redhat/$releasever/$basearch/os

[updates]
name=Red Hat Linux $releasever - $basearch - updates
baseurl=http://ayo.freshrpms.net/redhat/$releasever/$basearch/updates

[freshrpms]
name=Red Hat Linux $releasever - $basearch - freshrpms
baseurl=http://ayo.freshrpms.net/redhat/$releasever/$basearch/freshrpms

[legacy-utils]
name=Fedora Legacy Utilities for Red Hat Linux $releasever
baseurl=http://mirror.datapipe.net/fedoralegacy/redhat/$releasever/legacy-utils/$basearch/

[dag]
name=Dag RPM Repository for older Red Hat Linux
baseurl=http://apt.sw.be/redhat/$releasever/en/$basearch/dag
then from the cmd line run
yum update
which will update everything it can find. This will take while. To be honest, I'd use a larger swap if you can spare the disk space.
If you are only going to use Mozilla as a browser, I'd suggest installing Firefox as it has the same basic engine, but not all the extras ie mail client, webpage composer etc.
Get it from http://www.mozilla.org/products/firefox/
As suggested above, go through the menus and turn off any un-necessary services.
 
Old 09-22-2004, 11:24 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
recompile newer kernel with optimizations for your processor and to only support exactly the harware you have and nothing else can speed up throughput alot
then start trimming out the services you don't need for your runlevel
look in /etc/inittab to find default run level
id:3:initdefault: (mine is 3)
then go to that folder number in
i think in red hat there are some links right there in /etc
rc3.d -> rc.d/rc3.d

and like that
the services that start all have an "S" at the begining (Start)
research what they are and the ones you dont need remane with a beginning "_"
and they wont start (you need very few of them)
a) Do you need to write log-files? No -> disable syslogd and klogd!
b) Do you need to execute tasks in certain time-intervalls? No ->
disable crond
c) You definitely do not need "atd" or have you ever used it before?
d) You do not need the NFS daemon for you do not have any harddisk
with partitions to share!
e) Do you really need any MTA? Yes -> do not use sendmail!! Use
program that just forwards everything to the server
So deactivate sendmail
f) You definitely do not need "gpm" for you run xwindows with its own
mouse-driver
g) You may need "lpd" if you locally run programs and want to use the
remote-printer attached to your server. If you run programs remotely
with just a local visualization then you do not need "lpd" for
printing, printing is done on the remote machine then.
h) You do not need "routed".
i) Depending on your network-configuration you may need some service
like "identd" for authentication. These services are rarely needed so
use "inetd" to run them. But comment out everything you do not
really need. No service listed in "inetd" standard-configuration is
needed to run xwindows!
if you decide to use inetd or xinetd edit their configuration and take out the stuff you don't use
you don't need sgi_fam swat or any of that stock stuff like echo, time, daytime, chargen
j) startx from the console don't start "xdm" or "gdm" "kdm" an boot-time
k) Do not start a x-font server!
in redhat there is always that stupid font server
go to your x config file and comment out that line
(i forget what it is ) research
x has it's own font server anyway !
you might have to add font paths to the x config file i can't remember
l) One HTTP server is enough, so do not start one on the client.
if you like to experiment with it just start and stop it by hand some times
m) don't need all the other servers ssh, ftp, etc... unless you use them
your client programs will still work fine without the server deamons running


also turn down the colordepth on you x server
under section "Screen" use
DefaultDepth 16
also to save a little ram go to /etc/inittab
and cut down on the number of ttys
mine says
1:2345:respawn:/sbin/agetty tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600
comment out with a # the last four of these unless you use them for something

now zoom zoom

Last edited by foo_bar_foo; 09-22-2004 at 11:39 PM.
 
Old 09-23-2004, 06:46 AM   #9
tonan
Member
 
Registered: Nov 2003
Location: india, New Delhi
Distribution: Red Hat Linux
Posts: 62

Original Poster
Rep: Reputation: 16
Thnkyou very much guys, foo_bar_foo and chris, being a new bie i am really very thankful that you have given me such neat instructions, i shall surely try and make the changes you have suggested.. and i shall notify you weather it worked or not...

with regards tonan
 
  


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
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 04:29 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