Results 1 to 15 of 30

Thread: Want to instantly get a 15% performance boost?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Want to instantly get a 15% performance boost?

    Then issue the following command:

    echo "interrupt=no" > /proc/miscio/power_enable_config

    I finally found out what is causing ksoftirqd so much grief! It is the gpio driver. Turns out the +5V power on/off gpio is configured as an output (OK) and also an interrupt source (not OK). This results in a gpio interrupt storm.

    The only thing that keeps the problem from being *much* worse is that the gpio driver disables gpio interrupts while it applies a 10mS debounce period to the input pins. This action limits the total number of actual interrupts to only 100 / sec which is not so bad.

    The performance hit comes from the way the debounce actually happens. In the driver, input pins are debounced by continuously rescheduling a bottom half tasklet until the 10mS debounce period has expired. Ksoftirqd was being charged with this CPU time. The sharing of time slices between this tasklet and other runnable, cpu bound, processes resulted in the degraded performance.

    Here's the before and after execution time of a cpu intensive task:

    # time /bin/tar tvzf junk.tgz > /opt/tmp/file.txt
    real 4m 40.36s
    user 3m 54.46s
    sys 0m 3.02s
    # echo "interrupt=no" > /proc/miscio/power_enable_config
    # time /bin/tar tvzf junk.tgz > /opt/tmp/file.txt
    real 4m 0.15s
    user 3m 54.14s
    sys 0m 3.04s

    See how the real time went from 4:40.36 to 4:00.15? That's 16.7% faster!

    One final thing, here's the new load average of my box:

    load average: 0.14, 0.03, 0.01 ;-)

    - K.C.
    Last edited by kfurge; 12-03-2007 at 02:07.

Similar Threads

  1. WL-HDD performance tweaking
    By rumagent in forum WL-HDD Q&A
    Replies: 10
    Last Post: 22-04-2007, 09:35
  2. Any way to boost the tranfer speed to extern HD?
    By Rasmuskarlsen in forum WL-500gP Q&A
    Replies: 6
    Last Post: 31-10-2006, 21:16
  3. Wifi performance
    By samitro in forum WL-500gP Q&A
    Replies: 5
    Last Post: 11-09-2006, 20:57
  4. Significant USB performance enhancement
    By Cryptic in forum WL-500g Custom Development
    Replies: 16
    Last Post: 08-08-2006, 19:06

Posting Permissions

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