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.
Hello
I need ways to make my RH linux works and boot faster.
My items are:
1) Mount all file system with noatime option
2) Mount /tmp dir as tmpfs
3) Disable unnecessary services like bluetooth.
I need ways to make my RH linux works and boot faster.
IMHO you best start by 0) listing your current hardware specs, disk layout, software list (attach 'rpm -qa --qf="%{NAME}\n";' as plain text file) and configuration, 1) telling us what purpose(s) the machine is used for and 2) by running Atop, Collectl or dstat to generate usage stats for at least one 24 hour period of regular usage. This may indicate bottlenecks (or not) and may serve as a baseline so you can measure which changes actually make it faster (or not).
If you can, add more RAM (I recommend 2GB for 32-bit machines, more for 64-bit machines). Depending on what sort of software you run, the optimal amount varies. Any extra you have left over will be used to cache filesystem accesses, so having more than your applications need, will generally speed things up a bit in normal use.
If you have two identical hard drives, use software RAID-0 (md RAID-0) to double your disk access speeds. I use software RAID-1 for the home partition to protect my documents against one disk failure, but RAID-0 for everything else. Only use RAID-5 or RAID-6 with good, fast hardware RAID cards. Software RAID-0 and RAID-1 is always faster than hardware RAID-0 or RAID-1 (even if it sounds counterintuitive), for up to at least eight hard drives.
Instead of booting, check if your machine supports suspend. In that case, only some peripherals and your RAM is powered up. The amount of power used while suspended varies; you really need to measure it (from the wall socket end!) to be sure. Any machine should wake up within a couple of seconds when suspended.
On the software side, check for unnecessary system services. If you don't need a GUI, do not use X; it uses a lot of resources. I never use X on my servers. (X libraries I do have installed, so if absolutely necessary, users can connect to the server from a workstation, and get a GUI that way.)
If you need a GUI, instead of KDE or Gnome, use a lightweight desktop environment. I prefer XFCE, but LXDE is quite nice too.
If you provide services like Apache, make sure you have configured it properly. In particular, do not load modules you do not need. Instead of .htaccess files, use the central configuration files to reduce the load. .htaccess files are parsed for each access, but central configuration files are kept as data structures in memory. On the other hand, if you change the central configuration files, you need to tell Apache to reload the configuration for the changes to take effect; changes to .htaccess files take effect automatically.
Avoid Java; it is slow and consumes memory like a kid eating candy: fast and sloppy. Prefer compiled applications over interpreted ones, especially for daemons and services that run all the time. For user tools, it does not really matter, unless you run them all the time.
And yes, I do this myself. My current travel machine is an Aspire One A110L (Atom N270 CPU, 8GB SSD, 2GB RAM); small and light. With a heavy six-cell battery it should have more than 12 hours of active use, but since I tend to always have mains power, I haven't bought one. I'll probably switch to a tablet in the near future, too. Under XFCE, browsers and even LibreOffice works quite well in the A110L, certainly well enough to suit my needs.
I'm really sorry, I tried to link a LQ page, but the search engine refused to answer. So there was a post, maybe a week old or similar explaining how to boot in seconds. That would be really useful to mention here, but...
I am guessing that by RH you mean some version of RHEL and NOT the very old RH
if this IS the old RH 9,RH 8,... Then forget about it
they went end of life 4 + years ago
and if this is RHEL4 it to is EOL
or
is this RHEL 5 . what(? something 0 to 8 )
or
RHEL 6.0,RHEL6.1,RHEL6.2
what version is it ?
adding ram will always help ,unless this is a 32 bit OS and you have 3.3 or 3.7 gig ram .
If your desktop is wired to the Ethernet, you don’t need to have a wireless kernel module loaded. This task is a bit more difficult and will require a kernel recompilation, which is not the easiest task to undertake. To do this, you will need the kernel sources. Then, follow the standard steps for compiling a kernel. The difference is that you’re going to go through your system and disable all of the modules you don’t need.
The best way to find out what kernel modules currently install and run on your system is to install Bootchart. Not only will this give you a good list of modules, it will illustrate for you what is happening during your system boot. You can also issue the command chkconfig –list | grep 3n to find out what services are running. Once you know what loading modules you don’t need, you can remove them during a kernel recompilation. While you’re at it, compile the kernel to exactly match your architecture.
RHEL 6(Scientific Linux 6), with no gui, and a default installation can boot in under 8 seconds in a virtual machine. Are we talking about boot times here? Or performance while already running?
Reducing "boot time" is of questionable benefit, probably, because once a Linux system has been started you can leave it running continuously for months or years. That's why we sometimes have uptime "contests." ("I can keep mine up longer than you ..." uhh, sorry. )
Seriously, if you do need to reduce perceived startup-time, there are several ways to do it ... I'll refer you to the appropriate documentation for details.
Pare down the "device discovery" (initramfs) processes so that only the devices you actually have are looked-for. (An early Red Hat actually searched for, and had support for, a Digital (DEC) token-ring adapter card.)
Embed necessary device drivers directly into a custom kernel and eliminate the initramfs process altogether.
Eliminate all unnecessary service-startups. "Know what you're running, and know why you're running it."
But beyond that, just leave the thing running. I had a laptop with an uptime of more than a year and a half.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.