LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Speed Up Linux (https://www.linuxquestions.org/questions/linux-newbie-8/speed-up-linux-233472/)

tonan 09-21-2004 02:27 PM

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 ....

ky-lab_rat 09-21-2004 02:33 PM

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

oracleofmist 09-21-2004 05:33 PM

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

Electronkz 09-21-2004 06:21 PM

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".

Electronkz 09-21-2004 09:10 PM

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.
:jawa: :study: :jawa:

tonan 09-22-2004 04:04 AM

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

chrism01 09-22-2004 04:06 PM

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.

foo_bar_foo 09-22-2004 11:24 PM

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

tonan 09-23-2004 06:46 AM

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


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