linuxboot / linuxboot/heads-wiki

Example analysis of size differences of rom content between PR/master/compiled versions (size.txt diff analysis)

Open
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
96
Forks
58
Avg merge
1d 16h
Merged PRs (30d)
11

Description

> Size comparison.
>
> Master's 4af780864fcca6364afc8ec038787541193326f4 vs this PR's 9b69f1b66a29ea90045eabe1d679994810beb17a
>
> ```
> wget https://output.circle-artifacts.com/output/job/03a0d0db-3e56-48e3-93d5-a23fa112e7a0/artifacts/0/build/x86/x230-hotp-maximized/sizes.txt -O master.txt
> wget https://output.circle-artifacts.com/output/job/97f89967-bb86-4a38-8d43-1f196e5be39d/artifacts/0/build/x86/x230-hotp-maximized/sizes.txt -O 1384.txt
> diff -u master.txt 1384.txt
> [...]
> --- master.txt 2024-02-16 13:57:39.000000000 -0500
> +++ 1384.txt 2024-02-21 14:18:12.000000000 -0500
> @@ -1,6 +1,6 @@
> -2024-02-16 13:46:15-05:00 95f9636a1adb26fc061228443ec6910ffe39c02b clean
> - 2488800:/root/project/build/x86/x230-hotp-maximized/bzImage
> - 685056:/root/project/build/x86/x230-hotp-maximized/modules.cpio
> +2024-02-21 14:04:48-05:00 9b69f1b66a29ea90045eabe1d679994810beb17a clean
> + 2489216:/root/project/build/x86/x230-hotp-maximized/bzImage
> + 813056:/root/project/build/x86/x230-hotp-maximized/modules.cpio
> -----
> 304040:./lib/modules/e1000e.ko
> 63272:./lib/modules/ehci-hcd.ko
> @@ -8,6 +8,11 @@
> 165024:./lib/modules/xhci-hcd.ko
> 11544:./lib/modules/xhci-pci.ko
> 128632:./lib/modules/usb-storage.ko
> + 12776:./lib/modules/mii.ko
> + 48808:./lib/modules/usbnet.ko
> + 19024:./lib/modules/cdc_ether.ko
> + 38016:./lib/modules/cdc_ncm.ko
> + 9048:./lib/modules/cdc_eem.ko
> -----
> 12572160:/root/project/build/x86/x230-hotp-maximized/tools.cpio
> -----
> @@ -71,7 +76,7 @@
> 35432:./bin/cbmem
> 741:./etc/config
> -----
> - 389120:/root/project/build/x86/x230-hotp-maximized/heads.cpio
> + 391680:/root/project/build/x86/x230-hotp-maximized/heads.cpio
> -----
> 1585:./.ash_history
> 73:./.gnupg/gpg-agent.conf
> @@ -104,7 +109,7 @@
> 2132:./bin/lock_chip
> 2836:./bin/media-scan
> 6013:./bin/mount-usb
> - 1609:./bin/network-init-recovery
> + 4204:./bin/network-init-recovery
> 745:./bin/nitropad-shutdown.sh
> 53851:./bin/oem-factory-reset
> 2316:./bin/oem-system-info-xx30
> @@ -152,5 +157,5 @@
> 924:./sbin/config-dhcp.sh
> 1271:./sbin/insmod
> -----
> - 4666368:build/x86/x230-hotp-maximized/initrd.cpio.xz
> - 8388608:/root/project/build/x86/x230-hotp-maximized/heads-x230-hotp-maximized-v0.2.0-2024-g95f9636-bottom.rom
> + 4691968:build/x86/x230-hotp-maximized/initrd.cpio.xz
> + 8388608:/root/project/build/x86/x230-hotp-maximized/heads-x230-hotp-maximized-v0.2.0-2026-g9b69f1b-bottom.rom
> ```
>
> Analysis:
> ```
> - 4666368:build/x86/x230-hotp-maximized/initrd.cpio.xz
> + 4691968:build/x86/x230-hotp-maximized/initrd.cpio.xz
> - 2488800:/root/project/build/x86/x230-hotp-maximized/bzImage
> + 2489216:/root/project/build/x86/x230-hotp-maximized/bzImage
>
> ```
> Additional ROM consumed compressed space: **(4691968-4666368)+(2489216-2488800)= 26016 bytes (~25Kb)**
>
>

_Originally posted by @tlaurion in https://github.com/linuxboot/heads/issues/1384#issuecomment-1826828059_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the size.txt comparison commands and the referenced issue 1384 discussion; the payload does not identify a target documentation file. Determine where this analysis belongs, then document the comparison and its reported compressed-size difference, with the commands and result preserved as the completion check.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.