Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #311 from mariux64/increase-mem-furoncles-proxmox
slowio-mem-control: increase default MaxMem and decrease exception
  • Loading branch information
david committed Apr 3, 2023
2 parents bb0708c + 56e2477 commit b73e912
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
16 changes: 7 additions & 9 deletions slowio/slowio-mem-control
@@ -1,11 +1,9 @@
#! /usr/bin/bash

case "$(hostname -s)" in
ex|pummelfee|snugglebites|bloodwing|tldr|ellie|icebear|grele|handsomejack)
mkdir -p "$1/slowio.slice.d"
cat > "$1/slowio.slice.d/dynamic_memory.conf" <<- '_EOF_'
[Slice]
MemoryMax=4G
_EOF_
;;
esac
if `hostconfig desktop` ; then
mkdir -p "$1/slowio.slice.d"
cat > "$1/slowio.slice.d/dynamic_memory.conf" <<- '_EOF_'
[Slice]
MemoryMax=2G
_EOF_
fi
3 changes: 2 additions & 1 deletion slowio/slowio.slice
@@ -1,3 +1,4 @@
[Slice]
MemoryMax=2G
MemoryMax=8G
IOWeight=10

0 comments on commit b73e912

Please sign in to comment.