-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch published deals do not get packed into sectors as expected #6013
Comments
Steps to reproduce:Set MaxWaitDealsSectors to 2 Expected1 WaitDeals sector created containing all four deals. Efficient packing. WaitDeals [ 1GiB, 1GiB, 1GiB, 1GiB ] Actual2 WaitDeals sectors created. Inefficient use of sector capacity. WaitDeals [ 1GiB, 1GiB ] |
I'm experiencing the same thing on v1.6.0. Ideally it would package as many deals as possible into one sector before it spawns up the the next One problem with spreading the batch-publishing deals out over the MaxWaitDealsSectors-amount, is that you could end up with sectors in Lotus version
|
@f8-ptrk can you please summarize the slack conversation instead of linking a thread? |
Ok, this is a bug. The fix should be relatively easy - storage fsm input should be able to queue pieces to be added to a sector - right now if a piece is being added to a sector (the sector is in the AddPiece state), we'll always start a new sector if we can, which results in this behavior. Not sure if this should be configurable, I think that packing as much data as we can into sectors is always better - and if, for example, we have 2 32G pieces coming to a 32G miner at once, we'll still start 2 sectors to process them in parallel |
@f8-ptrk can you please confirm this got resolved from your perspective? |
have some deals? @ribasushi maybe ask in minerX for people who have a bunch of deals going on. we are basically dry for a month now on the deal side [edit] already forwarded it |
Just sent Reiers 20+ small deals, and he can confirm that it works: https://filecoinproject.slack.com/archives/C022ZR4JA1M/p1623237962391300?thread_ts=1623157725.356700&channel=C022ZR4JA1M&message_ts=1623237962.391300 |
regarding:
https://filecoinproject.slack.com/archives/G01KU7G441Y/p1618134221295100
when batch publishing deals MaxWaitDealsSectors needs to be set to 1 if a miner wants all published deals in the same sector. as soon as MaxWaitDealsSectors > 1 the deals get spread out over [up to] MaxWaitDealsSectors sectors.
Expected/wanted behavior:
lotus-miner packing deals into sectors as it can find space without creating [up to] MaxWaitDealsSectors sectors.
[edit]
as reference about how this behaves:
https://filecoinproject.slack.com/archives/G01KU7G441Y/p1616110446225200?thread_ts=1615892104.004200&cid=G01KU7G441Y
The text was updated successfully, but these errors were encountered: