Speed up AAOne

Discussion in 'Modding and Customization' started by karona, Sep 1, 2008.

  1. karona

    karona

    Joined:
    Aug 19, 2008
    Messages:
    75
    Likes Received:
    0
    Location:
    Razdel, Bulgaria
    Copied from a post by trumpeldor in the beginners section, dramatically increased the speed of my AA1, SSD version with Linpus and an extra half gig of RAM, it deserves a post of it's own in here.

    Keith

    -----copy------


    According to this post I found, concerning SSD, the following will greatly increase read and write performance on your SSD-disk (which happens to be the type of disk the Acer Aspire One has, the Linux-version anyway).

    Simply do the following:

    $ sudo su -
    # mousepad /boot/grub/grub.conf

    Now, add the elevator=noop option to the kernel-line, making this line:

    kernel /boot/bzImage ro root=LABEL=linpus vga=0x311 splash=silent loglevel=1 console=tty1 quiet nolapic_timer

    look like this:

    kernel /boot/bzImage ro root=LABEL=linpus vga=0x311 splash=silent loglevel=1 console=tty1 quiet nolapic_timer elevator=noop

    Save the file, close it, and reboot. Some have reported that there’s an increase in writespeeds going from 7.1MB/s to 9.1MB/s by adding this change. If it works or not, well, you can be the judge of that. :)



    _________end copy_________


    I've been using it for several hours now, including several reboots, and it's stable and MUCH quicker.


    Keith
     
    karona, Sep 1, 2008
    #1
  2. karona

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    hi there,

    I applied this and the lappie does feel marginally faster - how did you test the read/write speed of the SSD? I'd like to run some benchmarks :)
     
    annafil, Sep 2, 2008
    #2
  3. karona

    karona

    Joined:
    Aug 19, 2008
    Messages:
    75
    Likes Received:
    0
    Location:
    Razdel, Bulgaria
    I didn't benchmark the performance before the mod, so cannot give a direct comparison, it just 'feels' much faster.


    Keith
     
    karona, Sep 2, 2008
    #3
  4. karona

    MusicMeister

    Joined:
    Aug 26, 2008
    Messages:
    23
    Likes Received:
    0
    The modification prevents the 'ordering' of information to be written to the drive. On normal hard drives this is faster because of the head seek times and it creates a much smoother transition of the head across the platter. On a SSD there is no head, or seek time. Because of this you can remove elevator process (what the ordering of data is called) and it speeds up I/O.

    How much? I don't know... But I just added the statement to my AAO and will see what sort of performance 'increase' I 'feel' shortly... especially since I'm almost always skeptical... ;)
     
    MusicMeister, Sep 2, 2008
    #4
  5. karona

    Colt45

    Joined:
    Sep 3, 2008
    Messages:
    8
    Likes Received:
    0
    Visually this works GREAT! I was skeptical, but not now. Be sure to save your original grub.conf to a new name in case you want to go back.
     
    Colt45, Sep 3, 2008
    #5
  6. karona

    edgecrush3r

    Joined:
    Aug 12, 2008
    Messages:
    53
    Likes Received:
    0
    Can anyone explan what the setting actually do?
    Does this also work on HDD machines?

    Cheers,
    Tony
     
    edgecrush3r, Sep 3, 2008
    #6
  7. karona

    esaym

    Joined:
    Aug 7, 2008
    Messages:
    60
    Likes Received:
    0
    It has to do with how the kernel orders disk i/o

    ie, if a bunch of i/o requests come in, which one gets to go first.

    http://www.redhat.com/magazine/008jun05 ... chedulers/
     
    esaym, Sep 3, 2008
    #7
  8. karona

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    Its SAFE to do that???
     
    jango, Sep 3, 2008
    #8
  9. karona

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    yep pretty much, it's just a different way of handling data
     
    annafil, Sep 3, 2008
    #9
  10. karona

    scotty1024

    Joined:
    Jul 30, 2008
    Messages:
    5
    Likes Received:
    0
    This change is SAFE but whether it is SMART is based on what you are doing.

    The issue is that it applies to all "disk" devices attached to the AA1. If all you have is SSD and SD/SDHC cards then it is the CORRECT setting as these devices don't need the kernel sorting I/O operations for them. This setting feeds blocks to the device ASAP and helps keep it well stuffed with data to write.

    However, if you are attaching a HDD through the USB port then this setting will slow down write operations with that HDD. This setting would also be bad news for an AA1 with a HDD instead of a SSD as it would negatively impact write performance.

    At some point the Linux kernel will need to be updated to support device specific I/O sorting. But for now you get to pick which device type you will be writing to the most.
     
    scotty1024, Sep 4, 2008
    #10
  11. karona

    artisvita

    Joined:
    Jul 29, 2008
    Messages:
    11
    Likes Received:
    0
    thanks for this post. feels significantly faster indeed.
     
    artisvita, Sep 23, 2008
    #11
  12. karona

    cipajoguca

    Joined:
    Sep 25, 2008
    Messages:
    1
    Likes Received:
    0
    For a detailed technical description (in german) look here:
    http://www.linux-magazin.de/layout/set/ ... /full/3596

    According to some tests of Andrew Morton the noop setting is worse for real harddrives.
    I guess the positive effect of speeding up SD access is because the overhead inside
    the kernel is limited and the SD has random access anyway as there is no moving head
    whose movement could be optimized.
     
    cipajoguca, Sep 25, 2008
    #12
  13. karona

    bennyzhou

    Joined:
    Aug 20, 2008
    Messages:
    19
    Likes Received:
    0
    bennyzhou, Sep 27, 2008
    #13
  14. karona

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    What about this?...
     
    jango, Sep 28, 2008
    #14
  15. karona

    PoV

    Joined:
    Aug 16, 2008
    Messages:
    18
    Likes Received:
    0
    My lame boot time benchmark (a stopwatch) seemed exactly the same with "noop" and "deadline". "noop" apparently has a lower CPU overhead, so that may mean something somewhere, or it might not. I imagine it's a question of weather we're doing lots of/occasional larger reads (making the overhead worth it) or many smaller ones (not), but I'm still new to this.
     
    PoV, Oct 15, 2008
    #15
  16. karona

    Benmoto1

    Joined:
    Nov 21, 2008
    Messages:
    7
    Likes Received:
    0
    On my AA1 the line reads diffeently.
    Does anyone know if the speed up access works here and where the new command should be placed?

    kernel /boot/bzImage ro root=LABEL=linpus vga=0x311 splash=silent loglevel=1 console=tty1 quiet nolapic_timer initrd /boot/initrd-splash.img
     
    Benmoto1, Dec 3, 2008
    #16
  17. karona

    steffen_b

    Joined:
    Dec 6, 2008
    Messages:
    2
    Likes Received:
    0
    First things first, great idea - this should help :)

    Second: Screwing up grub.conf can cause the AAO to not boot anymore (as this is the bootloader config)
    Third: This can be set per device through sysfs:
    Change it on the fly with `echo noop > /sys/block/${DEVICE}/queue/scheduler` , where $DEVICE is sda with standard SSD aspire one, so:
    echo noop > /sys/block/sda/queue/scheduler
    does the same only for the SSD / first harddisk. This could be put into the rc.local, but is only effective then for the SSD.

    HTH

    Steffen
     
    steffen_b, Dec 6, 2008
    #17
  18. karona

    darrenbates

    Joined:
    Dec 9, 2008
    Messages:
    1
    Likes Received:
    0
    I feel it's fast and safe. Just ran it and it's perfect I have the 8GB model with a 1GB SD Card in the port and a 2 GB USB Flash Key. It "feels" like the data is running twice as fast between my AA1 and my flash key, and I have the FTP Client update downloaded from the Acer website itself aswell as the DVD Writer. No problems whatsoever.

    DITman
    Dublin, Ireland
     
    darrenbates, Dec 10, 2008
    #18
  19. karona

    andymaxwell

    Joined:
    Oct 1, 2008
    Messages:
    25
    Likes Received:
    0
    WARNING.
    I added the elevator=noop line to the conf file and my machine kernel panic'd ad wouldnt boot. I had to buy a live usb linux distro to get my at my files, then did a full recovery reinstall.

    On the positive side, it seems the version of Linpus I had installed from new was crappy compared to the one on the recovery cd...hmm, you would've thought them to be the same!

    I have just entered the echo noop > /sys/block/sda/queue/scheduler line ... we shall see what difference it makes.

    btw can I make the echo noop > /sys/block/sda/queue/scheduler a permanent entry somewhere, rather than an on the fly one?
     
    andymaxwell, Mar 7, 2009
    #19
  20. karona

    andymaxwell

    Joined:
    Oct 1, 2008
    Messages:
    25
    Likes Received:
    0
    Can anyone tell me how to put the 'on the fly' method in a startup file? It does have a noticable effect on the speed of the computer. The menu.1st method doesnt work for me as the file doesnt exsist!
     
    andymaxwell, May 6, 2009
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.