Bug 6899 - cpu_usage value for some tasks doesn't match the value in the stats file
Summary: cpu_usage value for some tasks doesn't match the value in the stats file
Status: VERIFIED WONTFIX
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.6.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6.2
Assignee: Alexandru Damian
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-10-28 10:56 UTC by Ionut Chisanovici
Modified: 2015-03-23 09:27 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
toaster.sqlite (24.76 MB, application/octet-stream)
2014-10-28 10:56 UTC, Ionut Chisanovici
no flags Details
do_fetch_stats_file (613 bytes, application/octet-stream)
2014-10-28 10:57 UTC, Ionut Chisanovici
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2014-10-28 10:56:55 UTC
Created attachment 2215 [details]
toaster.sqlite

BUILD: 1.6.2_rc1: 313864bf528696a72c3ee6b3dec1a0c7b0b223f6
ENVIRONMENT: Ubuntu 14.04 LTS x86_64
STEPS TO REPRODUCE: 1. start toaster
2. run bitbake core-image-minimal
3. check if cpu_usage field (from Task table) matches the value in build stats for the current task

EXPECTED OUTCOME: 
  
the value of cpu_usage field from Task table matches the value from build stats

EX:
select * from orm_task where id=4566;
          build_id = 1
    work_directory = 
         cpu_usage = 0
     task_executed = 1
           disk_io = 3176
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = e831d8fd6e47348ade8b825e5b4c7d52
        source_url = 
             order = 253
      elapsed_time = 14.1
           logfile = /home/ionut/work/poky_1.6.1/poky/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.38.2-r0/temp/log.do_fetch.11761
         recipe_id = 64
         task_name = do_fetch
           message = recipe glib-2.0-native-1_2.38.2-r0: task do_fetch: Succeeded
           outcome = 0
                id = 4566
     sstate_result = 0
       script_type = 2

$ cat tmp/buildstats/core-image-sato-qemux86/201410271329/glib-2.0-native-1_2.38.2-r0/do_fetch | grep CPU
CPU usage: 0.1% 

Attached toaster DB and stats file.

Cheers,
Ionut
Comment 1 Ionut Chisanovici 2014-10-28 10:57:56 UTC
Created attachment 2216 [details]
do_fetch_stats_file
Comment 2 Alexandru Damian 2014-11-26 10:58:11 UTC
Bug fixed in master, but we do not backport Toaster patches for 1.6 anymore.
Won't fix for 1.6.2
Comment 3 Alexandru Georgescu 2015-03-23 09:27:57 UTC
Verified as per above comments