Skip to content

RISC-V: added vectorized soft AES#3740

Merged
xmrig merged 1 commit intoxmrig:devfrom
SChernykh:dev
Dec 6, 2025
Merged

RISC-V: added vectorized soft AES#3740
xmrig merged 1 commit intoxmrig:devfrom
SChernykh:dev

Conversation

@SChernykh
Copy link
Copy Markdown
Contributor

Activated when compiling with -DARCH=native

Before: 102.5 h/s, after: 107 h/s

Tested on Orange Pi RV2 and got a 2.2x speedup for soft AES itself, but overall speedup was only 4% because it's bottlenecked by memory access.

Note: --randomx-1gb-pages is crucial to get max hashrate on Orange Pi RV2

@Slayingripper

Screenshot from 2025-12-05 20-59-51 Screenshot from 2025-12-05 21-05-57

@Slayingripper
Copy link
Copy Markdown
Contributor

I've switched to using to an NVME , the biggest difference I've seen is start up time when running xmrig. I'll see if i can edit the
image

I've enabled huge pages by also editig the uboot config file added this line:

extraargs=default_hugepagesz=1G hugepagesz=1G hugepages=3
image

I have some other stuff running on this machine, so it's not completely clean as I use it for other things as well (Docker). But any enhancement is always welcome.

@SChernykh
Copy link
Copy Markdown
Contributor Author

1gb pages worked for me just by using sudo and --randomx-1gb-pages in the command line, but I don't run anything on that board. Also, having copper heatsinks on CPU and memory helps a lot with hashrate and stability.

@Slayingripper
Copy link
Copy Markdown
Contributor

1gb pages worked for me just by using sudo and --randomx-1gb-pages in the command line, but I don't run anything on that board. Also, having copper heatsinks on CPU and memory helps a lot with hashrate and stability.

I also have a heatsink with a fan. But in any case, improvement is always good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants