-
-
Notifications
You must be signed in to change notification settings - Fork 514
ESP32-S3 - Bad Share #1682
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
Comments
This requires some changes on the backend, I have some ESP32-S2/S3s and maybe I'll check it myself, for now- can you check if this could help with the regular ESP32s that have low hashrate on versions newer than 2.0.1? |
I gave a quick try on a old ESP32, but the performance was around 4kH/s with the patch, so not working at all. |
That's what I was concerned about. It complicates the code unification, but on the other hand it's probably not hard to add a switch to check if running on an old ESP32 or the new S variants. Either way, there must be something else that can be changed for old ESPs as their performance suffers on new versions. Maybe I'll try digging through some docs if I find the time to do so |
Probably the best workaround is what you mentioned. |
FYI I tried investigate ESP32 (Wroom, S3) performance too, let's address first #1688 and then I will port and try performance test there too |
I did also a small test, based on platform.io and it seems to work, sort of.
I think it applies here as well. As I can see it changed the difficulty dynamically to a much higher value, resulting in a timeout where the watchdog intercept My Log
About So the whole issue is that as part of the update in the ESPIDF lib, they seems to switched the crypto to hardware by default. If you check the ESP-IDF docs (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-mbedtls-hardware-sha) they are saying basically that you should test where you get the best performance
|
I think we can close this, turned to be obsolete somehow. |
Thanks for letting me know. 👍 |
Describe the bug
I was trying to investigate how to make work at decent speed an ESP32-S3, I started looking into the main issue: we cannot use esp32-arduino 2.0.1 because S3 is not supporter.
Later I found this issue that helped me a bit to understand the undergoing issue.
So I tried to adjust the code around
CONFIG_MBEDTLS_HARDWARE_SHA
disabling that and I started seeing that performance are comparable to ESP32 with v2.0.1.Good? Nope, seems that many result got rejected as bad share. Similar to #1580
To Reproduce
#define CONFIG_MBEDTLS_HARDWARE_SHA 0
Expected behavior
Improved performance from 14 kH/s to ±44 kH/s with result being accepted.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: