Is it gonna work? I dont know, maybe not. Is it safe? Prorably.
sysctl:
vm.swappiness = 1
vm.max_map_count = 262144
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
vm.dirty_expire_centisecs = 2000
vm.dirty_writeback_centisecs = 500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
net.core.netdev_max_backlog = 5000
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
VintagestoryServer.runtimeconfig.json:
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.GC.Concurrent": true,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
"System.Runtime.TieredPGO": true
}
}
}
server.sh:
export DOTNET_gcServer=1
export DOTNET_GCHighMemPercent=90
export DOTNET_TieredPGO=1
export DOTNET_TieredCompilation=1
export DOTNET_ReadyToRun=0
Custom, but can be used as reference: