demo: CPUQuota 150%, as set on the server (#116) [skip ci]

Since #151 an idle guest halts (1% of a core at the prompt), so the cap no
longer has to hold back spinning sessions. Captain Bob set 1.5 cores for
all sessions together on the server (2026-11-08): one busy visitor a full
core, half a core always left to the wikis and Gitea. Confirmed on the
server with a live session idle for 3 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
This commit is contained in:
Claude
2026-11-08 02:09:52 +00:00
parent f747ab78a6
commit 55613350c4
+7 -6
View File
@@ -30,13 +30,14 @@ ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ReadOnlyPaths=/var/lib/starshipos-demo
# Sized for this server (3.8 GiB, both wikis, Gitea, Nexus, CI): an idle StarshipOS guest keeps a
# host core busy -- the kernel's idle loop polls (measured 2026-11-08: 100% of a core at the
# prompt, 148 MiB resident) -- so all sessions together get one core at the lowest priority, and
# the wikis and Gitea never starve; with two visitors each runs at half speed. 1 GiB holds two
# sessions with room. Raise both with the server (8 GB: MemoryMax=2G, CPUQuota=200%).
# Sized for this server (3.8 GiB, two cores; both wikis, Gitea, Nexus, CI). Since #151 an idle guest
# halts (1% of a core at the prompt, was 100%), so a session costs CPU only while its visitor runs
# something. All sessions together get 1.5 cores at the lowest priority (Captain Bob, 2026-11-08):
# one busy visitor a full core, two busy at once three-quarters each, and half a core always left
# to the wikis and Gitea. 1 GiB holds two sessions (~150 MB resident each) with room. Raise both
# with the server (8 GB: MemoryMax=2G, CPUQuota=200% or more).
MemoryMax=1G
CPUQuota=100%
CPUQuota=150%
Nice=19
TasksMax=200