Ubuntu Tweaks

Discussion in 'all things UNIX' started by FluxGFX, Apr 28, 2009.

Thread Status:
Not open for further replies.
  1. FluxGFX

    FluxGFX Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    667
    Location:
    Ottawa/Canada
    Hey Mrkvonic,

    Seeing that your pretty much well verse on Linux/Unix environments, you may have pointers for a few of us. I'm no beginer to Unix/Linux but not an expert either.

    I was intrigue to see what tweaks, parameters, or anything that could increase performance and just plainly enhance the experience on Ubuntu.

    Anything you would like to share on that matter?

    -- Arup this also goes for you! ;) I know you have a whole bag of stuff to share.

    Cheers,
    fluxgfx
     
  2. Arup

    Arup Guest

    Thanks for the heads up, Mrk has way more knowledge than I have, actually Ubuntu and Linux in general is quite quick off the box and unless needed, I generally don't bother much with tweaks, I would rather prefer stability. I do install the latest video drivers from the manufacturer rather than the one in the repos, also I use ext4 to keep my file system fast and that helps out a lot. I also set the OS timeout in grub to 0 to make it boot quick, I don't need the delay as I don't use any other OS. Also since I am jaded person, I have no attraction to any effects so even though Compiz in Linux is the lightest eye candy compared to other OS, I have that turned off and metacity turned on as for me, response is everything.

    If you really wish to mildly and safely tweak Ubuntu I suggest you check out Ubuntu tweak at http://ubuntu-tweak.com/
     
  3. FluxGFX

    FluxGFX Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    667
    Location:
    Ottawa/Canada
    Like I said in one of my previous email chatting with a colleague of mine. I made a backup of my OS and switched the partition to ETX4 and reloaded the OS.

    So right there I noticed a nice increase in speed (mind you I'm running of a 10 000RPM disk). I did set the OS timeout to 0. I mean I have enough ressources on this puppy to have all performance, shiny looks and stability, so the visual effects are FULL fledge. I don't anticipate having any issues with the my newly installed GTX 260. Ok I'm only running with 4GB of RAM compared to 8 BLAH!. But mind you at this point, I'm just looking to fiddle with stuff here and there. I made a few modification to my IPtable but most of it is handle by my switch (box, router, firewall) whatever you want to call my little P2 dinosaure running around with nothing more then a 6gb HD with almost nothing.

    Thx Arup, yeah well for the times your on MSN and I'm not... I'm working LOL ;)
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,219
    Beware that serious tweaks could potentially break the machine!

    Here's a nice little bit you can to look at:

    /proc/sys/vm

    Start playing with parameters - but do read a bit first. The entire kernel is tunable, to such an extent that if you don't know what you're doing, bad things are going to happen.

    I recommend against tweaks, in general, on all OS, because 7 months later, you don't really remember what you changed that makes this or that not really work :)

    The best way to "tweak" is to compile your own kernel on your own system and turn off everything you don't need. But even I don't bother with something like that. If it works, let it be.

    Mrk
     
  5. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343
    The biggest thing for me is using relatime or noatime in /etc/fstab. However, I just checked my Ubuntu Jaunty install and it already uses relatime by default. So no need to tweak that if you're using Jaunty. The reason these are important is because of the way Linux updates atime and the disk IO it uses.

    Here is an exchange by two kernel hacker extraordinaires on the noatime/relatime benefit:

    Linus Torvalds wrote:


    Igno Molnar responded:
    You can read that whole exchange between Torvalds and Molnar here. I should also mention that I am not sure if this "problem" applies to ext4 or not. I have not researched it.

    You can also read up on something called "preload" and "readahead." These two options help with speeding up boot. Preload does what SuperFetch does on Vista. Vista's SuperFetch is a copy of Linux's preload (yep, Linux had it first).
     
  6. FluxGFX

    FluxGFX Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    667
    Location:
    Ottawa/Canada
    I'm all up to f*cking it up! I mean thats how you learn but then again I also have a backup of my current state so I'm not worried.
     
  7. tlu

    tlu Guest

    Yes, and according to this test ext4 doesn't benefit from other mount options.
     
  8. Arup

    Arup Guest

    Readahead is also implemented in Jaunty.
     
  9. wj32

    wj32 Developer

    Joined:
    Apr 23, 2009
    Posts:
    48
  10. Arup

    Arup Guest

    With current Kernel optimizations and file systems like ext4, preload is redundant and hardly shows much improvement, OTOH, it runs as root so not a really good idea as it keeps a list of programs by their access patterns, also it has not been updated for a long while so all in all, not a good idea, readahead is already implemented in Jaunty.
     
  11. NGRhodes

    NGRhodes Registered Member

    Joined:
    Jun 23, 2003
    Posts:
    2,381
    Location:
    West Yorkshire, UK
    Yes i've run it for over a year without problem.
    Eclipse and Open Office load far much quicker first time round after a reboot (and the cache is empty).
     
  12. NGRhodes

    NGRhodes Registered Member

    Joined:
    Jun 23, 2003
    Posts:
    2,381
    Location:
    West Yorkshire, UK
    Readahead only works on system boot, anything from the session onwards does not benefit.

    Why do you think is it not a good idea that preload runs as root ?

    Its a very simple little app do I guess it does not need much updating, you can see the change log : http://changelogs.ubuntu.com/changelogs/pool/universe/p/preload/preload_0.4-5/changelog
     
  13. Arup

    Arup Guest

    I have used preload in past with Hardy and never saw any appreciative speed increase of apps, probably most apps in Linux load quick anyways to begin with. With Jaunty and ext4 its even quicker. Also the fact that its a daemon running with root privildeges just makes me paranoid but its fine if its works for you and others.
     
  14. wilbertnl

    wilbertnl Registered Member

    Joined:
    Dec 29, 2004
    Posts:
    1,850
    Location:
    Tulsa, Oklahoma
    Guess what?
    Source.
     
  15. NGRhodes

    NGRhodes Registered Member

    Joined:
    Jun 23, 2003
    Posts:
    2,381
    Location:
    West Yorkshire, UK
    OK heres the only tweak I do.... enable laptop mode !

    It is disabled by default as various machines do not behave well with it.

    https://wiki.ubuntu.com/PowerManage...ing correctly (without excessive load cycling)

    I tweak some of the settings in /etc/laptop-mode/laptop-mode.conf, for example I do not like the readahead settings used.

    Its a very straight forward config file to edit - have a read and look at the comments, just make a copy before playing the settings.
     
    Last edited: May 2, 2009
  16. FluxGFX

    FluxGFX Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    667
    Location:
    Ottawa/Canada
    Lets get back on the subject of Ubuntu tweaks.... What else could one do just to spice things up?

    Cheer,
    fluxgfx
     
  17. chronomatic

    chronomatic Registered Member

    Joined:
    Apr 9, 2009
    Posts:
    1,343

    Overclock your CPU using liquid Nitrogen. Perhaps you will hit 8GHz which will spice things up nicely. :cool:
     
  18. FluxGFX

    FluxGFX Registered Member

    Joined:
    Jan 23, 2003
    Posts:
    667
    Location:
    Ottawa/Canada
    Smart AS S! I've already overclocked the Wolfdale E5300 to be a bit more performant then the E8400. I'm working on overclocking the eVGA GTS 250 now :)

    LoL
     
  19. Arup

    Arup Guest

  20. wj32

    wj32 Developer

    Joined:
    Apr 23, 2009
    Posts:
    48
    I've had weird problems with using "shell" - does it account for dependencies?
     
  21. Arup

    Arup Guest

    See the Netbook Remix enables the shell in the init.d but on their regular desktop distro its left untouched.
     
  22. NGRhodes

    NGRhodes Registered Member

    Joined:
    Jun 23, 2003
    Posts:
    2,381
    Location:
    West Yorkshire, UK
    Will using "shell" make a difference in Jaunty ?
     
  23. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,219
    What do you mean by using shell ...?
    Mrk
     
  24. NGRhodes

    NGRhodes Registered Member

    Joined:
    Jun 23, 2003
    Posts:
    2,381
    Location:
    West Yorkshire, UK
    In /etc/init.d/rc you can set concurrency of init script execution on startup.

    Here's the comment from Intrepid:

    Code:
    # Specify method used to enable concurrent init.d scripts.
    # Valid options are 'none', 'shell' and 'startpar'.  To enable the
    # concurrent boot option, the init.d script order must allow for
    # concurrency.  This is not the case with the default boot sequence in
    # Debian as of 2008-01-20.  Before enabling concurrency, one need to
    # check the sequence values of all boot scripts, and make sure only
    # scripts that can be started in parallel have the same sequence
    # number, and that a scripts dependencies have a earlier sequence
    # number. See the insserv package for a away to reorder the boot
    # automatically to allow this.
    CONCURRENCY=none

    It works by backgrounding the init scripts as they are run (like you can do from any shell).
     
  25. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,219
    I see what you meant now ... Didn't read the linked page ...

    startpar can be useful and you can use it without worry if you did not insert any services manually, so the numbering has been configured beforehand. I've never used shell.

    Either way, you can use bootchart to profile the sequences in different modes and see if there are problems, delays or dependencies.

    Mrk
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.