Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: New PET: Optimize your box (work in progress)

  1. #1
    Advisor Lovechild's Avatar
    Join Date
    Apr 2005
    Location
    Århus, Denmark
    Posts
    579

    New PET: Optimize your box (work in progress)

    While the bulk of the excess in your system comes from unintended work which means that to really increase your performance we need serious profiling and hacking to make your machine go WROOM, there are a few general things you can do to make your system work nicer. Remember all these hints can have adverse effects so use them at your own risk, if you break it you get to keep both pieces.

    CPU registers are very fast, HDs are very slow - comparably about a painfactor of 1 million. So doing less IO is good for your performance, remember this at all times.

    Performance is a compromise of throughput and latency (also talked about as interactivity) for your machine (being a desktop) latency is much more important than throughput. It's much more important for you that your machine responds NOW than that it manages to push more bits. This means you can select your settings for those metrics.

    CFQ IO scheduling:

    Basics:
    Adding elevator=cfq to your /boot/grub/menu.lst

    example:

    Quote:
    title Fedora Core (2.6.15-1.1948_FC5smp)
    root (hd0,0)
    kernel /vmlinuz-2.6.15-1.1948_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.15-1.1948_FC5smp.img

    to:

    Quote:
    title Fedora Core (2.6.15-1.1948_FC5smp)
    root (hd0,0)
    kernel /vmlinuz-2.6.15-1.1948_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet elevator=cfq
    initrd /initrd-2.6.15-1.1948_FC5smp.img

    This makes IO access more fair and such interactivity should improve.

    Prelinking:

    Basics:
    Making dynamic library lookups faster

    ensure that the prelink binary is installed and that a cron job is taking care of the daily maintance of the prelink lookup table.

    This is rather distro specific so here goes for distros I'm sure how to enable it for.

    Fedora (FC1 and beyond):
    1) Do nothing, it's default on

    Gentoo (Portage 2.0.54+ I think):
    1) emerge prelink
    From here on portage takes care of prelinking for you automatically

    Ubuntu (Dapper 6.04 used as example here):
    1) sudo apt-get install prelink
    2) sudo vi /etc/default/prelink
    (set PRELINKING=yes)
    3) sudo /etc/cron.daily/prelink

    Tuning your ext3 filesystem:

    Basics:
    Enables hashed b-tree journals on ext3

    Let's take some precautions, first of all by finding out if some of those parameter are already enabled, by running

    Check partition first
    0) tune2fs -l /dev/hdXX

    (replacing XX with your drive and partition your ext2/3 filesystem resides in). If you don't see dir_index in the list then we can enable it, and just in case you do see dir_index in 'Filesystem features' then you have either enabled it already or it was automatically enabled for you.

    Now let's turn on the feature with (It is strongly recommended that you do this from a LiveCD and not on a running system)
    1) tune2fs -O dir_index /dev/hdXX
    (replacing XX with your drive and partition your ext2/3 filesystem resides in)

    Now run e2fsck with the -D option to have the directories optimized:
    2) e2fsck -D /dev/hdXX

    Do that on any ext2 or ext3 partition and then reboot. You should notice the difference straight away.
    Why are you not using Fedora Core?

    My blog

  2. #2
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    Added a PET section called Performance and Tuning and took the liberty of getting your PET started there.

    Optimze Your Box

  3. #3
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    New PETs can be added automagically in WiKi.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  4. #4

  5. #5
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    NOt for you, I was referring to Lovechild. He can have added it in WiKi's PET area without posting it here (or may be just let us know there is a new PET but he doesn't have to type it all here).
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  6. #6
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    I see. I made an assumption that he wanted it added. Perhaps I should have waited for him to complete it and add himself?

    Not his fault, I guess he was looking for suggestions etc.

  7. #7
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    He probably wanted it added. I was just thinking along the line of he forgot PET section was there.

    I also don't think one need to wait to add a PET. Just started out with what one has and go from there. If you wait it to get all complete, you'd never complete (it's true with me at least).
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  8. #8
    Advisor Lovechild's Avatar
    Join Date
    Apr 2005
    Location
    Århus, Denmark
    Posts
    579
    The wiki told me to create an account without telling me how . I couldn't be assed both to write the PET and **** around with the wiki - this will be how I post PETs now and forever.
    Why are you not using Fedora Core?

    My blog

  9. #9
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    I remember somewhere that it's the same as your log in name and passwd (but I'm not so sure) for OpenFree main site.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  10. #10
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    Posts
    882
    That's right, the PETs use the same login information as the forums. The home page mentions it too.

Similar Threads

  1. Optimize Your Box
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 04:49 AM
  2. reg progress bar
    By s_hcl in forum Redhat / Fedora
    Replies: 1
    Last Post: 10-14-2006, 09:55 AM
  3. Optimize Debian packages for your system
    By in forum Linux - General Topics
    Replies: 15
    Last Post: 01-18-2005, 07:57 AM
  4. Music server progress report
    By bullgoose in forum Linux - General Topics
    Replies: 4
    Last Post: 11-09-2004, 09:45 PM
  5. Debian Progress
    By Feztaa in forum Linux - General Topics
    Replies: 4
    Last Post: 12-10-2001, 02:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •