From 96d4a7d0870ee019098cf1991b00f6959843e6fd Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 12 May 2015 11:28:33 +0200 Subject: [PATCH] eth, ethdb: lower the amount of open files & improve err messages for db Closes #880 --- eth/backend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/backend.go b/eth/backend.go index 80da30086..46ef64a8a 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -207,6 +207,7 @@ func New(config *Config) (*Ethereum, error) { logger.NewJSONsystem(config.DataDir, config.LogJSON) } + // Let the database take 3/4 of the max open files (TODO figure out a way to get the actual limit of the open files) const dbCount = 3 ethdb.OpenFileLimit = 256 / (dbCount + 1)