[OLPC-devel] Re: [One Laptop Per Child] #82: Look for misbehaving userspace apps.

Zarro Boogs per Child bugtracker at laptop.org
Fri Sep 1 16:13:59 EDT 2006


#82: Look for misbehaving userspace apps.
--------------------+-------------------------------------------------------
 Reporter:  cjb     |        Owner:  blizzard 
     Type:  defect  |       Status:  new      
 Priority:  normal  |    Milestone:  rev1 beta
Component:  distro  |   Resolution:           
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by cjb):

 (See the description for this bug, which wasn't mailed out on bug
 creation, for more information.)

 Looking at context switches will help to track misbehaving applications.
 These can be counted with vmstat, and enumerated either with
 [http://sourceware.org/systemtap/wiki/WSMarkerBasedTop Systemtap] (which
 can provide a transition matrix) or the poor man's method:
 {{{
    # for i in /proc/*; strace -p $i; done
 }}}
 (Hit control-C to change process, anything that spews output is evil.)

 Some quick average context-switch counts from build 81, over a ten-second
 period of idleness (vmstat 10):
 {{{
 In init 3: 37
 Init 5, at the sugar login screen: 24
 Init 5, at the sugar activity chooser: 13
 Init 5, sugar web browser, Google loaded: 30
 }}}
 These numbers are a reasonable start; my Ubuntu desktop is at 1200 when
 idling with apps open, and 200 when idling on a fresh GNOME login.

-- 
Ticket URL: <http://dev.laptop.org/ticket/82#comment:1>
One Laptop Per Child <http://laptop.org/>



More information about the Devel mailing list