Set mpol=interleave on dracut tmpfs.

- Closes #1347
- Closes #1348

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-09-16 23:14:11 -04:00
parent 82df96bf16
commit 97620ebba3
3 changed files with 6 additions and 2 deletions

View File

@@ -43,6 +43,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## v4.5.8, unreleased
### Changed
- Interleave tmpfs across all available NUMA nodes. #1347, #1348
### Fixed
- Return an error during `wwctl container import` if archive filename includes a colon. #1371

View File

@@ -1,7 +1,7 @@
#!/bin/bash
info "Mounting tmpfs at $NEWROOT"
mount -t tmpfs ${wwinit_tmpfs_size_option} tmpfs "$NEWROOT"
mount -t tmpfs -o mpol=interleave ${wwinit_tmpfs_size_option} tmpfs "$NEWROOT"
for archive in "${wwinit_container}" "${wwinit_kmods}" "${wwinit_system}" "${wwinit_runtime}"
do

View File

@@ -39,7 +39,7 @@ elif test "$WWROOT" = "tmpfs"; then
else
echo "Setting up tmpfs root file system"
mkdir /newroot
mount wwroot /newroot -t tmpfs
mount wwroot /newroot -t tmpfs -o mpol=interleave
echo "Moving RAMFS to TMPFS"
tar -cf - --exclude ./proc --exclude ./sys --exclude ./dev --exclude ./newroot . | tar -xf - -C /newroot
mkdir /newroot/proc /newroot/dev /newroot/sys /newroot/run 2>/dev/null