LinuxQuestions.org
Review your favorite Linux distribution.
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 05-18-2012, 04:02 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 128

Rep: Reputation: 6
Question Ways to make RH linux faster


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.

Is any more ideas?
 
Old 05-18-2012, 10:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sluge View Post
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).
 
Old 05-18-2012, 02:38 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
https://fedoraproject.org/wiki/Systemd
 
Old 05-18-2012, 03:20 PM   #4
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
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.
 
Old 05-18-2012, 03:52 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,629

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
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...
 
Old 05-19-2012, 12:22 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,621

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .
 
Old 06-20-2012, 04:32 PM   #7
Milkwitzjs
LQ Newbie
 
Registered: Jun 2012
Posts: 9

Rep: Reputation: 1
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.
 
Old 06-20-2012, 04:34 PM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693Reputation: 1693
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?
 
Old 06-21-2012, 08:18 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,599
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
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.
  1. 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.)
  2. Embed necessary device drivers directly into a custom kernel and eliminate the initramfs process altogether.
  3. 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make Linux faster than windows? jumico Linux - Newbie 24 12-11-2008 09:15 PM
how to make linux boot faster suneel Linux - Newbie 13 03-08-2006 09:11 AM
How can I make linux faster? Superdude Linux - General 7 08-23-2004 08:34 PM
What are some of the easiest ways to make Linux look like XP? aaronshaf Linux - Software 3 05-20-2004 10:55 AM
Can I make Linux run faster?? justiceisblind Linux - Newbie 3 06-17-2002 01:25 AM

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

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