diff options
| author | Stefan Boberg <[email protected]> | 2025-10-08 21:02:35 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-08 21:02:35 +0200 |
| commit | a21f5ee99e75deaa245fafbfc18a43771f16c2a3 (patch) | |
| tree | 63e5f399d8fc87a416397ca717338fe27bed5f18 /src | |
| parent | 5.7.6 (diff) | |
| download | zen-a21f5ee99e75deaa245fafbfc18a43771f16c2a3.tar.xz zen-a21f5ee99e75deaa245fafbfc18a43771f16c2a3.zip | |
shorten thread pool names for Linux which has a limit of 15 characters (#563)
without this change we just get a whole bunch of threads named "main" or "zenserver" depending on timing
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/zenserver.cpp | 2 | ||||
| -rw-r--r-- | src/zenutil/workerpools.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp index 29581b192..cab234165 100644 --- a/src/zenserver/zenserver.cpp +++ b/src/zenserver/zenserver.cpp @@ -177,7 +177,7 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen InitializeState(ServerOptions); - m_JobQueue = MakeJobQueue(8, "backgroundjobs"); + m_JobQueue = MakeJobQueue(8, "bgjobs"); m_HealthService.SetHealthInfo({.DataRoot = m_DataRoot, .AbsLogPath = ServerOptions.AbsLogFile, diff --git a/src/zenutil/workerpools.cpp b/src/zenutil/workerpools.cpp index 797034978..55c91e68e 100644 --- a/src/zenutil/workerpools.cpp +++ b/src/zenutil/workerpools.cpp @@ -27,19 +27,19 @@ namespace { const std::string_view Name; }; - WorkerPool BurstLargeWorkerPool = {.TreadCount = LargeWorkerThreadPoolTreadCount, .Name = "LargeThreadPool(burst)"}; - WorkerPool BackgroundLargeWorkerPool = {.TreadCount = LargeWorkerThreadPoolTreadCount, .Name = "LargeThreadPool(bkg)"}; + WorkerPool BurstLargeWorkerPool = {.TreadCount = LargeWorkerThreadPoolTreadCount, .Name = "large"}; + WorkerPool BackgroundLargeWorkerPool = {.TreadCount = LargeWorkerThreadPoolTreadCount, .Name = "large_bg"}; - WorkerPool BurstMediumWorkerPool = {.TreadCount = MediumWorkerThreadPoolTreadCount, .Name = "MediumThreadPool(burst)"}; - WorkerPool BackgroundMediumWorkerPool = {.TreadCount = MediumWorkerThreadPoolTreadCount, .Name = "MediumThreadPool(bkg)"}; + WorkerPool BurstMediumWorkerPool = {.TreadCount = MediumWorkerThreadPoolTreadCount, .Name = "medium"}; + WorkerPool BackgroundMediumWorkerPool = {.TreadCount = MediumWorkerThreadPoolTreadCount, .Name = "medium_bg"}; - WorkerPool BurstSmallWorkerPool = {.TreadCount = SmallWorkerThreadPoolTreadCount, .Name = "SmallThreadPool(burst)"}; - WorkerPool BackgroundSmallWorkerPool = {.TreadCount = SmallWorkerThreadPoolTreadCount, .Name = "SmallThreadPool(bkg)"}; + WorkerPool BurstSmallWorkerPool = {.TreadCount = SmallWorkerThreadPoolTreadCount, .Name = "small"}; + WorkerPool BackgroundSmallWorkerPool = {.TreadCount = SmallWorkerThreadPoolTreadCount, .Name = "small_bg"}; - WorkerPool BurstTinyWorkerPool = {.TreadCount = TinyWorkerThreadPoolTreadCount, .Name = "TinyThreadPool(burst)"}; - WorkerPool BackgroundTinyWorkerPool = {.TreadCount = TinyWorkerThreadPoolTreadCount, .Name = "TinyThreadPool(bkg)"}; + WorkerPool BurstTinyWorkerPool = {.TreadCount = TinyWorkerThreadPoolTreadCount, .Name = "tiny"}; + WorkerPool BackgroundTinyWorkerPool = {.TreadCount = TinyWorkerThreadPoolTreadCount, .Name = "tiny_bg"}; - WorkerPool SyncWorkerPool = {.TreadCount = 0, .Name = "SyncThreadPool"}; + WorkerPool SyncWorkerPool = {.TreadCount = 0, .Name = "synctp"}; WorkerThreadPool& EnsurePoolPtr(WorkerPool& Pool) { |