Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerContext.h @ 5346:566e8d32bd3a
Reduce the frequency of memory trimming from 100ms to 30s to avoid high idle CPU load
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 29 Jun 2023 09:43:20 +0200 |
parents | 3a61fd50f804 |
children | 3c8286e5d07b 16cbfefa15e9 |
comparison
equal
deleted
inserted
replaced
5342:65d55cc86a41 | 5346:566e8d32bd3a |
---|---|
187 static void SaveJobsThread(ServerContext* that, | 187 static void SaveJobsThread(ServerContext* that, |
188 unsigned int sleepDelay); | 188 unsigned int sleepDelay); |
189 | 189 |
190 #if HAVE_MALLOC_TRIM == 1 | 190 #if HAVE_MALLOC_TRIM == 1 |
191 static void MemoryTrimmingThread(ServerContext* that, | 191 static void MemoryTrimmingThread(ServerContext* that, |
192 unsigned int sleepDelay); | 192 unsigned int intervalInSeconds); |
193 #endif | 193 #endif |
194 | 194 |
195 void SaveJobsEngine(); | 195 void SaveJobsEngine(); |
196 | 196 |
197 virtual void SignalJobSubmitted(const std::string& jobId) ORTHANC_OVERRIDE; | 197 virtual void SignalJobSubmitted(const std::string& jobId) ORTHANC_OVERRIDE; |