Commit Graph
18893 Commits
Author SHA1 Message Date
vyzo 3cfbe3cd3f add comment about Signal unsoundness 2023-03-31 11:52:24 +02:00
vyzo 371028a42a revert dead code 2023-03-31 11:52:24 +02:00
vyzo b908096a88 fix tests 2023-03-31 11:52:05 +02:00
vyzo 9175a1be55 refactor execution lanes: hide the lock 2023-03-31 11:52:05 +02:00
vyzo 9eafa8f042 rename newVM to makeVM for a happy yushie 2023-03-31 11:52:05 +02:00
vyzo 744d29fd21 rename confusing variable 2023-03-31 11:52:05 +02:00
vyzoandAayush Rajasekaran a2aa2a0dc3 Update chain/vm/execution.go
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
2023-03-31 11:52:05 +02:00
vyzo 03134f1529 make gen 2023-03-31 11:52:05 +02:00
vyzo 23a7512a6c no, Sum it is. 2023-03-31 11:52:05 +02:00
vyzo 03e3f50d60 use Count instead of LastValue 2023-03-31 11:52:05 +02:00
vyzo a71130be9b add execution metrics to the chain node views 2023-03-31 11:52:05 +02:00
vyzo 396ee4ff3d address review comments 2023-03-31 11:52:05 +02:00
vyzo 61ba4baffa add vm execution metrics 2023-03-31 11:52:05 +02:00
vyzo 97c5df540d fix incorrect deferred vm release 2023-03-31 11:52:05 +02:00
vyzo 4b6e7cc30d add some sanity checks for execution concurrency parameters 2023-03-31 11:52:05 +02:00
vyzo c5f878c941 make token.Done idempotent 2023-03-31 11:52:05 +02:00
vyzo 9f2675422a call Executor.Done where appropriate in stmgr uses 2023-03-31 11:52:05 +02:00
vyzo a60da5be99 only call Atoi on non empty strings 2023-03-31 11:52:05 +02:00
vyzo f6057e6f84 update VM interface references to use the executor, and call Done where appropriate 2023-03-31 11:52:05 +02:00
vyzo a1ce2d7fe4 introduce execution lanes 2023-03-31 11:52:05 +02:00
Fridrik Asmundsson ed553a8363 Fix bug in searchForIndexedMsg which always returns an error v1.21.0-rpc-p02 2023-03-29 22:16:51 +02:00
Fridrik Asmundsson a29622520a Use MessageIndex in WaitForMessage 2023-03-29 22:16:37 +02:00
Fridrik Asmundsson 84b0a37e08 Dont do locking using defer 2023-03-29 22:16:26 +02:00
Fridrik Asmundsson b515f14970 Use TipSetKey as key in cache and return copies 2023-03-29 22:16:26 +02:00
Fridrik Asmundsson 5caf0bd394 feat: Add small cache to execution traces
This PR adds a small cache to calls to ExecutionTrace which helps
 improve performance for node operators like exchanges and block
explorers.

If items is in cache calls to this function will be 2-3x faster.

Fixes: https://github.com/filecoin-project/lotus/issues/10504
2023-03-29 22:16:26 +02:00
Fridrik Asmundsson d9fbafe110 Address review comments 2023-03-29 22:15:57 +02:00
Fridrik Asmundsson d2f9f258d9 Only populate message index if config EnableMsgIndex is set 2023-03-29 22:15:57 +02:00
Fridrik Asmundsson 9fdf87a160 Addressing lint errors 2023-03-29 22:15:57 +02:00
Fridrik Asmundsson 42f1760bb8 Delete existing message index when loading from snapshot 2023-03-29 22:15:57 +02:00
Fridrik Asmundsson 28fc74c3f8 Improve performance when populating message indax 2023-03-29 22:15:57 +02:00
Fridrik Asmundsson 62edba6884 Populate the index on snapshot import
Fixes: https://github.com/filecoin-project/lotus/issues/10537
2023-03-29 22:15:57 +02:00
vyzo 2985592bd0 add sanity check in SearchForIndexedMsg call site
Check that receipt is non nil, and the message was indeed found.
2023-03-29 22:13:26 +02:00
vyzo 6092f9cc14 add TODO for WaitForMessage to use the index 2023-03-29 22:13:26 +02:00
vyzo b1ceb243e6 reword funny comment 2023-03-29 22:13:26 +02:00
vyzo 0de60a35cd second error variable name to avoid confusing they yushie. 2023-03-29 22:13:26 +02:00
vyzo 9a0ec84953 shut down the index if there is an error during head processing 2023-03-29 22:13:26 +02:00
vyzo e11e0eb32a complain if head change processing is building backlog 2023-03-29 22:13:26 +02:00
vyzo 3d58ef1c21 fix typos 2023-03-29 22:13:26 +02:00
vyzo 42553dac6b chain errors in searchForIndexedMsg 2023-03-29 22:13:26 +02:00
vyzo abdb12b450 add ON CONFLICT REPLACE clause in messages 2023-03-29 22:13:26 +02:00
vyzo c04e0f4421 shed: expand homedir in repo path for msgindex tools 2023-03-29 22:13:26 +02:00
vyzo 427ff42063 increase coalesce delays for test to deflake on CI 2023-03-29 22:13:26 +02:00
vyzo 9c991751fb lint 2023-03-29 22:13:26 +02:00
vyzo a4d9bde536 make gen 2023-03-29 22:13:26 +02:00
vyzo 343cadefc6 fix test for CI
test files are run individually...
2023-03-29 22:13:26 +02:00
vyzo e365135cdd lotus-shed tools for msgindex 2023-03-29 22:13:26 +02:00
vyzo d3cb4a1244 add optimization TODO comment 2023-03-29 22:13:26 +02:00
vyzo 0119aea492 make gen 2023-03-29 22:13:26 +02:00
vyzo 7aa72e4466 fix bug in searchForIndexedMsg
Need to use and return the execution tipset
2023-03-29 22:13:26 +02:00
vyzo 4f5e0a0fe4 basic msgindex itest 2023-03-29 22:13:26 +02:00