cleanup flag config and update modpack
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 4m43s
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 4m43s
This commit is contained in:
parent
35185583ee
commit
23d4592783
1 changed files with 13 additions and 19 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
ram-allocation-mb = 12288;
|
ram-allocation-mb = 12288;
|
||||||
rcon-pass = "howdy";
|
rcon-pass = "howdy";
|
||||||
modpack = let
|
modpack = let
|
||||||
commit = "918b281754d4c289a3567cca083774087b2a2ec0";
|
commit = "506050af820a4cf370c6f2021c5991d665ba902a";
|
||||||
in pkgs.fetchPackwizModpack {
|
in pkgs.fetchPackwizModpack {
|
||||||
packHash = "sha256-HmTDQac9FCQXBPWiZIxu9zmHyl2vqMVQpZpDHp+2lBA=";
|
packHash = "";
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -39,22 +39,16 @@ in {
|
||||||
"-Xms${toString ram-allocation-mb}M"
|
"-Xms${toString ram-allocation-mb}M"
|
||||||
"-Xmx${toString ram-allocation-mb}M"
|
"-Xmx${toString ram-allocation-mb}M"
|
||||||
|
|
||||||
# Exposes SIMD instructions (requires full JDK, useful with performance mods)
|
"-XX:+UseZGC" # Use ZGC (requires Java v25+, 8+ CPU cores, 10GB+ RAM)
|
||||||
"--add-modules=jdk.incubator.vector"
|
"-XX:+UseCompactObjectHeaders" # Use compact object headers (requires Java v16+, saves a couple of bits per object)
|
||||||
|
|
||||||
# ZGC flags (requires Java v25+, 8+ CPU cores, 10GB+ RAM)
|
"--add-modules=jdk.incubator.vector" # Exposes SIMD instructions (requires full JDK, useful with performance mods)
|
||||||
"-XX:+UseZGC"
|
"-XX:+UseLargePages" # Large pages support (requires hugepages configured on the system)
|
||||||
"-XX:+UseLargePages"
|
"-XX:+AlwaysPreTouch" # Pre-allocates memory on startup, OS claims it immediately for JVM instead of negotiating it
|
||||||
"-XX:+AlwaysPreTouch"
|
"-XX:+DisableExplicitGC" # Disables mods from manually invoking the GC
|
||||||
"-XX:+DisableExplicitGC"
|
"-XX:+PerfDisableSharedMem" # Disables constant /tmp writes for JVM metrics
|
||||||
"-XX:+PerfDisableSharedMem"
|
"-XX:ZAllocationSpikeTolerance=5" # Helps when server is active with many players (causes unnecessary GC load at idle)
|
||||||
"-XX:+UseCompactObjectHeaders"
|
"-XX:SoftMaxHeapSize=${toString (ram-allocation-mb - 2048)}M" # Leave 2GB headroom for off-heap memory (native code, mods, and ZGC overhead)
|
||||||
"-XX:ZAllocationSpikeTolerance=5"
|
|
||||||
"-XX:SoftMaxHeapSize=${toString (ram-allocation-mb - 2048)}M"
|
|
||||||
|
|
||||||
# High MSPT due to ZGC pauses
|
|
||||||
"-XX:ZUncommitDelay=300"
|
|
||||||
"-XX:ZCollectionInterval=5"
|
|
||||||
]; in lib.concatStringsSep " " flags;
|
]; in lib.concatStringsSep " " flags;
|
||||||
|
|
||||||
# extraStartPost = let gamerules = {
|
# extraStartPost = let gamerules = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue