Fridrik Asmundsson
2e45f6f778
Dont do locking using defer
2023-03-28 12:36:57 +02:00
Fridrik Asmundsson
f84f8a831a
Use TipSetKey as key in cache and return copies
2023-03-28 12:36:57 +02:00
Fridrik Asmundsson
1ea7e05cde
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-28 12:36:52 +02:00
Mikers
831f8a499d
repub needs Lock not RLock
2023-03-28 08:40:41 +00:00
Alfonso de la Rocha
df82a8240e
add comments
2023-03-28 10:33:26 +02:00
Mikers
e9d2223025
disallow infinite loop, since in testing this only runs once
2023-03-28 08:11:23 +00:00
Mikers
ad81cd18c2
cache the tipset nonce calculation before holding the write lock, and also verify that the the calculation is cached after grabbing the write lock. if it is not cached, give up the lock, calculate, and then grab the write lock again
2023-03-28 08:11:00 +00:00
Alfonso de la Rocha
92f6d3e468
global locking strategy for blockInfo map
2023-03-28 10:01:43 +02:00
Łukasz Magiera
5aa6dd100c
Merge pull request #10550 from filecoin-project/asr/api-comment
...
docs: api: clarify MpoolClear params
2023-03-28 09:50:46 +02:00
Phi-rjan
7eae362c1e
Merge pull request #10563 from Jorropo/release/v1.21.0
...
chore: all: bump go-libipfs
2023-03-28 08:42:46 +02:00
vyzo
6ecaf826af
no, Sum it is.
2023-03-27 23:17:41 +03:00
vyzo
a0f908da57
use Count instead of LastValue
2023-03-27 23:11:56 +03:00
vyzo
ddebdfb37c
add execution metrics to the chain node views
2023-03-27 20:56:07 +03:00
Phi-rjan
af428b6298
Merge pull request #10574 from filecoin-project/phi/backport-slice-fix
...
fix: proving: Initialize slice with with same length as partition
2023-03-27 16:28:02 +02:00
Phi
8bb7272bb1
Initialize with same length as partition
...
Initialize the postParam.Partitions slice with the same length as i.Partitions before iterating over it in the loop.
2023-03-27 15:54:59 +02:00
Łukasz Magiera
6012e65319
debug batch deal test a bit more
2023-03-27 15:34:59 +02:00
Łukasz Magiera
aebe3d4cf7
fix: itests: Don't call t.Error in MineBlocks goroutine
2023-03-27 13:23:29 +02:00
Łukasz Magiera
2120fae2b6
Merge pull request #10569 from filecoin-project/fix/panic-index-oor
...
fix: proving: Initialize slice with with same length as partition
2023-03-27 13:03:42 +02:00
Phi
0711fdc3dd
Initialize with same length as partition
...
Initialize the postParam.Partitions slice with the same length as i.Partitions before iterating over it in the loop.
2023-03-27 10:04:15 +02:00
Fridrik Asmundsson
90171c8bab
Addressing lint errors
2023-03-25 11:17:54 +00:00
Jorropo
0e73c69035
chore: all: bump go-libipfs
...
(cherry picked from commit f48c6268f8
)
2023-03-25 10:15:21 +01:00
Mike Seiler
6f440a6420
change highly contented message pool locks to RWMutexes for performance
2023-03-24 15:49:02 -10:00
Arsenii Petrovich
11827034b9
add to gw MpoolPending, ChainGetBlock and MinerGetBaseInfo
2023-03-24 20:39:15 +02:00
Fridrik Asmundsson
b8137f6b4d
Delete existing message index when loading from snapshot
2023-03-24 16:45:33 +00:00
Fridrik Asmundsson
48c57d394b
Improve performance when populating message indax
2023-03-24 15:36:31 +00:00
vyzo
08134552a4
address review comments
2023-03-24 15:48:58 +02:00
vyzo
4b590e2102
add vm execution metrics
2023-03-24 15:16:22 +02:00
Fridrik Asmundsson
59640a8b22
Populate the index on snapshot import
...
Fixes: https://github.com/filecoin-project/lotus/issues/10537
2023-03-24 11:41:27 +00:00
Mikers
41fce94db4
perf: eth: gas estimate set applyTsMessages false ( #10546 )
...
* have gas estimate call callInternal with applyTsMessages = false and other calls with applyTsMessages=true for gas caclulation optimization
* set applyTsMessages = true in CallWithGas call in shed
* update test with new callwithgas api optimization for eth call
* Update chain/stmgr/call.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
* env flag LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS must be 1 in order to have applyTsMessages change
* env flag LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS must be 1 in order to have applyTsMessages change
* make sure that even if we arent apply ts messages we grab ts messages from the particular user who is requesting gas estimation
---------
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-10-0-4-29.us-east-2.compute.internal>
2023-03-23 18:27:01 -04:00
Aayush Rajasekaran
4efc29aa64
Merge pull request #10513 from filecoin-project/feat/shed-chainwatch
...
feat: shed: incoming block-sub chainwatch tool
2023-03-23 17:50:41 -04:00
Aayush Rajasekaran
2cd3a052e3
Merge pull request #10553 from filecoin-project/asr/drop-genesis-marketfund
...
feat: stmgr: speed up calculation of genesis circ supply
2023-03-23 17:34:17 -04:00
Aayush
7b55de21bd
fix: miner: call ExtendSectorExpiration2
2023-03-23 17:32:55 -04:00
Aayush
a467e1ab31
fix: miner: correctly count sector extensions
2023-03-23 17:32:51 -04:00
Aayush
3070227b00
fix: miner: call ExtendSectorExpiration2
2023-03-23 17:28:16 -04:00
Aayush
2d9412d97f
fix: miner: correctly count sector extensions
2023-03-23 17:28:16 -04:00
Aayush
bc87017ea5
feat: supply: only grab genesis msig locks for writes
2023-03-23 17:04:59 -04:00
Aayush
dcdd1bc214
feat: supply: drop genesis market locked funds
2023-03-23 15:56:59 -04:00
vyzo
f11a7f8940
fix incorrect deferred vm release
2023-03-23 19:51:23 +02:00
vyzo
317a87d669
add some sanity checks for execution concurrency parameters
2023-03-23 18:52:37 +02:00
Aayush
b1669235f7
feat: chainstore: optimize BlockMsgsForTipset
2023-03-23 11:57:43 -04:00
vyzo
2a0660447a
make token.Done idempotent
2023-03-23 17:38:36 +02:00
vyzo
2bb89d9c30
call Executor.Done where appropriate in stmgr uses
2023-03-23 17:34:59 +02:00
vyzo
ee6c0f8570
only call Atoi on non empty strings
2023-03-23 17:28:08 +02:00
vyzo
7362556c02
update VM interface references to use the executor, and call Done where appropriate
2023-03-23 17:17:46 +02:00
Aayush
8bb5d985d4
docs: api: clarify MpoolClear params
2023-03-23 10:57:08 -04:00
vyzo
6550abdfcc
introduce execution lanes
2023-03-23 16:53:50 +02:00
Łukasz Magiera
ce17546a76
Merge pull request #10549 from filecoin-project/asr/gas-paych-special
...
fix: gas estimation: don't special case paych collects
2023-03-23 15:15:05 +01:00
Aayush
57d4c98d00
fix: gas estimation: don't special case paych collects
2023-03-23 09:50:28 -04:00
Łukasz Magiera
1022ac5e2b
Merge pull request #10271 from iand/iand/fix-tracer-pid
...
fix: tracer: emit raw peer ids for compatibility with libp2p tracer
2023-03-23 12:41:31 +01:00
Łukasz Magiera
b484d72c80
Merge pull request #10323 from mtelka/info-noadmin
...
fix: state: lotus-miner info should show deals info without admin permission
2023-03-23 12:39:28 +01:00