You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PCA with 30 deals - 5,215,780,263 / 30 = 173,859,342 gas/sector, while a single ProveCommit only cost 74,550,507.
These are undesired regressions introduced toward SP operations. As defined by [FIP-0013](https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0013.md), prove commit aggregated sectors should cost less than sending prove commits individually when the network base fee is above the batch balancer. Also with FVM M1, operations should be charged.
Also, in the long term, handling system critical & state/computation intensive jobs in cron shall be considered as critical bugs.
Impact
Note the above regression mostly impacts FIL+ sectors, and way less on CC/regular deal sectors. This is more noticeable now as the base fee is constantly above the batch balancer crossover. SPs have started to aggregate the proof which should be financially beneficial for them yet its having the opposite effect, where SPs are paying more than they have to.
Note that actor maintainers think even tho the impact is high with this issue for some users, we don't think it’s a show stopper for nv19 - mitigating market cron is more time sensitive. That being said, this is a P1 for actor developers to actively mitigate in the upcoming network upgrades. Intermediately we can ask FIL+ SPs to stop aggregating to avoid the additional cost, the trade-off is that less of the network bandwidth is freed up.
The content you are editing has changed. Please copy your edits and refresh the page.
@Shekelme you should keep batching PublishStorageDeals. But it may be more gas efficient to submit many single-sector ProveCommit messages rather than one ProveCommitAggregate until we resolve this imbalance.
Here is a trace of ProveCommitAggregate with 8 sectors/deals from https://github.com/anorth/fvm-workbench. This is a baseline against which we can measure improvement. Note that this trace is under constructed (repeatable) conditions of empty state, so it will tend to underestimate the cost of updating large linked data structures vs mainnet state (which also means that improvements are relatively more impactful).
With #1278 closed (34% gas reduction for batch of 8 in test data), this issue is now only tracking one other issue, #1277. I suggest that we should close it to reduce clutter of open issues.
Background
Due to FIP-0045, aggregate sectors with FIL+ deals consume additional gas to activate deals and perform Datacap allocation. Unfortunately, the gas cost increase also leads to undesired consequences. ProveCommitAggregation (PCA) messages with FIL+ deals are more expensive than committing sectors individually, as for the later the jobs are handled in corn and paid by the system during prove commit.
For example:
PCA with 30 deals - 5,215,780,263 / 30 = 173,859,342 gas/sector, while a single ProveCommit only cost 74,550,507.
These are undesired regressions introduced toward SP operations. As defined by [FIP-0013](https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0013.md), prove commit aggregated sectors should cost less than sending prove commits individually when the network base fee is above the batch balancer. Also with FVM M1, operations should be charged.
Also, in the long term, handling system critical & state/computation intensive jobs in cron shall be considered as critical bugs.
Impact
Note the above regression mostly impacts FIL+ sectors, and way less on CC/regular deal sectors. This is more noticeable now as the base fee is constantly above the batch balancer crossover. SPs have started to aggregate the proof which should be financially beneficial for them yet its having the opposite effect, where SPs are paying more than they have to.
Note that actor maintainers think even tho the impact is high with this issue for some users, we don't think it’s a show stopper for nv19 - mitigating market cron is more time sensitive. That being said, this is a P1 for actor developers to actively mitigate in the upcoming network upgrades. Intermediately we can ask FIL+ SPs to stop aggregating to avoid the additional cost, the trade-off is that less of the network bandwidth is freed up.
Potential Work Items
The text was updated successfully, but these errors were encountered: