-
Notifications
You must be signed in to change notification settings - Fork 2
Description
There are different ways of computing the size.
We should gather different measures: https://elinux.org/Kernel_Size_Tuning_Guide
Some actions points below.
size sections
compute "text data bss dec hex filename" with size command (instead of "just" the binary size)... KernelCI is actually reporting such measures, see eg https://kernelci.org/build/id/60099b4f1c4d0713c9bb5d1a/ ELF file size
2.45 MiB
ELF .bss section size
129.27 KiB
ELF .data section size
330.72 KiB
ELF .txt section size
1.24 MiB
source code of the implementation: https://github.com/kernelci/kernelci-core/blob/39091ceaab7d8870e36127c6c646e6450ac77962/kernelci/elf.py#L82
size per module / individual kernel symbols
see https://elinux.org/Kernel_Size_Tuning_Guide#Measuring_major_kernel_subsystems
actually it's already supported in tuxml with --check-size
Line 147 in abd88b9
| def retrieve_sizes(path, kernel_version): |
but it has been poorly tested: does it work on different kernel versions? configs?
We have to experiment a bit, especially when investigating the compilers' effects... (we would have more fine grained information)