Skip to content

Different ways of computing the size  #35

@FAMILIAR-project

Description

@FAMILIAR-project

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

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions