Skip to content

feat: reduce memory consumption of Scout#1876

Merged
stoo-davies merged 5 commits into
NVIDIA:mainfrom
stoo-davies:stoo-shrink-scout
May 22, 2026
Merged

feat: reduce memory consumption of Scout#1876
stoo-davies merged 5 commits into
NVIDIA:mainfrom
stoo-davies:stoo-shrink-scout

Conversation

@stoo-davies
Copy link
Copy Markdown
Contributor

Description

Addresses issue 1839, where scout running in VMs uses 10+ GiB of memory.
I've cleaned up the image, and switched to a compressed squashfs based root, rather than decompressing/extracting a cpio image to the ramdisk.

Compatibility with cpio images is retained, as that's being used for some other work, such as the validation image.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

#1839

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Booted on a x86_64 host, booted/dcgmi run on a H100 and GB200.

Additional Notes

Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
@stoo-davies stoo-davies requested a review from a team as a code owner May 21, 2026 22:06
@stoo-davies
Copy link
Copy Markdown
Contributor Author

Will set this to draft, I need to fix the "Verify mnv_cli" workflow step to use "unsquashfs -l".

Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
@stoo-davies stoo-davies requested a review from a team as a code owner May 22, 2026 00:25
Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
@stoo-davies stoo-davies requested a review from yoks May 22, 2026 01:26
@stoo-davies
Copy link
Copy Markdown
Contributor Author

Will set this to draft, I need to fix the "Verify mnv_cli" workflow step to use "unsquashfs -l".

Changes made, mnv_cli test passes now.

Comment thread pxe/mkosi.profiles/scout-oss-aarch64/mkosi.finalize.chroot
@yoks
Copy link
Copy Markdown
Contributor

yoks commented May 22, 2026

Maybe i would try to zero empty space at very end, so image compression would work better, but need to be tested is there any material difference, example could be:

dd if=/dev/zero of=/zero.file bs=1M status=progress || true
rm -f /zero.file

@stoo-davies
Copy link
Copy Markdown
Contributor Author

Maybe i would try to zero empty space at very end, so image compression would work better, but need to be tested is there any material difference, example could be:

dd if=/dev/zero of=/zero.file bs=1M status=progress || true
rm -f /zero.file

I'm converting a cpio file to squashfs, no intermediate loop/block filesystem, so that shouldn't be necessary.

Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
@stoo-davies stoo-davies enabled auto-merge (squash) May 22, 2026 02:07
@stoo-davies stoo-davies merged commit 477b6b0 into NVIDIA:main May 22, 2026
41 checks passed
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

Successfully merging this pull request may close these issues.

3 participants