oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

Centipede is bloating our image sizes.

Open jonathanmetzman opened this issue 3 years ago • 6 comments

It reinstalls clang? and adds 1.7GB to our image size, which slows down every CFL/CIFuzz user.

jonathanmetzman avatar Sep 11 '22 16:09 jonathanmetzman

I think it reinstalls using apt and via tar.gz and does some stuff to /usr/bin/bazel that wastes 50 MB. Might be worth making a multistage build if this won't install cleanly.

jonathanmetzman avatar Sep 11 '22 16:09 jonathanmetzman

Shall we close this as it has been fixed?

DonggeLiu avatar Sep 12 '22 01:09 DonggeLiu

I'm not sure it has. It's worth looking at how much space the centipede layer is taking and if it should be reduced further.

jonathanmetzman avatar Sep 12 '22 12:09 jonathanmetzman

not sure this is done, let me remeasure now

jonathanmetzman avatar Sep 16 '22 15:09 jonathanmetzman

not sure this is done, let me remeasure now

Cool! Let me know if there is anything I can do to help : )

DonggeLiu avatar Sep 16 '22 23:09 DonggeLiu

not sure this is done, let me remeasure now

Cool! Let me know if there is anything I can do to help : )

If you want to learn how I do this btw you can use https://github.com/wagoodman/dive

jonathanmetzman avatar Sep 18 '22 00:09 jonathanmetzman

This is still adding a few hundred MB of into /usr increasing our image size by about 25%

jonathanmetzman avatar Oct 26 '22 15:10 jonathanmetzman

This was fixed by https://github.com/google/oss-fuzz/issues/8468 Now the centipede is a more reasonable 11 MB :tada:

jonathanmetzman avatar Oct 26 '22 22:10 jonathanmetzman