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

Consider not download automatically (all) kernel modules #170

Open
moul opened this issue Mar 14, 2016 · 2 comments
Open

Consider not download automatically (all) kernel modules #170

moul opened this issue Mar 14, 2016 · 2 comments
Assignees

Comments

@moul
Copy link
Contributor

moul commented Mar 14, 2016

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

@moul moul self-assigned this Mar 14, 2016
@ElNounch
Copy link
Contributor

A PoC using CephFs, mounting /lib/modules read-only.
master...ElNounch:PoC-CephFs-KernelModules

@moul
Copy link
Contributor Author

moul commented Mar 21, 2016

@ElNounch, you're awesome

Thank you for this PoC, we will discuss it internally, but I clearly like the idea

And thank you for the other non-POC related updated (typos, init script headers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants