LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-16-2003, 07:11 AM   #1
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Rep: Reputation: 15
um, Tweaking


Ok,

I've got a:-
K6-2 400mhz
256 Sdram @ 100hz
4.3 gig Hard Drive
with Redhat 9.

Partitions
100meg boot
256 Swap
256 Swap
Rest for everything else

Primary use PHP/Mysql/Apache Local Development Server.
Am using the latest versions that 'up2date' allows so, PHP 4.2.2 & mysql 3.??.56? and apache 2.0.40???

I want to spead up this computer as much as i can, i've installed Zend optimiser 1.2.0a; in a bid to speed to PHP execution time.

What other modifications new, software,tweaks etc can i add to speed this computer? Am on the bondries of the servers hardware capability already.

Usally the servers sits between 87% -> 99% ram usage.

What the mininal services that i need to run, thust this should lower my ram usage?

Remove unwanted packages? But which ones etc...

Thank you!!!
 
Old 06-16-2003, 08:47 AM   #2
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
get to know 'top'.

removing packages that are not used will not speed up your machine. The best thing you can do is not run unnecessary processes. Run 'top', sort by memory usage, and learn what each of the big hitters are. Kill and prevent from restarting those that are not necessary to you.

If you can spend a little $$, buy ram.

Lastly, upgrade your kernel to the latest stable version. There are speed enhancements in there. And disable as much as you can (or make modules, not built-in support).

-Larry
 
Old 06-16-2003, 08:48 AM   #3
m00nd0g
Member
 
Registered: Mar 2003
Location: Leuven, Belgium
Distribution: Red Hat, Debian
Posts: 48

Rep: Reputation: 15
Try looking at chkconfig --list to see what services are started at what runlevel

to edit: chkconfig --level <levelnumber> <servicename> on|off

Hope this helps.
 
Old 06-16-2003, 09:55 AM   #4
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Original Poster
Rep: Reputation: 15
what are runlevels =)
 
Old 06-16-2003, 10:24 AM   #5
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
runlevels are well...levels at which Linux runs...

example, I know run level 3 is console mode and run level 5 is booting straight into X.

I'm not sure about the others tho.
 
Old 06-16-2003, 01:15 PM   #6
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Original Poster
Rep: Reputation: 15
Also are these following services needed?
netfs
nfslock

Also the biggest contender is X which uses 80meg, and kdeinit which is loaded twice? Each using 11.5 meg each.

From the tops screen i could only add up about 140meg worth of ram usage. Were is the rest of the ram being used? As disk cache or?

I am also using the latest kernal from up2date.

Last edited by Thom_Redhat; 06-16-2003 at 01:16 PM.
 
Old 06-16-2003, 02:49 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
yes it is cached for the most part...if i look at my system which has 628ram it says 538 used, but in actuality i have 415 free out of my 628 and only 213 is actually used..
 
Old 06-16-2003, 03:35 PM   #8
tbayer
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 33

Rep: Reputation: 15
To find out what an RPM does type "rpm -qi rpm.name" This gives you a description, then you can figure out if you need it or not. I suggest you drop X; it is a resource hog and not needed. Trimming down all the unneeded RPMs will help, a lot of the time they run services that you don't know about.
 
Old 06-16-2003, 03:58 PM   #9
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Quote:
Originally posted by Thom_Redhat
Also the biggest contender is X which uses 80meg, and kdeinit which is loaded twice?
I would unload x and learn to run those programs from the command line. All harware flys from the CLI!
 
Old 06-16-2003, 04:05 PM   #10
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Original Poster
Rep: Reputation: 15
What is X used, for?

Sorry lads... Tonnes of questions.
 
Old 06-16-2003, 04:20 PM   #11
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Original Poster
Rep: Reputation: 15
also, i removed x, netfs, nfslock

Ram usage is at 67%

A small script before changes was 83% PHP 17% mysql
after changes its 94% PHP 6% mysql

going good so far, i might turn the the optimisation in the zend optimiser to 8,9th pass...
 
Old 06-16-2003, 04:42 PM   #12
Thom_Redhat
Member
 
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41

Original Poster
Rep: Reputation: 15
How do i stop X, as i carn't stop it from the services tab?
 
Old 06-16-2003, 11:42 PM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I don't think I can help with the main issue but I'll say that how I'd try to describe runlevels is that a runlevel is defined by the script init runs. The scripts have different names and contain different items. So while 'runlevel 3' is usually 'multi-user cli mode' it isn't necessarily so. The usual is that 0 & 6 are shutdown and reboot, 1 is single-user maintenance mode, I think 2 is non-networked, 3 is full cli, and 5 is usually full GUI. 4 is usually unused. But this is only because the scripts are written that way. The scripts issue commands to start services and so on. In 5, the X-server will be started, and in 3 it won't. And the X-server is a complicated piece of software I don't understand. But, in short, it provides GUI-services. Without it, you don't have KDE or Gnome or blackbox or any desktop and icons - you have the command-line interface. If you run top - or ktop or whatever - at runlevel 5, you'll see a lot more resource-consumption than if you run top at runlevel 3.

Take a text editor and load the files in the /etc/rc.d subdirectory (usually - maybe always) and comment out services you don't want or add in services you do. Those scripts will show you much of what goes on when you 'init 5' or 'init 3' and so on.

(I understand there are GUI interfaces to do this with a lot of desktops but all they're doing is writing to those text files anyway. I don't know how exact a portrayal the interface is whereas the scripts show - the scripts *are* - exactly what happens.)
 
Old 06-17-2003, 03:10 AM   #14
m00nd0g
Member
 
Registered: Mar 2003
Location: Leuven, Belgium
Distribution: Red Hat, Debian
Posts: 48

Rep: Reputation: 15
Quote:
Originally posted by Thom_Redhat
How do i stop X, as i carn't stop it from the services tab?
open /etc/inittab as root

search for the following line: id:5:initdefault:

replace the 5 with a 3.
(The number represents the default runlevel. As explained. Runlevel 5 is multi-user with X. Runlevel 3 is multi-user with command line. Both of them have network enabled.)

Then reboot your machine and now it won't startup X. All you'll have is the command line. I think this is a better method than the previous post. Disabling X in runlevel 5 doesn't make sense to me at all
 
  


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
startup tweaking rookworm Linux - Newbie 4 11-06-2005 12:53 PM
tweaking firefox sh1ft Linux - Software 6 05-01-2004 06:40 PM
kernel tweaking yowi Linux - Games 6 02-10-2004 10:45 AM
Kernel 'Tweaking'? barkingpenguin Red Hat 1 01-21-2004 05:54 AM
some X tweaking zeky Linux - Software 3 12-23-2002 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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