Skip to content

ci/yocto-buildstats: add ccache report - #3162

Draft
Jose Quaresma (quaresmajose) wants to merge 1 commit into
qualcomm-linux:masterfrom
quaresmajose:ccache
Draft

Jose Quaresma (quaresmajose) wants to merge 1 commit into
qualcomm-linux:masterfrom
quaresmajose:ccache

Conversation

@quaresmajose

Copy link
Copy Markdown
Contributor

It is nice to have a report about the space used by ccache. This makes it easier to understand how the space is distributed among the components.

The output will be similar to the one below:

| Ccache size (0.81GB) [/sstate/ccache]:
|  47%   0.38 gcc                  #########################################
|  18%   0.15 llvm-native          #################
|  17%   0.14 glibc                ###############
|  16%   0.13 linux-yocto          ###############

It is nice to have a report about the space used by ccache.
This makes it easier to understand how the space is distributed
among the components.

The output will be similar to the one below:

| Ccache size (0.81GB) [/sstate/ccache]:
|  47%   0.38 gcc                  #########################################
|  18%   0.15 llvm-native          #################
|  17%   0.14 glibc                ###############
|  16%   0.13 linux-yocto          ###############

[FIXME]

du: cannot access '/sstate/ccache/qcs615_ride-qcom-linux/linux-qcom/1/6/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcs615_ride-qcom-linux/linux-qcom/1/6/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/iq_615_evk-qcom-linux/linux-qcom/d/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/iq_615_evk-qcom-linux/linux-qcom/d/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcom_armv8a-qcom-linux/linux-qcom/0/c/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcom_armv8a-qcom-linux/linux-qcom/0/c/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcom_armv8a-qcom-linux/linux-qcom/d/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcom_armv8a-qcom-linux/linux-qcom/d/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/shikra_evk-qcom-linux/linux-qcom/8/c/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/shikra_evk-qcom-linux/linux-qcom/8/c/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/f/d/stats.tmp.xPObrL.tmp': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/f/d/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/f/d/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/8/3/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/8/3/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/e/6/stats.tmp.lMaiMS.tmp': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/e/6/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/e/6/stats.alive': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/tmp/inode-cache-64.v2.tmp.9Uneyc.tmp': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/tmp/inode-cache-64.v2.tmp.xaXRCB.tmp': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/tmp/.nfs00000000028ea2f900001e98': No such file or directory
du: cannot access '/sstate/ccache/qcs9100_ride_sx-qcom-linux/linux-qcom/tmp/inode-cache-64.v2.tmp.ypB1us.tmp': No such file or directory
du: cannot access '/sstate/ccache/iq_615_evk-oe-linux/linux-qcom/c/8/stats.lock': No such file or directory
du: cannot access '/sstate/ccache/iq_615_evk-oe-linux/linux-qcom/c/8/stats.tmp.3MtcGE.tmp': No such file or directory

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
@lumag

Copy link
Copy Markdown
Contributor

I like the idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants