fix(debos/image): Add "quiet" to cmdline kernel options - #547
fix(debos/image): Add "quiet" to cmdline kernel options#547Saksham Singh (saks) (saks-singh) wants to merge 1 commit into
Conversation
Add "quiet" functionality while bootup for Debian build, significantly improving the boot time userspace performance Signed-off-by: Saksham Singh (saks) <saks@qti.qualcomm.com>
|
Hi Saksham Singh (saks) (@saks-singh) are you measuring this with serial console attached? I'd expect that to slow down boot; do you see the same improvement without serial console attached? |
|
For other maintainers: I'm not opposed to the change, but it shifts our images more towards production and less towards development, and might require re-enabling verbose boots for tests. |
|
FWIW i am not really a fan of adding quiet to the kernel command line for the default images, maybe this belongs under a |
|
Hello Loïc Minier (@lool), we re-ran the boot time logs for the detailed analysis. The build kernel is the same as before, only difference being the Debian recipe highlighted in the PR, this time tested on a different Glymur CRD device.
As observable, Quiet mode gives significant improvement in boot time, and the serial cable only slows the firmware time, we believe it's a boost to the performance. |
Loïc Minier (@lool) , Yes. We measured both configurations (with and w/o serial). The serial console impact is not much ~1s of boot time. But, what really matters is "quiet" mode. This has improved the boot times:- |
There was already a request for debug-build at the PR #568 So, can we introduce 'quiet' cmdline this flavor build ? |
|
If the intention is that most developers will switch to using this build, then we will have the problem that those developers won't be able to give us effective bug reports when things go wrong. Given the types of kernel bugs and regressions we seem to deal with regularly, I'm not sure this is a good idea. Given that QLI is supposed to be a reference platform rather than directly a product intended for production use, wouldn't it make sense to provide a production flag as Chris suggests, but not enable it by default or on our CI images? But it's not my decision. |
|
If the issue here is that there are cases where you want faster booting with CI images, don't want to regenerate images, and are happy to exclude yourself from filing kernel bug reports against those boots by throwing away the debug messages, then maybe we can find a way to enable that easily for you without changing the default. For example, could we arrange for a way to adjust your tooling or test harness that you are using to inject the quiet flag? |
|
Hi, thanks for the analysis! Same tradeoffs exist in meta-qcom; the default image is NOT to setting "quiet", instead there are two opt-in kas fragments on top:
This is the distro dimension of meta-qcom CI, so 5 build flavors: That's multiplied by 3 kernels and 16 machines with a few options added/removed to the matrix by excludes/includes. Each build might output multiple images too, not sure. So let's do something similar for qcom-deb-images:
Saksham Singh (saks) (@saks-singh) Chitti Babu Theegala (@ctheegal), would you mind taking care of the performance part of the above? (Cc: Christopher Obbard (@obbardc) for the debug part) |
|
For performance build, given out the requirements at #604 |
|
This has been superseded by #607, I will leave this open for now though. |
Add "quiet" functionality while bootup for Debian build, significantly improving the boot time userspace performance, giving significant improvement in kernel (8585ms to 996ms) and userspace (15.585s to 2.176s) for the Glymur device.
previous:
after: