Bug 6899

Summary: cpu_usage value for some tasks doesn't match the value in the stats file
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED WONTFIX QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, cristiana.voicu
Version: 1.6.2   
Target Milestone: 1.6.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
toaster.sqlite
none
do_fetch_stats_file none

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