mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Optimization (markdown)
parent
5369cc7d23
commit
d81c983356
|
@ -61,7 +61,7 @@ The SeaweedFS usually only open a few actual disk files. But the network file re
|
||||||
|
|
||||||
## Memory consumption
|
## 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.
|
SeaweedFS also has leveldb mode support, which reduces memory consumption even more.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue