[Bugs] #2141 UNSP: Memory and CPU status indicator for the frame.

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Aug 29 11:58:40 EDT 2010


#2141: Memory and CPU status indicator for the frame.
------------------------------------------+---------------------------------
    Reporter:  m_anish                    |          Owner:  tomeu                      
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:  r! dextrose                
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by bernie):

 Replying to [comment:15 m_anish]:
 > Regarding this particular ticket/patch, these are the points of
 contention -
 >
 > 1. Don't include CPU usage numbers.
 > 2. Include CPU numbers, but lower its weight-age in determining the
 'mood'.
 > 3. Use /proc/loadavg instead of /proc/stat. This way we can compute CPU
 usage instantaneously.
 >
 > What do you think reg. the above?

 Regarding (2), I'm no longer so sure we should change the weight of the
 CPU. Using 100% of processor time is definitely an improper thing to do
 for an activity. It slows down the machine and draws a lot more power.
 Therefore, should reflect this problem in the frame icon. On the XO-1.5,
 and other machines with plenty of memory, 100% of CPU is already not
 sufficient by itself to make our tamagochi cry. If it's enough on the
 XO-1, it's only because the overall situation is *really* much worse.

 I would give a try to (3) to see if it's really viable. It works well for
 xload.

 That said, I'd encourage everyone not to aim at getting this code perfect
 before allowing it in. A patch that improving the current situation is
 already a big step forward. Heuristics can always be refined and improved
 by later patches, possibly submitted by those who are unhappy with the
 behavior on their particular platform.

 As Jim Gettys would say, perfect is the enemy of good.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2141#comment:16>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list