quick question about installed packages information
Quoted 5 lines · Dave
Hi Belen,
By the way, I spent several minutes confirming that at least for my qemux86 core-image-minimal build
package.installed_size is always modulo 1024 but package.size is not!
I am not sure I understand this. What do you think is causing it?
What I have seen is that there is a slight difference between size and installed_size for most packages, so I ran it by Paul and Alex. From what I understood, installed_size is different because is taking into account the extra size on disk that the files take, but in the build host, so this might have no relationship to such size in the target hardware where the image will be deployed. (Paul, Alex: feel free to clarify if I didn't get this properly).
The consequence of this is that we should not be using installed_size at
all: we should be using size in all pages.
I am really sorry about this. I hope it's ok to make the change.
Thanks!
Belén
Quoted 1 line
Quoted 7 lines · Belen
Quoted 3 lines · Dave
By the way, I spent several minutes confirming that at least for my qemux86 core-image-minimal build
package.installed_size is always modulo 1024 but package.size is not!I am not sure I understand this. What do you think is causing it?
Quoted 7 lines
What I have seen is that there is a slight difference between size and
installed_sizefor most packages, so I ran it by Paul and Alex. From what I understood,installed_sizeis different because is taking into account the extra size on disk that the files take, but in the build host, so this might have no relationship to such size in the target hardware where the image will be deployed. (Paul, Alex: feel free to clarify if I didn't get this properly).
Mostly got it - the installed_size is the disk block usage, which is currently based on the host disk's block size. This may not be the same as the block size on the target and thus isn't very useful (but we might not have the information to determine that in any case).
Quoted 2 lines
The consequence of this is that we should not be using
installed_sizeat
all: we should be using size in all pages.
Right, that's the way I think we should deal with this for now.
Cheers,
Paul
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.