From d81c9833562c717c956a468a5f6fc1dfb553020c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 8 Mar 2020 12:18:57 -0700 Subject: [PATCH] Updated Optimization (markdown) --- Optimization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Optimization.md b/Optimization.md index c98bf89..726518c 100644 --- a/Optimization.md +++ b/Optimization.md @@ -61,7 +61,7 @@ The SeaweedFS usually only open a few actual disk files. But the network file re ## Memory consumption -For volume servers, the memory consumption is tightly related to the number of files. For example, one 32G volume can easily have 1.5 million files if each file is only 20KB. To store the 1.5 million entries of meta data in memory, currently SeaweedFS consumes 36MB memory, about 24bytes per entry in memory. So if you allocate 64 volumes(2TB), you would need 2~3GB memory. However, if the average file size is larger, say 200KB, only 200~300MB memory is needed. +For volume servers, the memory consumption is tightly related to the number of files. For example, one 32G volume can easily have 1.5 million files if each file is only 20KB. To store the 1.5 million entries of meta data in memory, currently SeaweedFS consumes 36MB memory, about 24bytes per entry in memory. So if you allocate 64 volumes(2TB), you would need about 3GB memory. However, if the average file size is larger, say 200KB, only about 300MB memory is needed. SeaweedFS also has leveldb mode support, which reduces memory consumption even more.