Linux - SoftwareThis 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.
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.
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?
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).
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..
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.
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.)
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.