Bug 420518 - [multicore] Refresh speed - /proc/stat file is being fetched twice
Summary: [multicore] Refresh speed - /proc/stat file is being fetched twice
Status: CLOSED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.2.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Marc Khouzam CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 11:30 EDT by Alvaro Sanchez-Leon CLA
Modified: 2014-09-10 14:09 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Sanchez-Leon CLA 2013-10-28 11:30:42 EDT

    
Comment 1 Alvaro Sanchez-Leon CLA 2013-10-28 11:33:14 EDT
While testing Load meters refresh speed it was observed that the 
file: /proc/stat is being loaded twice

note: Enhancement needed
Comment 2 Marc Dumais CLA 2014-09-10 14:09:01 EDT
It's normal to fetch /proc/stat twice for each load measurement sample. The reason is that this file contains counters that reflect different types of load (user, system, IRQ, etc) and that to determine the instantaneous load, one must compare two sets of counters and figure-out what proportion of the counters increase was actual load (vs idle).