#7433 NORM -: Starting cerebro as daemon takes too much CPU

Zarro Boogs per Child bugtracker at laptop.org
Wed Jul 23 05:38:41 EDT 2008


#7433: Starting cerebro as daemon takes too much CPU
----------------------------+-----------------------------------------------
   Reporter:  ypod          |       Owner:                                   
       Type:  defect        |      Status:  closed                           
   Priority:  normal        |   Milestone:                                   
  Component:  not assigned  |     Version:  Development build as of this date
 Resolution:  fixed         |    Keywords:  cerebro                          
Next_action:  never set     |    Verified:  0                                
  Blockedby:                |    Blocking:                                   
----------------------------+-----------------------------------------------
Changes (by meeg):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Cause: spinning on input. The input handler (bin/cerebro, line 1064)
 misbehaves when stdin is closed, as it is for a daemon - it runs
 handle_stdin hundreds of times a second (according to strace -p).

 Fix: remove the input handler. It is only there for debugging purposes.

-- 
Ticket URL: <http://dev.laptop.org/ticket/7433#comment:2>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list