You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
This means that running install.sh will actually work, but if you reboot the machine you'll get a system that fails when running 'update.sh. This failure has NO logging and NO hints as to what the problem is. Runningsetup.shwill dynamically tune and subsequentupdate.sh` runs will work.
I'll look into why these values are written out later, when I have a fresh system to work on.
The text was updated successfully, but these errors were encountered:
I just looked at master https://github.com/MagLev/maglev/blob/master/setup.sh
It logged both the dynamic tuning and what it was updating in /etc/sysctl.conf
Is sysctl.conf still used on reboot? Seems like at least on Macs it was being deprecated.
Here's the relevant code:
echo "[Info] Increasing max shared memory segment size to $shmmaxNewMB MB"
[[ $PLATFORM == "Linux-x86_64" ]] && sudo bash -c "echo $shmmaxNew > /proc/sys/kernel/shmmax"
case "$PLATFORM" in
Linux-x86_64)
echo "# kernel.shm* settings added by MagLev installation" > /tmp/sysctl.conf.$$
echo "kernel.shmmax=cat /proc/sys/kernel/shmmax" >> /tmp/sysctl.conf.$$
echo "kernel.shmall=cat /proc/sys/kernel/shmall" >> /tmp/sysctl.conf.$$
echo "[Info] Adding the following section to /etc/sysctl.conf"
cat /tmp/sysctl.conf.$$
sudo bash -c "cat /tmp/sysctl.conf.$$ >> /etc/sysctl.conf"
/bin/rm -f /tmp/sysctl.conf.$$
Specifically, setup.sh writes the following:
but dynamically tunes them to be:
This means that running
install.sh
will actually work, but if you reboot the machine you'll get a system that fails when running 'update.sh. This failure has NO logging and NO hints as to what the problem is. Running
setup.shwill dynamically tune and subsequent
update.sh` runs will work.I'll look into why these values are written out later, when I have a fresh system to work on.
The text was updated successfully, but these errors were encountered: