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
Fix 1st gen AMD Ryzen segfault issue. #1348
Conversation
Can you replace |
@xmrig Done |
Thank you. |
Not working here (on Linux).
|
@m-o-e Can you use a more recent GCC? I used 9.2.1 (from Ubuntu 19.10). I've been mining for the past 2hrs with this fix. This "builtin" is actually defined in |
XMRig wasn't clearing the cache after codegen, causing this issue due to a stale instruction cache. Oddly, this issue never occurred on my 1950x, only my 1800x.
Fix not working for me either
|
What on Earth. I can't reproduce anymore, ie w/o this PR, my 1800x isn't segfaulting. It was before! |
If it's really about code cache then this will help: https://github.com/SChernykh/xmrig/tree/ryzen-fix |
Even more, "clear cache" intrinsics don't do anything when compiled on x86. |
@Svaag , try disabling opcache. |
Fun fact: xmr-stak-rx also segfaults for me on the same hardware! (also right at startup) @DiamondLovesYou |
@m-o-e maybe because they just use xmrig code without any changes. |
I am also getting segfaults on two different Ryzen 1700X machines (one X370 board with latest BIOS and one X470 board with latest BIOS). I have tried the patch above to no avail. The miner is crashing for me on Windows 10 and Fedora 31 (kernel 5.3). |
@SChernykh Indeed, and upon closer inspection, Anyway, I can't reproduce locally anymore (the 1800x mined overnight w/o a segfault), so I won't be able to find a fix. Closing. |
As suggested by @repsac-by I turned off Opcache in bios under AMD CBS/CPU Common Options on my Asrock B450 Pro4 and xmrig stopped segfaulting without this patch. Performance seems to have taken a large hit, but at least it works. |
@Svaag |
Fyi, with Opcache still enabled |
Huge pages were already activated (as seen in output above), but I realized the issue - late last night I recompiled xmrig for debugging in gdb and were still running that gimped version. I recompiled again a proper release version and got normal numbers, then upgraded to 5.1.0 and got even better:
So for me this issue seems completely fixed with opcache disabled. |
Disabling opcache in BIOS seems to have done the trick. Thanks! |
Any way to bypass opcache in software w/o touching bios? |
For me it doesn't work but the H11DSI has the option only with MOD BIOS and i am not sure if this option work correct. |
Ryzen 1700X segfault. Fixed by disable opcache. |
I am looking and looking. I dug through the bios. I looked through the manual. I'm scouring the internet. I can't figure out how to disable opcache in AB350 Pro4 mobo. Could it go by another name? Does anyone know how to disable opcache on this board? (I've got a 1700X seg faulting as well.) Edit: my BIOS is version 5.80 |
Have you upgraded to the latest BIOS? The opcache option was missing on one
of my X470 boards one rev back.
…On Sat, Dec 14, 2019 at 7:39 PM scoobybejesus ***@***.***> wrote:
I am looking and looking. I dug through the bios. I looked through the
manual. I'm scouring the internet. I can't figure out how to disable
opcache in AB350 Pro4 mobo. Could it go by another name? Does anyone know
how to disable opcache on this board? (I've got a 1700X seg faulting as
well.)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1348?email_source=notifications&email_token=AN5QPKEN527NSTYERDNTWBLQYV4F5A5CNFSM4JTJD5G2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4OPZY#issuecomment-565766119>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5QPKAHCZCXHSXBN7BGFCTQYV4F5ANCNFSM4JTJD5GQ>
.
|
I upgraded several times in order to get to the second to newest. The latest says "ASRock do NOT recommend updating this BIOS if Pinnacle, Raven, Summit or Bristol Ridge CPU is being used on your system," so I did not upgrade to that. I think I'm stuck no option to disable opcache on this mobo. I'm toying with just getting another motherboard. The problem is determining which ones have this setting. Someone with a B450 Pro4 n(@Svaag, above) managed to disable opcache. Then I found https://www.reddit.com/r/overclocking/comments/btqt2o/asrock_b450m_pro4_33_bios_update_lost_lots_of_oc/ where the guy says a BIOS update removed that capability. I suppose the B450 Pro4 and B450M Pro4 could have different BIOSes.. Hm. I was going to get a B450M, but I guess I need to go full ATX? I have the room I guess... Any additional input before I end up throwing money at this problem would be great. |
I've disabled Opcache and was happy with 5.1.0 So disabling opcache does not always work in-time. |
You need to reboot after running 5.3.0 with MSR to undo the changes from MSR mod. |
XMRig wasn't clearing the cache after codegen, causing this issue due to a stale instruction cache. Oddly, this issue never occurred on my 1950x, only my 1800x.