Reduce number of open LevelDB files to 64 #2557
pull sipa wants to merge 1 commits into bitcoin:master from sipa:leveldb64 changing 1 files +1 −0-
sipa commented at 10:14 pm on April 23, 2013: memberI don’t notice any significant IBD performance degradation using this.
-
Reduce number of open LevelDB files to 64 2233fc5318
-
gmaxwell commented at 10:19 pm on April 23, 2013: contributor
ACK. Reduces FD usage in my torture test from 500 to 112.
However, 112 + 125 is awful close to 256, so I’m still concerned about OSX.
-
gavinandresen referenced this in commit fe15aa335c on Apr 24, 2013
-
gavinandresen merged this on Apr 24, 2013
-
gavinandresen closed this on Apr 24, 2013
-
Diapolo commented at 3:47 pm on April 25, 2013: noneThis seems to cause massive issues for me on Win7 x64, I often get the message that I need to reindex because of a broken database or sometimes only
Database I/O error
. I now removed that patch and start over to see if that is helping me. -
Diapolo commented at 8:06 am on April 26, 2013: noneI sent @gmaxwell a copy of my coinstate folder, with which I had the problem. Currently I’m 73 weeks behind with a client that doesn’t have this patch active. After it synced without error I’ll restart with this patch applied and a bootstrap (which contains 50% of the current blocks on the net) + re-sync.
-
Diapolo commented at 3:07 pm on April 26, 2013: noneNo crashes without the patch… testing with it again now.
-
Diapolo commented at 4:05 pm on April 26, 2013: noneAgain,
Database I/O error
with the patch applied…2013-04-26 16:02:19 LevelDB read failure: IO error: C:\Users\Diapolo\AppData\Roaming\Bitcoin\chainstate\000223.sst: Could not create random access file.
-
Diapolo commented at 5:46 pm on April 26, 2013: none
Perhaps we should just remove that patch for Windows, as per http://msdn.microsoft.com/en-us/library/6e3b887c.aspx
“Up to 2,048 files can be open simultaneously at the lowio level (that is, opened and accessed by means of the _open, _read, _write, and so forth family of I/O functions). Up to 512 files can be open simultaneously at the stdio level (that is, opened and accessed by means of the fopen, fgetc, fputc, and so forth family of functions). The limit of 512 open files at the stdio level can be increased to a maximum of 2,048 by means of the _setmaxstdio function.”
-
Diapolo commented at 10:40 am on April 27, 2013: none
Seems the error was the same as I posted in the chat yesterday: 2013-04-27 10:15:34 LevelDB read failure: IO error: C:\Users\Diapolo\AppData\Roaming\Bitcoin\chainstate\000446.sst: Could not create random access file. 2013-04-27 10:15:34 LevelDB error encountered: IO error: C:\Users\Diapolo\AppData\Roaming\Bitcoin\chainstate\000446.sst: Could not create random access file. 2013-04-27 10:15:34 *** Systemfehler: Database I/O error
-
sipa commented at 6:08 pm on April 27, 2013: member@Diapolo Feel like retrying with the commits in https://github.com/sipa/bitcoin/commits/win32ldberr ?
-
sipa deleted the branch on May 7, 2013
-
laudney referenced this in commit 5bb1c85d80 on Mar 19, 2014
-
DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-27 06:12 UTC
More mirrored repositories can be found on mirror.b10c.me