Debian: Build system floods the console when processing packages that have many files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
M. Vefa Bicakci |
Bug Description
Brief Description
-----------------
The Debian build system's helper function "run_shell_cmd" in "build-
- build-pkgs essentially caches the output of tar, increasing memory utilization when tar generates large amount of output. The memory utilization was admittedly not measured, but the builder.log file's contents offer a hint: Excluding the timestamp prefix strings, tar generates about 3,953,054 bytes (i.e., ~3.77 MiB) of output for the standard kernel package. Afterwards, the run_shell_cmd function splits this large string into lines and prints out each line in the string one by one.
- build-pkgs floods the console with arguably unnecessary information. For each kernel package, the output takes about 13 seconds to emit to the console and consists of about 77640 lines:
2022-09-15 16:20:31,396 - debrepack - INFO: [ Run - "cd .../std/linux; tar czvf linux_5.
2022-09-15 16:21:09,950 - debrepack - DEBUG: linux-5.10.112/
...
2022-09-15 16:21:22,870 - debrepack - DEBUG: linux-5.
2022-09-15 16:21:22,878 - debrepack - INFO: Apply deb patch: 0001-kernel-
This issue can be resolved by quietening "tar" by removing its "v" (verbose) option from the command line used for generating orig.tar.gz archives in the following file and function:
File "build-
def create_
# ...
run_shell_cmd('cd %s; tar czvf %s %s' % (self.pkginfo[
Severity
--------
Minor: This is a very minor issue; it only affects the amount of output generated by the build system.
Note
----
This bug report exists just so that I can publish/propose a commit fixing this issue. I did not fill out the full bug report template on purpose.
Changed in starlingx: | |
assignee: | nobody → M. Vefa Bicakci (vbicakci) |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.build stx.debian |
Fix proposed to branch: master /review. opendev. org/c/starlingx /root/+ /858433
Review: https:/