Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tlaurion opened this issue Nov 7, 2024 · 0 comments

Comments

@tlaurion
Copy link
Collaborator

tlaurion commented Nov 7, 2024

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 linuxboot/heads#1384 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant