Hi @Fide !
With @rafael.tx’s help, we performed some investigation.
We compared the unpacking of your rootfs against the unpacking of the rootfs from Reference Multimedia Image 5.7.2+build.21 for Verdin iMX8M Plus
Untar comparison
In my notebook (i7-10750H CPU @ 2.60GHz, 32GB RAM) I unpacked each rootfs image in its own folder using the time command:
$ time sudo tar -C rootfs -xf gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.bz2
sudo tar -C rootfs -xf gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.bz2 0,02s user 0,01s system 0% cpu 42,297 total
$ time sudo tar -C rootfs -xf Reference-Multimedia-Image-verdin-imx8mp.tar.xz
sudo tar -C rootfs -xf Reference-Multimedia-Image-verdin-imx8mp.tar.xz 0,00s user 0,01s system 0% cpu 11,215 total
But using my notebook for this is not a reasonable way of comparing times. We performed the same using a Verdin iMX8M Plus Q 4GB WB IT V1.0B.
Module information:
root@verdin-imx8mp-06849036:~# ./tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.4.193-5.7.0+git.f78299297185 #1 SMP PREEMPT Mon Jul 11 14:42:03 UTC 2022
Kernel command line: root=PARTUUID=68578448-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=5.7.0-build.20
Hostname: verdin-imx8mp-06849036
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus WB on Verdin Development Board
Toradex version: 0058 V1.0B
Serial number: 06849036
Processor arch: aarch64
------------------------------------------------------------
Results:
root@verdin-imx8mp-06849036:~# time tar -C rootfs_fide/ -xf gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.bz2
real 4m25.608s
user 4m15.656s
sys 0m36.302s
root@verdin-imx8mp-06849036:~# time tar -C rootfs_tdx/ -xf Reference-Multimedia-Image-verdin-imx8mp.tar.xz
real 0m53.559s
user 0m48.403s
sys 0m14.735s
Testing .tar.xz
with your rootfs
Performing another test, we re-compressed your rootfs using .tar.xz
:
$ cd rootfs_fide
$ sudo tar cJf ../gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.xz .
And, then again decompressing on my notebook:
$ mkdir rootfs_fide_tar-xz
$ time sudo tar -C rootfs_fide_tar-xz -xJf gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.xz
sudo tar -C rootfs_fide_tar-xz -xJf 0,00s user 0,00s system 0% cpu 17,042 total
And on the module:
root@verdin-imx8mp-06849036:~# mkdir rootfs_fide_tar-xz
root@verdin-imx8mp-06849036:~# time tar -C rootfs_fide_tar-xz/ -xf gprarr-image-dev-verdin-imx8mp-proceq-gprarr.tar.xz
real 1m17.101s
user 1m3.517s
sys 0m21.419s
Result summary
Time to unpack the rootfs using |
Reference Multimedia 5.7.2 |
your rootfs .tar.bz2 |
your rootfs .tar.xz |
My notebook |
11.2s |
42.3s |
17.0s |
Verdin iMX8M Plus Q 4GB WB IT V1.0B |
53.6s |
265.6s (4m25.6s) |
77.1s (1m17s) |
Since Toradex Easy Installer needs to unpack your image on the module, seems like using .tar.xz
instead of .tar.bz2
(which you are using in your image).
Testing your rootfs with .tar.xz
We quickly tested your image using .tar.xz
and during flashing.
There was quick peak of 60MB/s as well as some periods of ~0.5MB/s as the lowest transfer rate, but the average was probably around 15~17MB/s.
Let us know if this helps you.
Remark about image.json
Your image.json
advertises uncompressed_size
of more than 3GB for your rootfs, but the rootfs your shared had an uncompressed size smaller than 2GB.
Best regards,