mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
swarm/storage: set default leveldb capacity to 20gb
This commit is contained in:
parent
04a0d11528
commit
ce3d732c4a
1 changed files with 3 additions and 3 deletions
|
|
@ -35,9 +35,9 @@ implementation for storage or retrieval.
|
|||
*/
|
||||
|
||||
const (
|
||||
defaultLDBCapacity = 50000 // capacity for LevelDB
|
||||
defaultCacheCapacity = 500 // capacity for in-memory chunks' cache
|
||||
defaultChunkRequestsCacheCapacity = 50000 // capacity for container holding outgoing requests for chunks. should be set to LevelDB capacity
|
||||
defaultLDBCapacity = 5000000 // capacity for LevelDB, by default 5*10^6*4096 bytes == 20GB
|
||||
defaultCacheCapacity = 500 // capacity for in-memory chunks' cache
|
||||
defaultChunkRequestsCacheCapacity = 5000000 // capacity for container holding outgoing requests for chunks. should be set to LevelDB capacity
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Reference in a new issue