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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-16-2003, 08:11 AM
|
#1
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Rep:
|
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!!!
|
|
|
06-16-2003, 09:47 AM
|
#2
|
Member
Registered: Mar 2003
Posts: 126
Rep:
|
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
|
|
|
06-16-2003, 09:48 AM
|
#3
|
Member
Registered: Mar 2003
Location: Leuven, Belgium
Distribution: Red Hat, Debian
Posts: 48
Rep:
|
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.
|
|
|
06-16-2003, 10:55 AM
|
#4
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Original Poster
Rep:
|
what are runlevels =)
|
|
|
06-16-2003, 11:24 AM
|
#5
|
LQ Addict
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403
Rep:
|
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.
|
|
|
06-16-2003, 02:15 PM
|
#6
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Original Poster
Rep:
|
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 02:16 PM.
|
|
|
06-16-2003, 03:49 PM
|
#7
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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..
|
|
|
06-16-2003, 04:35 PM
|
#8
|
Member
Registered: Jun 2003
Distribution: Debian
Posts: 33
Rep:
|
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.
|
|
|
06-16-2003, 04:58 PM
|
#9
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
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!
|
|
|
06-16-2003, 05:05 PM
|
#10
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Original Poster
Rep:
|
What is X used, for?
Sorry lads... Tonnes of questions.
|
|
|
06-16-2003, 05:20 PM
|
#11
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Original Poster
Rep:
|
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...
|
|
|
06-16-2003, 05:42 PM
|
#12
|
Member
Registered: May 2003
Location: England
Distribution: Redhat9 Windows XP
Posts: 41
Original Poster
Rep:
|
How do i stop X, as i carn't stop it from the services tab?
|
|
|
06-17-2003, 12:42 AM
|
#13
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
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.)
|
|
|
06-17-2003, 04:10 AM
|
#14
|
Member
Registered: Mar 2003
Location: Leuven, Belgium
Distribution: Red Hat, Debian
Posts: 48
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|