Skip to content
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

Long term grinding protection - first draft #95

Closed

Conversation

SlowestTimelord
Copy link

Proposal for plot filter removal to address long term grinding protection.

@digitalspaceport
Copy link

digitalspaceport commented Dec 27, 2023

I can see a change in the plot filter reduction schedule as a specific type of mitigation, however I think this is ultimately the wrong path. I would like to voice that I DO feel a change is needed from what we are seeing happen in the compressed ecosystem to address the composed balance of plotted netspace, rewards, and most importantly the security of the chain.

The levelers that at the time were available to be pulled to provide ongoing security of the chain for CHIP 12 addressed what at the time seemed like a specific case around GH. We have a very different competing product to GH out now and indeed its impacts on NC have been dramatic for Chia. I think reassessing the levers pulled from a K minimum size need to be reevaluated. To be clear I am suggesting a change to the minimum K size is something that should be on the table. There are a wide variety of benefits that approach could have as well as a seperate set of challenges.

If you feel that path is too divergent vs what you have proposed here let me know and I can start work on a seperate CHIP. It may be a good idea to do that regardless. Involving farmers in talks around impactful changes to farmers and eliciting community sentiment at the same time sounds like a good approach.

@OverActiveBladderSystem

"Piggyback Plots" - Operation Oink / Crop Rotation

To enhance or alter the concepts above that require doubling the workload or forcing a replot of everything, is it possible to extend existing k32 plots (something 99% of users have) with a table 8 and/or table 9 (or more) which can lay in wait for the activation dates taking up only a small additional amount of space until that time, but are something that will require immensely more on-the-fly compute amplifying the cost to grind and/or use compression, while having the least impact on all participants in terms of disk lookups and farming compute in the long run?

Each plot would have a second plot associated with it (piggybacking it) containing the new extended tables while maintaining similar low compute and hardware requirements while farming, just a little extra upfront work per plot that can be done ahead of time to include the new tables 8 and/or 9 (or more).

Side Quest: if piggybacking tables are less than ideal due to the compression method of the plots and would result in wasted space, the concept could change into "Tandem Plots" with two different types of data sets, one existing (k32) larger set and one newer smaller (intensive to compute) set working in tandem with each other for a fork, that achieves the desired result of reusing 99% of whats out there while adding a more compute intensive layer on top of it.

If possible and still secure, this may be the least disruption by having the easiest path to upgrade (extend) plots while trying to keep the lowest impact on farming long-term?

@reythia
Copy link

reythia commented Dec 27, 2023

An accelerated timeline is perhaps justifiable with recent development, but terminating at a filter of 1 instead of 32 goes too far.

It's linearly punitive to farmers whilst having diminishing returns against plot grinding. Once the threshold of grinding being economically unviable is passed the downside risk is a reduction in honest nodes and netspace with no material upside vs plot grinding.

Flash may well become the dominant storage within your referenced timelines (late 2020s) at the enterprise level based on new prices. I don't see it happening for home users and second hand markets anywhere close to that quickly, but that's my opinion.

You also mention 22TB drives being viable with filter 1 using uncompressed plots - but 22TBs are available today, and expected to reach much higher capacity over the next several years. I don't understand the security rationale for pushing high density HDDs out of honest netspace - doesn't that make grinding attempts more attractive not less?

Obsoleting HDDs prematurely also makes things like 'one click farming' and having millions of home users much more challenging aspirations. Whilst well intentioned, filter going to 1 seems it may hurt overall security rather than help it.

@SlowestTimelord
Copy link
Author

It's linearly punitive to farmers whilst having diminishing returns against plot grinding. Once the threshold of grinding being economically unviable is passed the downside risk is a reduction in honest nodes and netspace with no material upside vs plot grinding.

This is a great point! I hadn't thought about the diminishing gains at lower filter levels.

Flash may well become the dominant storage within your referenced timelines (late 2020s) at the enterprise level based on new prices. I don't see it happening for home users and second hand markets anywhere close to that quickly, but that's my opinion.

I think we'll see it in waves as it may become an economical choice for high electricity rate regions.

You also mention 22TB drives being viable with filter 1 using uncompressed plots - but 22TBs are available today, and expected to reach much higher capacity over the next several years. I don't understand the security rationale for pushing high density HDDs out of honest netspace - doesn't that make grinding attempts more attractive not less?

Pushing out high density HDDs is not the goal but highlighted as a detrimental impact of this approach that will need to be considered. Stopping at a lower filter level would alleviate it.

Obsoleting HDDs prematurely also makes things like 'one click farming' and having millions of home users much more challenging aspirations. Whilst well intentioned, filter going to 1 seems it may hurt overall security rather than help it.

I'd be curious what spare storage of home users in the future looks like -- even today overprovisioned storage is more likely to be on flash storage than hard drives.

Thank you for the thoughtful response, these are great call outs!

@SlowestTimelord
Copy link
Author

The levelers that at the time were available to be pulled to provide ongoing security of the chain for CHIP 12 addressed what at the time seemed like a specific case around GH. We have a very different competing product to GH out now and indeed its impacts on NC have been dramatic for Chia. I think reassessing the levers pulled from a K minimum size need to be reevaluated. To be clear I am suggesting a change to the minimum K size is something that should be on the table. There are a wide variety of benefits that approach could have as well as a seperate set of challenges.

Changing minimum K-size is certainly on the table but I personally would like to consider it in the lens of preventing plot grinding. I don't see compressed farming as a problem unto itself but rather the specific pooling implementations of it which are separately addressed in CHIP-0022.

If a higher K-size is capable of exponentially increasing the costs of plot grinding then it could be worth the trade off of replotted netspace. I'm not convinced that it does though. Renting GPU clusters is as easy as ever (though maybe not currently cheap). I'd defer to someone that understands the requirements of higher k-size plotting to chime in. My fear is higher k-size makes Chia farming out of reach of common users.

If you feel that path is too divergent vs what you have proposed here let me know and I can start work on a seperate CHIP. It may be a good idea to do that regardless. Involving farmers in talks around impactful changes to farmers and eliciting community sentiment at the same time sounds like a good approach.

Great point about eliciting more input from the farmers that will be impacted. A few vocal users in GitHub should not be making this decision for 90K+ farmers.

@SlowestTimelord
Copy link
Author

An accelerated timeline is perhaps justifiable with recent development, but terminating at a filter of 1 instead of 32 goes too far.

It's linearly punitive to farmers whilst having diminishing returns against plot grinding. Once the threshold of grinding being economically unviable is passed the downside risk is a reduction in honest nodes and netspace with no material upside vs plot grinding.

Flash may well become the dominant storage within your referenced timelines (late 2020s) at the enterprise level based on new prices. I don't see it happening for home users and second hand markets anywhere close to that quickly, but that's my opinion.

You also mention 22TB drives being viable with filter 1 using uncompressed plots - but 22TBs are available today, and expected to reach much higher capacity over the next several years. I don't understand the security rationale for pushing high density HDDs out of honest netspace - doesn't that make grinding attempts more attractive not less?

Obsoleting HDDs prematurely also makes things like 'one click farming' and having millions of home users much more challenging aspirations. Whilst well intentioned, filter going to 1 seems it may hurt overall security rather than help it.

I can't speak to the technical feasibility of the examples mentioned but some way of "converting" existing plots feels like a necessity for any proposal that forces a replot of 97%+ netspace such as k-size increase or plot format change.

@jmhands
Copy link
Contributor

jmhands commented Jan 8, 2024

During the research for CHIP-12 and CHIP-13, we spent considerable time discussing how aggressive the filter reduction needs to be. The economic model has remained constant, but now we have real-time data on GPU rental prices from runpod.io, vast.ai, etc. and some basic Bladebit plot times on an H100 (which is very important b/c it is a PCIe 5.0 card). I have updated the rental model to account for prices. The threat model was originally developed around commodity gaming cards that are more easily obtainable and have lower costs.

https://docs.google.com/spreadsheets/d/16K4Ki846npprN2q5OLGCbusCPX4Ci2Hlk_vMdrY2I4g/edit?usp=sharing

I have measured a 30 second plot with 15 second phase one, a single H100. If the table 7 finalization is removed, which is not needed for grinding, that shaves off another few seconds. Today plot grinding could be run on a single card, but it would be incredibly stupid as those instances are renting for around $4/hr.

To prevent plot grinding, the profitability needs to be some multiple of honest farming profitability to ensure it doesn't become viable during short-term price volatility. When the XCH price goes up, we want to ensure adequate time for honest farmers to get the space online. CHIP-13 does this and gives a tremendous amount of room. 5x is more than enough, meaning if the price increases by 5x and plot grinding still aren't profitable, it will never happen because the honest space will beat it out and increase the Netspace,

I would, however, like to see all VRAM POC of Bladebit, as cards with a tremendous amount of high-speed memory are being developed for AI training. H200 will have 141GB and 4.8TB/s memory bandwidth, but actually less FP32 performance than a 4090. This is meaningful because the Chia proof of space is a "memory bandwidth bound" workload.

Surprisingly, plot compression has helped defend against plot grinding due to the higher effective Netspace.

To reiterate what was mentioned above, although I believe SSDs transition will happen even sooner than most industry analysts, I don't think the Chia protocol should restrict hard drives from being viable for farming.

To summarize, I recommend getting CHIP-13 or replacement back online immediately. This will be more than enough to deter plot grinding during short-term XCH price volatility, and god forbid, the next bull market.

@danieljperry
Copy link
Contributor

During the research for CHIP-12 and CHIP-13, we spent considerable time discussing how aggressive the filter reduction needs to be. The economic model has remained constant, but now we have real-time data on GPU rental prices from runpod.io, vast.ai, etc. and some basic Bladebit plot times on an H100 (which is very important b/c it is a PCIe 5.0 card). I have updated the rental model to account for prices. The threat model was originally developed around commodity gaming cards that are more easily obtainable and have lower costs.

https://docs.google.com/spreadsheets/d/16K4Ki846npprN2q5OLGCbusCPX4Ci2Hlk_vMdrY2I4g/edit?usp=sharing

I have measured a 30 second plot with 15 second phase one, a single H100. If the table 7 finalization is removed, which is not needed for grinding, that shaves off another few seconds. Today plot grinding could be run on a single card, but it would be incredibly stupid as those instances are renting for around $4/hr.

To prevent plot grinding, the profitability needs to be some multiple of honest farming profitability to ensure it doesn't become viable during short-term price volatility. When the XCH price goes up, we want to ensure adequate time for honest farmers to get the space online. CHIP-13 does this and gives a tremendous amount of room. 5x is more than enough, meaning if the price increases by 5x and plot grinding still aren't profitable, it will never happen because the honest space will beat it out and increase the Netspace,

I would, however, like to see all VRAM POC of Bladebit, as cards with a tremendous amount of high-speed memory are being developed for AI training. H200 will have 141GB and 4.8TB/s memory bandwidth, but actually less FP32 performance than a 4090. This is meaningful because the Chia proof of space is a "memory bandwidth bound" workload.

Surprisingly, plot compression has helped defend against plot grinding due to the higher effective Netspace.

To reiterate what was mentioned above, although I believe SSDs transition will happen even sooner than most industry analysts, I don't think the Chia protocol should restrict hard drives from being viable for farming.

To summarize, I recommend getting CHIP-13 or replacement back online immediately. This will be more than enough to deter plot grinding during short-term XCH price volatility, and god forbid, the next bull market.

Thanks for this excellent analysis!

@SlowestTimelord
Copy link
Author

Thank you for chiming in with expertise and data, @jmhands!

To reiterate what was mentioned above, although I believe SSDs transition will happen even sooner than most industry analysts, I don't think the Chia protocol should restrict hard drives from being viable for farming.

At what filter size is HDD farming not viable? I thought plot filter removal would just barely make the large capacity slow drives not viable. (e.g. 20TB 5400rpm was the example that was at the cusp IIRC).

@SlowestTimelord
Copy link
Author

Thank you all for the feedback and discussions (both here and other channels). I am withdrawing this CHIP and will proposed a modified version after the first plot filter reduction to observe how netspace and farmer experience responds.

@SlowestTimelord SlowestTimelord deleted the plot-filter-removal branch January 31, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants