changeset 5157:874e6b135614

doc
author Alain Mazy <am@osimis.io>
date Thu, 02 Feb 2023 09:40:48 +0100
parents 2020c2e479d3
children 02cfd23a556a
files OrthancServer/Resources/ImplementationNotes/memory_consumption.txt
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Resources/ImplementationNotes/memory_consumption.txt	Thu Feb 02 09:34:38 2023 +0100
+++ b/OrthancServer/Resources/ImplementationNotes/memory_consumption.txt	Thu Feb 02 09:40:48 2023 +0100
@@ -29,7 +29,7 @@
 `mem_limit: 400m`)
 5 large studies are uploaded to each instance of Orthanc (around 1GB in total).
 Each study is anonymized manually, one by one and then, we repeat the operation.
-We compare the memory used by the containers after 2 minutes of execution 
+We compare the memory used by the containers after each anonymization 
 (using `docker stats`):
             
 # study            without malloc_trim         with_malloc_trim
@@ -69,15 +69,21 @@
 Conclusion: 
 ----------
 
-The use of malloc_trim does not guarantee that Orthanc will never reach a
+The use of malloc_trim reduces the overall memory consumption of Orthanc
+and avoids some of the out-of-memory situations.
+
+However, it does not guarantee that Orthanc will never reach a
 out-of-memory error, especially on very constrained systems.  
+
 Depending on the allocation pattern, the Orthanc memory can get
-very fragmented and increase since malloc_trim only releases memory
+very fragmented and increase regularly since malloc_trim only releases memory
 at the end of each of malloc arena.  However, note that, even long before the 
 introduction of malloc_trim, we have observed Orthanc instances running for years
 without ever reaching out-of-memory errors and Orthanc is usually considered as
 very stable.
 
+Moreover, before each release, Orthanc integration tests are run against Valgrind
+and no memory leaks have been identified.
 
 
 malloc_trim documentation