Péter Szilágyi
28cc3cc960
Merge pull request #3184 from karalabe/import-gas-use
...
cmd/geth, code, eth/downloader: tune import logs and mem stats
2016-10-21 12:37:59 +03:00
Péter Szilágyi
1291778032
cmd/geth, code, eth/downloader: tune import logs and mem stats
2016-10-21 12:23:39 +03:00
Felix Lange
b930baa580
Godeps: update github.com/syndtr/goleveldb to 6b4daa5362
2016-10-20 14:56:34 +02:00
Felix Lange
66ee2dec53
internal/ethapi: add debug.chaindbCompact
2016-10-20 14:37:01 +02:00
Péter Szilágyi
f2ae2f7eef
Merge pull request #3176 from karalabe/trie-stats-report
...
cmd/geth, trie: report on trie cache unloads, also add debug log
2016-10-19 17:35:58 +03:00
Péter Szilágyi
88a593d559
cmd/geth, trie: report on trie cache unloads, also add debug log
2016-10-19 17:31:19 +03:00
Felix Lange
5d9bb0a050
trie: add metric to track cache unloading ( #3175 )
2016-10-19 16:07:19 +02:00
Péter Szilágyi
8048f4d4f6
Merge pull request #3173 from karalabe/parametrized-trie-cache-get
...
cmd, core/state: allow configurable trie cache generations
2016-10-19 16:42:54 +03:00
Felix Lange
d48e6ae66f
trie: make the cache miss counter a real metric
2016-10-19 15:22:37 +02:00
Péter Szilágyi
4f46bd19d0
cmd, core/state: allow configurable trie cache generations
2016-10-19 14:55:13 +03:00
Jeffrey Wilcke
ca49510e6d
Merge pull request #3168 from benjaminbrent/develop
...
core/vm: fix GASPRICE string (resolves #2553 )
2016-10-19 13:36:13 +02:00
Jeffrey Wilcke
25ac04a444
Merge pull request #3153 from fjl/trie-unload-fix
...
trie: improve cache unloading mechanism
2016-10-19 13:35:49 +02:00
Péter Szilágyi
8e52c2e754
Merge pull request #3161 from karalabe/trie-cache-counters
...
cmd/geth, trie: track and report trie cache misses
2016-10-19 14:29:24 +03:00
Péter Szilágyi
2bb5ec1e41
cmd/geth, trie: track and report trie cache misses
2016-10-19 14:12:35 +03:00
Benjamin Brent
55522373fd
core/vm: fix GASPRICE string ( resolves #2553 )
2016-10-19 15:55:34 +11:00
Nick Johnson
c9471e7782
miner: copy pending state before handing it to callers ( #3162 )
...
The pending state was not copied while not mining, leading to a data race.
2016-10-18 22:34:37 +02:00
Jeffrey Wilcke
5b262ff5ab
Merge pull request #3156 from holiman/metrics-blocks
...
core: Add block processing time metric collection
2016-10-18 13:26:31 +02:00
Péter Szilágyi
e8d0538a00
Merge pull request #3160 from karalabe/import-database-stats
...
cmd/geth: compact and print database stats after an import
2016-10-18 14:09:02 +03:00
Péter Szilágyi
a1c63e8be6
cmd/geth: compact and print database stats after an import
2016-10-18 13:45:16 +03:00
Péter Szilágyi
a64b1b4375
Merge pull request #3158 from karalabe/pretty-print-imports
...
common, core, eth/downloader: adjust import log formatting
2016-10-18 13:29:06 +03:00
Péter Szilágyi
64500ab0fa
common, core, eth/downloader: adjust import log formatting
2016-10-18 13:16:36 +03:00
Martin Holst Swende
00b853418e
core: Add block processing time metric collection
2016-10-18 09:29:50 +02:00
Felix Lange
8d56bf5ceb
trie: ensure dirty flag is unset for embedded child nodes
...
This was caught by the new invariant check.
2016-10-18 04:57:47 +02:00
Felix Lange
44f419ec0f
core/state: bump trie cache values slightly
2016-10-18 04:57:47 +02:00
Felix Lange
177cab5fe7
trie: ensure resolved nodes stay loaded
...
Commit 40cdcf1183 broke the optimisation which kept nodes resolved
during Get in the trie. The decoder assigned cache generation 0
unconditionally, causing resolved nodes to get flushed on Commit.
This commit fixes it and adds two tests.
2016-10-18 04:57:47 +02:00
Felix Lange
187d6a66a5
trie: avoid loading the root node twice
...
New checks whether the root node is present by loading it from the
database. Keep the node around instead of discarding it.
2016-10-18 04:57:47 +02:00
Felix Lange
6952fe3a5c
Merge pull request #3100 from kobigurk/develop
...
internal/ethapi, internal/web3ext: adds raw tx retrieval methods
2016-10-17 16:55:28 +02:00
Péter Szilágyi
b19b7c39ac
Merge pull request #3142 from fjl/trie-sync-fix
...
trie: fix regression that linked all downloaded nodes together
2016-10-15 10:58:54 +03:00
Jeffrey Wilcke
9276c4e163
Merge pull request #3141 from obscuren/reprice-block-number
...
params: set reprice block number to 2463000
2016-10-15 00:50:45 +02:00
Felix Lange
2cd7a0395d
trie: fix regression that linked all downloaded nodes together
...
The trie sync code links subtries using pointers into node structs.
Since commit 40cdcf1183 nodes are no longer copied when unpacking from
an interface value, causing all nodes to get linked up as the sync
progresses. Fix it by breaking the pointer chain with an explicit copy.
2016-10-15 00:42:52 +02:00
Jeffrey Wilcke
f2be249385
params: set reprice block number to 2463000
2016-10-15 00:36:49 +02:00
Péter Szilágyi
81b01f1c2b
Merge pull request #3111 from obscuren/gas-price-fork
...
core, core/vm: added gas price variance table (EIP #150 )
2016-10-14 19:32:11 +03:00
Péter Szilágyi
a4d9e63d12
Merge pull request #3138 from karalabe/txpool-pending-limits
...
core: add global (soft) limits on the pending transactions
2016-10-14 19:10:55 +03:00
Jeffrey Wilcke
64af2aafda
core, core/vm: added gas price variance table
...
This implements 1b & 1c of EIP150 by adding a new GasTable which must be
returned from the RuleSet config method. This table is used to determine
the gas prices for the current epoch.
Please note that when the CreateBySuicide gas price is set it is assumed
that we're in the new epoch phase.
In addition this PR will serve as temporary basis while refactorisation
in being done in the EVM64 PR, which will substentially overhaul the gas
price code.
2016-10-14 18:09:17 +02:00
Felix Lange
40cdcf1183
trie, core/state: improve memory usage and performance ( #3135 )
...
* trie: store nodes as pointers
This avoids memory copies when unwrapping node interface values.
name old time/op new time/op delta
Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15)
GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15)
UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15)
UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14)
HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15)
HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13)
* trie: close temporary databases in GetDB benchmark
* trie: don't keep []byte from DB load around
Nodes decoded from a DB load kept hashes and values as sub-slices of
the DB value. This can be a problem because loading from leveldb often
returns []byte with a cap that's larger than necessary, increasing
memory usage.
* trie: unload old cached nodes
* trie, core/state: use cache unloading for account trie
* trie: use explicit private flags (fixes Go 1.5 reflection issue).
* trie: fixup cachegen overflow at request of nick
* core/state: rename journal size constant
2016-10-14 19:04:33 +03:00
Péter Szilágyi
182d9cb752
core: add global (soft) limits on the pending transactions
2016-10-14 15:57:58 +03:00
Péter Szilágyi
c2ddfb343a
Merge pull request #3136 from Arachnid/expvar
...
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
2016-10-14 15:01:59 +03:00
Nick Johnson
9e9bfc4e26
metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexp
2016-10-14 12:29:08 +01:00
Viktor Trón
f63c6c008f
Merge pull request #3133 from ethersphere/http-fix
...
swarm: fix http API's last problems
2016-10-13 12:43:57 -07:00
Daniel A. Nagy
eb2f01aee8
swarm/storage: Allow EOF at the end of the reader in the chunker. Handle the case when Read returns less than length of target slice
2016-10-13 21:23:28 +02:00
Felix Lange
30fb5c3e81
Merge pull request #3108 from homotopycolimit/FixChunkerWithBrokenReader
...
swarm/storage: fixes for tree chunker in the context of a broken reader
2016-10-13 19:45:29 +02:00
Felix Lange
c780901cd5
Merge pull request #3120 from obscuren/reporter-fix
...
core: fixed import reporter
2016-10-12 20:14:19 +02:00
Jeffrey Wilcke
ca419f3cd8
core: fixed import reporter
2016-10-11 00:16:08 +02:00
aron
a45421baaf
swarm/storage: fix chunker when reader is broken
...
* brokenLimitedReader gives error after half size
* TestRandomBrokenData tests chunker with broken reader
* add blocking quitC (instead of errC) and use errC only for errors
* don't close chunkC in tester Split,
* use quitC to quit chunk storage loop
2016-10-10 23:34:44 +02:00
Felix Lange
be6a3696a9
Merge pull request #3104 from fjl/core-import-log
...
core: print import stats more often
2016-10-10 20:38:27 +02:00
Felix Lange
7943ecb812
Merge pull request #3117 from fjl/txpool-low-limit
...
core: lower transaction pool max queue limit
2016-10-10 16:06:10 +02:00
Felix Lange
16d8397e30
core: lower transaction pool max queue limit
2016-10-10 15:32:06 +02:00
Kobi Gurkan
1a6682c21d
internal/ethapi, internal/web3ext: adds raw tx retrieval methods
2016-10-10 12:57:15 +03:00
Felix Lange
82b14a05f2
eth: move "timed out DAO fork check, dropping" to debug level
2016-10-07 21:03:38 +02:00
Felix Lange
e66b158f0b
core: print import stats more often
...
If geth is busy importing 2048 heavy blocks it can take a while before
it prints anything. This change ensures that a message gets printed
every 8s.
2016-10-07 21:03:38 +02:00