-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different ways of computing the size #35
Projects
Comments
FAMILIAR-project
created this issue from a note
in TuxML roadmap 2021
(size computation / gathering size data)
Jan 21, 2021
with the evolution of TuxML (WebAPI/JSON) we have to modify TuxML core and the Web API... |
related to TuxML/ProjetIrma#180 |
the JSON is ready
example (excerpt):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
tuxml/compilation/main.py
Line 147 in abd88b9
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)
The text was updated successfully, but these errors were encountered: