Reducing the size of kexec util
Subsystems (2)
The current (20080324) kexec binary on x86 is 135KiB. While not a problem on a normal distro or runtime environment, it's a chubster in an embedded role.
Has any thought been given to reducing its 'on-disk' footprint? The rather obvious, non-default build-time options to only support specific kernel types and capabilities, jumps to mind.
Beyond build-time options, a Busybox applet would further minimize size, but maintenance would be painful...
Signature · 7 lines
David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 11 lines · David N
The current (20080324) kexec binary on x86 is 135KiB. While not a problem on a normal distro or runtime environment, it's a chubster in an embedded role.
Has any thought been given to reducing its 'on-disk' footprint? The rather obvious, non-default build-time options to only support specific kernel types and capabilities, jumps to mind.
Beyond build-time options, a Busybox applet would further minimize size, but maintenance would be painful...
Busybox is precisely what I use to implement kdump in RHEL at the moment. Its still a bit bloated, since it is meant for enterprise servers, but it makes it very easy to customize very small initramfs files for specific purposes.
Neil
Quoted 8 lines
Signature · 7 lines
David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Signature · 13 lines
/*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *[email protected] *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Neil Horman
Quoted 8 lines · David N
The current (20080324) kexec binary on x86 is 135KiB. While not a problem on a normal distro or runtime environment, it's a chubster in an embedded role.
Has any thought been given to reducing its 'on-disk' footprint? The rather obvious, non-default build-time options to only support specific kernel types and capabilities, jumps to mind.
Quoted 6 lines
Quoted 3 lines
Beyond build-time options, a Busybox applet would further minimize size, but maintenance would be painful...
Busybox is precisely what I use to implement kdump in RHEL at the moment. Its still a bit bloated, since it is meant for enterprise servers, but it makes it very easy to customize very small initramfs files for specific purposes.
Hmmm... Don't see a kexec or kdump in busybox-1.10.1. Is this in git?
What did you do to reduce binary size? I don't really care about process size, as I'm not working with memory-constrained systems.
Signature · 7 lines
David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 13 lines · David N
Quoted 12 lines · Neil Horman
Quoted 11 lines · David N
The current (20080324) kexec binary on x86 is 135KiB. While not a problem on a normal distro or runtime environment, it's a chubster in an embedded role.
Has any thought been given to reducing its 'on-disk' footprint? The rather obvious, non-default build-time options to only support specific kernel types and capabilities, jumps to mind.
Beyond build-time options, a Busybox applet would further minimize size, but maintenance would be painful...
Quoted 9 lines
Quoted 3 lines
Busybox is precisely what I use to implement kdump in RHEL at the moment. Its still a bit bloated, since it is meant for enterprise servers, but it makes it very easy to customize very small initramfs files for specific purposes.
Hmmm... Don't see a kexec or kdump in busybox-1.10.1. Is this in git?
What did you do to reduce binary size? I don't really care about process size, as I'm not working with memory-constrained systems.
You misunderstand me. I didn't add a kexec applet to busybox, I used busybox to outfit the initrd I build for use by kdump (it saves lots of space over having to go through the normal initscripts).
Although, now that Iread it again, that doesn't help you too much. Sorry.
If your goal is to simply reduce the size of the kexec binary, I think an old fashioned audit is in order. Theres plenty of space to be saved too, I think. In particular there are lots of error checks that are re-created that could be made common.
Neil
Quoted 3 lines
Signature · 2 lines
David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own.
Signature · 13 lines
/*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *[email protected] *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 23 lines · Neil Horman
Quoted 22 lines · David N
Quoted 9 lines · Neil Horman
Quoted 8 lines · David N
The current (20080324) kexec binary on x86 is 135KiB. While not a problem on a normal distro or runtime environment, it's a chubster in an embedded role.
Has any thought been given to reducing its 'on-disk' footprint? The rather obvious, non-default build-time options to only support specific kernel types and capabilities, jumps to mind.
Quoted 6 lines
Quoted 3 lines
Beyond build-time options, a Busybox applet would further minimize size, but maintenance would be painful...
Busybox is precisely what I use to implement kdump in RHEL at the moment. Its still a bit bloated, since it is meant for enterprise servers, but it makes it very easy to customize very small initramfs files for specific purposes.
Hmmm... Don't see a kexec or kdump in busybox-1.10.1. Is this in git?
What did you do to reduce binary size? I don't really care about process size, as I'm not working with memory-constrained systems.
...
Quoted 4 lines
If your goal is to simply reduce the size of the kexec binary, I think an old fashioned audit is in order. Theres plenty of space to be saved too, I think. In particular there are lots of error checks that are re-created that could be made common.
Agreed...
Signature · 7 lines
David N. Lombard, Intel, Irvine, CA I do not speak for Intel Corporation; all comments are strictly my own. _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec