From: SASADA Koichi Date: 2010-11-11T02:39:14+09:00 Subject: [ruby-core:33128] Re: timer thread sleep interval (powertop abuses) Hi, (2010/11/11 2:34), Chris Mason wrote: >> Why do you want to reduce timer thread wake-up counts? Power issues? > > Correct, the wakeups prevent the CPU from going into lower > power modes. It directly translates to more power usage and less time > on battery. I found this while using sup, which is an email client that > we want to leave running for long periods. On the multi-threaded environment, at least one thread is working. So that timet-thread invocation will not increase power consumption. Or you mention about multi-core CPU? (If 4 cores, 1 is for ruby thread and 1 for timer thread, this cause same power issue. I find this issue now :) Thank you) > So, if I set the sleep to 500ms, then I'll only switch threads every > 500ms? That's probably not ideal ;) yes. -- // SASADA Koichi at atdot dot net