mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #5769] [MERGED] Enable Workstation GC mode #10649
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/5769
Author: @cvium
Created: 4/11/2021
Status: ✅ Merged
Merged: 4/11/2021
Merged by: @Bond-009
Base:
master← Head:workstation-gc📝 Commits (1)
0149179Enable Workstation GC mode📊 Changes
3 files changed (+10 additions, -0 deletions)
View changed files
📝
Jellyfin.Server/Jellyfin.Server.csproj(+1 -0)📝
debian/conf/jellyfin(+5 -0)📝
fedora/jellyfin.env(+4 -0)📄 Description
Changes
Default to Workstation GC mode which seems to be what was used in <=10.6. I'm not sure if .NET 5 or the Web API migration is what caused the new default of Server or not, but we've been using ASP.NET for a long time now, so it must be .NET 5.
Workstation uses less RAM than Server and is more suitable for consumer grade hardware. Servers with more RAM might benefit from using Server GC mode, which is run-time overrideable. See https://docs.microsoft.com/en-us/dotnet/core/run-time-config/garbage-collector#workstation-vs-server
Server GC mode reserves a lot of virtual memory, which some devices seem to handle very poorly. Workstation GC reserves much less at the cost of a few more CPU cycles.
Issues
Fixes https://github.com/jellyfin/jellyfin/issues/5554
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.