Skip to content
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

Additional size metrics #5

Open
FAMILIAR-project opened this issue Jul 30, 2019 · 2 comments
Open

Additional size metrics #5

FAMILIAR-project opened this issue Jul 30, 2019 · 2 comments
Assignees

Comments

@FAMILIAR-project
Copy link
Collaborator

Right now, we are computing different sizes, but all rely on the same procedure:
https://github.com/TuxML/ProjetIrma/blob/dev/compilation/compiler.py#L256-L259
(the "raw" size of the file)

It's correct, but we miss an opportunity to gather much more information for free.

We should use size (UNIX command)
https://elinux.org/Kernel_Size_Tuning_Guide#Measuring_the_kernel

in particular 'size vmlinux
We can also use
nm --size -r vmlinux

We can add two new columns size_vmlinux (it will be string)
and nm_size_vmlinux (I suspect we have to store the information in a .log file)

It should be noted that we only have to do additional measures for vmlinux (not the compressed ones).

Some tests are needed (taking tinyconfig and some random configurations of 4.13.3 and 4.15)

@psaffray
Copy link
Contributor

psaffray commented Jul 30, 2019

'size vmlinux' : does not need a log file
'nm --size -r vmlinux' : create a log file
Add other command's result :
'size */built-in.o' : create log too

All 3 results will be in a new table 'sizes' with cid as primary key

@psaffray
Copy link
Contributor

psaffray commented Aug 8, 2019

We should be careful about the results of nm, the associated file is quite enormous
(it can go to more than 1Mio, and mean size is around 500Kio for EACH compilation)
EDIT : I optionalized this feature with the --checksize option to not overload the database

@FAMILIAR-project FAMILIAR-project transferred this issue from TuxML/ProjetIrma Jul 1, 2020
@FAMILIAR-project FAMILIAR-project added this to size computation / gathering size data in TuxML roadmap 2021 Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
TuxML roadmap 2021
size computation / gathering size data
Development

No branches or pull requests

2 participants