On 26/04/17 11:53 PM, L A Walsh wrote:
they could use as little as 6-7MB/kernel (which is why I lean toward smaller boot partitions)
"small" is relative. The /boot partition will look, relatively, smaller as I upgrade 2T, 2T, 4T, even if its the same number of megabytes. Even so, its already down there is the 'rounding error'. And my kernel, you mean the vmlinuz-4.10.12, is under 7G And its not as if I am doing any aggressive tweaking.
FWIW, in my current kernel I have 590 modules config'd with 48 built-in and 542 left for dynamic loading. Since boot, an additional 38 have loaded leaving 510 still on disk.
Where do those numbers come from. In the interests of full disclosure, this is what i would show. # lsmod | wc -l 68 Take 1 off that for the header line. Those are all demand loaded. There is nothing in my /etc/modules-load* What is in /etc/modprobe.d/* was put there by the installer, I've edited nothing. # find /lib/modules/$(uname -r)/kernel -type f -print | wc -l 3845 I suspect we're not talking about the same thing here. Try again # for DIR in /lib/modules/$(uname -r)/kernel/*
do echo ${DIR}":" find ${DIR} -type f -print | wc -l done /lib/modules/4.10.12-2.g11b3f7c-default/kernel/arch: 39 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/crypto: 70 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/drivers: 2881 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/fs: 125 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/kernel: 3 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/lib: 22 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/mm: 2 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/net: 505 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/security: 1 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/sound: 196 /lib/modules/4.10.12-2.g11b3f7c-default/kernel/virt: 1
Betcha that for hardware specific I can go though all that, the drivers in particular, and PURGE! PURGE! PURGE! I'm sure that could make my initrd smaller as well :-) Its just that the very next 'zypper up' of kernel_stable will bring them all back. Being obsessive about such tweaking, such minimization, is time consuming and frustrating. There's a good reason most of us don't bother, that most of us just go with the initrd method that is packaged and delivered. We've got better thing to be frustrated over, to have consume our valuable and limited time that shaving seconds of the, perhaps once or twice a day that we do system loads, time that could be better spent, for example, refilling the coffee cup, which is what I think I'll do tight now. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org