#5 idle applet causes 100 CPU wake-ups/sec

closed
None
5
2008-08-15
2008-08-13
No

sshmenu Version: 3.15
ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]

Using the powertop utility I noticed that sshmenu causes 100 CPU interrupts a second when idle. This is just too many wakeups. They are caused by calling do_nanosleep().

30,8% ( 99,8) sshmenu-applet : do_nanosleep (hrtimer_wakeup)

Using strace I notice that sshmenu actually seems to be idle?! My bet is that ruby seems to be the cause. can you confirm this?

Discussion

  • Grant McLean

    Grant McLean - 2008-08-15

    Logged In: YES
    user_id=242694
    Originator: NO

    The cause is apparently in the Ruby Gtk bindings and it works that way to allow the Gtk main loop to coexist with Ruby threads. SSHMenu doesn't actually use Ruby threads but apparently an extra thread is always used for signal handling. Discussion from last year is here: http://www.ruby-forum.com/topic/126172

     
  • Grant McLean

    Grant McLean - 2008-08-15
    • assigned_to: nobody --> grantm
    • status: open --> closed
     

Log in to post a comment.