From 8354bd7a266977e3dad269d924a3919b90c8fbea Mon Sep 17 00:00:00 2001 From: Ganeshkumar Ashokavardhanan Date: Sun, 31 May 2026 13:14:06 -0700 Subject: [PATCH] Remove stale persistence-daemon comment and dead nvidia-persistenced.service The "configure persistence daemon" comment was left behind when the custom nvidia-persistenced systemd unit was removed (#105, since the NVIDIA runfile ships its own unit). The comment now misleadingly sits above the lib-copy added in #106 (which fixed nvidia-smi missing libs, unrelated to persistence). Replace it with an accurate comment and drop the now-unused nvidia-persistenced.service file (still COPYed by the Dockerfile but never installed). No behavior change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Dockerfile | 1 - install.sh | 6 +----- nvidia-persistenced.service | 12 ------------ 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 nvidia-persistenced.service diff --git a/Dockerfile b/Dockerfile index 978fb85..3623f9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ WORKDIR /opt/gpu COPY 10-nvidia-runtime.toml 10-nvidia-runtime.toml COPY 71-nvidia-char-dev.rules 71-nvidia-char-dev.rules COPY blacklist-nouveau.conf blacklist-nouveau.conf -COPY nvidia-persistenced.service nvidia-persistenced.service COPY fm_run_package_installer.sh fm_run_package_installer.sh COPY config.sh config.sh diff --git a/install.sh b/install.sh index 26aede0..f8f5ef3 100644 --- a/install.sh +++ b/install.sh @@ -85,11 +85,7 @@ set -e dkms status nvidia-modprobe -u -c0 -# configure persistence daemon -# decreases latency for later driver loads -# reduces nvidia-smi invocation time 10x from 30 to 2 sec -# notable on large VM sizes with multiple GPUs -# especially when nvidia-smi process is in CPU cgroup +# copy nvidia userspace libs into the system library path so nvidia-smi can resolve them cp -r /usr/bin/lib64/lib64/* /usr/lib/$(uname -m)-linux-gnu/ nvidia-smi diff --git a/nvidia-persistenced.service b/nvidia-persistenced.service deleted file mode 100644 index 82b932e..0000000 --- a/nvidia-persistenced.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=NVIDIA Persistence Daemon -Wants=syslog.target - -[Service] -Type=forking -ExecStart=/usr/bin/nvidia-persistenced --verbose -ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced -Restart=always - -[Install] -WantedBy=multi-user.target