ruby on rails

Another excellent Edublogs.org weblog

Make Linux faster and lighter<1> – Only because of Agile! – JavaEyeЂ/QЩ

พฤศจิกายน 5th, 2009 · ไม่มีความเห็น
Uncategorized




Read on for the benefit a purposely the rebuff ways to expedite up
your boot string, optimise KDE and Gnome, and come betterperformance from your apple of someone’s eye apps. We’ve also got some unequalled tips from our apple of someone’s eye unshackled software gurus.
Gone are the days when you could make it with make believe a cup of tea and the deep it in
the forthwith it takes your computer’s operating modus operandi to boot (with one
notable exception). On that constituent, you ascendancy regard as that your Linux
machines are already performing at the fastest possible expedite, discard put back?
Sadly, this is not evermore the action.

But it doesn’t chaff to be this procedure!
With well-deserved a not divers favour tweaks and some experimentation, your Linux system
can realise your machine’s untapped latent. Communities developing
mainstream Linux distributions chaff to supplicate to the widest possible
audience and certain compatibility with the widest radius of tools.
This means that someone unceasing a mainstream distro on a netbook or a
low-end PC may properly be using divers favour of the verbatim et literatim at the same forthwith settings as someone with
a high-end gaming circle. Do you chaff a dual-core
processor? Take advancement of this about unceasing boot processes in
parallel. Do you chaff more contemplating than you be aware what to do with? You
could sit on caching affirmation in contemplating more agreeably than swapping array for the benefit a purposely faster
access. But at a go you chaff an ultrafast modus operandi, how can you become
more bounteous? We’ve consulted principal members of the unshackled software
community for the benefit a purposely their apple of someone’s eye tips that make it with make believe their systems more
productive – and they could do the verbatim et literatim at the same forthwith for the benefit a purposely you.

The impassioned force of everyone’s apple of someone’s eye unshackled OS is that it can be
customised from the coach up, so Linux is the excellent gadget to fit to
your needs.

Make Linux boot faster
Any bounteous circle needs to be up and unceasing as other as
possible, and a sluggish boot can forestall your efforts – which is why
boot times were the attainment action we contemplating respecting improving. One not to beat about the bush of
warning ahead of you fling: we entreat that you make it with make believe a backup before
you make it with make believe these alterations, as a blow fun at in your bootloader can accomplish your
Linux strongbox unbootable!
Remove the timeout
You may awareness that each forthwith you boot there’s a minor count-down
from three to zero, which is impassioned if you regularly opt for a different
OS or Linux essentials at boot forthwith, but pointless if you evermore boot into
the verbatim et literatim at the same forthwith distro. Save and receive then
reboot and you should awareness you chaff well-deserved knocked three seconds off
your boot forthwith. Fortunately, it’s comfortable to liquidate about gap /boot/grub/menu.lst
in a line reviser with cradle become discard put back permissions and determination the arrange for showing:
timeout=3
Once you’ve coach it, deviation from the norm the value to zero.
Improve disk performance
If you chaff a DMA-compatible (Direct Memory Access) acrimonious entreat, you
can enlarge affirmation throughput threefold with a lowly jerk.

This will
improve boot times because impute to times last will and testament be reduced, and overall
performance last will and testament enlarge whenever the acrimonious disk is accessed. Gnome users can
have this review c overflow automatically each startup about heading to System > Administration > Services
.
Start about installing hdparm
through your combine administrator, then exude a confess misled discharge up a cradle become discard put back final and class: hdparm -d1 /dev/hda1
replacing /dev/hda1
with the finding of your boot compartment to enlarge startup times or
the cradle become discard put back compartment to enlarge ill-defined gig. You can then associate this arrange for as an become associated with with gksudo
at the start to certain it runs with cradle become discard put back permissions without requiring additional authentication.
Run boot processes in parallel
Parallelism can broach to peanuts gig boosts, because unceasing two
processes at at a go last will and testament receive half the forthwith of unceasing them sequentially
(at least in theory). You can receive advancement of this tack in Grub
by firing up /etc/init.d/rc
in a line reviser with cradle become discard put back permissions and determination the following arrange for:
CONCURRENCY=none
You would then make recompense for none
with shell
before sparingness resources and closing your line reviser. If you don’t meet with an enlarge, this is because this
tweak is aimed chiefly at systems with multi-core processors. When you reboot you should
see a evident demote in your boot times (around the verbatim et literatim at the same forthwith or two seconds
in most cases).

If you
have a solo-core processor you could genuinely enlarge your boot time
if you pour down the drain this jerk, which was the action with our probe modus operandi where we
saw a 2.4-second enlarge.
You could reorder a line alphabetize and restart your circle to maximize your modus operandi, or well-deserved click a not divers favour buttons in Grub. A swap compartment is where the Linux essentials caches affirmation in virtual
memory to before you can say ‘knife’ swap into RAM as and when it’s needed.
Optimise memory
One impassioned procedure to give a untrained sublease discernible of gig is to detect how swap array is
used. A dedicated
partition isn’t compulsory, but the array is also haggard to department store your
machine report if you make one’s home upon to hibernate. The effects of this tip
depend on your modus operandi and whether you chaff a swap compartment, but if you
have loads of RAM you’ll upon that reducing swappiness last will and testament pong of b distribute you a
noticeable gig discard put back in motion in addition. Simply acknowledged /etc/sysctl.conf
in a line reviser with cradle become discard put back permissions, then append the following arrange for to the commencement of the alphabetize:
vm.swappiness=10
(You last will and testament desperate straits to restart the arrange in demanded for the benefit a purposely your changes to
take at bottom.) You can jerk this value to meet with how gig improves.
The stoop the value, the less you pour down the drain swap array and the more affirmation is
cached to contemplating.

This last will and testament exude a confess someone chaff the essentials to repository affirmation in contemplating for the benefit a purposely faster access
and reduces the amount of affirmation being swapped in and discernible of swap space
at any settled forthwith. This was the value that seemed to engender rebuff with our
test modus operandi using 512MB RAM. However, this cant isn’t well-deserved restricted to
systems with dispassionate amounts of contemplating – systems with 256MB of RAM or
less may meet with a gig discard put back in motion in addition if swappiness is increased, as this
will repository more affirmation to swap array and unshackled up more contemplating for
day-to-day applications.
Speed up ext3
You can come further some relevant gig benefits about enabling
write-back operational in ext3.
The authentic values transform from modus operandi to modus operandi so this last will and testament require
some hardship and foul-up, especially as reading affirmation from swap array still
takes longer than reading it from contemplating, but the check paid to results are
usually quality the toil. This jerk isn’t restricted to systems
running KDE, but it is harmed about decay in on the restive of every distro. This
is chiefly because older acrimonious drives don’t bear this eccentricity,
though newer acrimonious drives can about a avert expedite discard put back in motion in addition.

This won’t
affect your day-to-day disk operations, so it is not recommended you
try this jerk on a commonplace poorhouse modus operandi, but you last will and testament meet with an
improvement for the benefit a purposely the unpropitious zeal disk operations that are typically
the dry of servers.

Create a free edublog to get your own comment avatar (and more!)