On some kernels, we have about 470MB of optional kernel modules.
On the on the Alpine Linux image, it is ridiculusly 15 times higher than the 30MB original image size 😳.
Potential ways of optimization:
- disable some loadable kernel modules
- build more loadable kernel modules in the kernel (seems smaller in size when built-in)
- do not call the sync-kernel-modules automatically but document it
- find a way to "lazy-download" needed kernel modules
- mount
/lib/modules as a read-only network block device/nfs
- use a compressed file system for
/lib/modules
cc @QuentinPerez, @brmzkw, @bchatelard, @aimxhaisse
On some kernels, we have about 470MB of optional kernel modules.
On the on the Alpine Linux image, it is ridiculusly 15 times higher than the 30MB original image size 😳.
Potential ways of optimization:
/lib/modulesas a read-only network block device/nfs/lib/modulescc @QuentinPerez, @brmzkw, @bchatelard, @aimxhaisse