Thought on running Antnode on RISC V

I have built an antnode with ant-node-manager for RISC V model. I am fine tuning in order to fix loads of bugs. But it’s fun to play with.

1st, memories usage quite high! 100mb/node unlike on ARM CPU
2nd, CPU run slightly cooler compared to my fine tuned 4x A55 SBC, but higher cpu usage for running 100nodes
3. Quite low power consumption on RISC V, around 2W~2.5W for 100nodes without tuning.

For better testing, I need to tune the memory usage in order to run more nodes. Now what I know is the power consumption around 4W in full boost. I wish it can handle more nodes than 4x A55.

Ummm…I am not sure if someone doing the same thing running ant nodes on RISC V

5 Likes

Well I’d expect RISC V to have a bigger executable footprint since its not using complex instructions.

2 Likes

I though the it should run nicer and already knew it have bigger executable at first, since not much features. But what I found it put all the assemble in while running and caused high ram usage🤦🏻‍♂️I was expecting it should run a little bit nicer since antnode doesn’t use a lot of resources.

I have designed a PCB layout to build a small SBC with RISC V since no license fee, lower development cost. Can focus more resources for antnode only😂 meanwhile I am building an AI model tuning the runtime resources usage, hopefully can fix all those issues

5 Likes

A new update on RISC V development

Binary Size 8.3MB → 12.8MB
CPU usage drop 15%
Memory usage 44.5MB per node

Since new cpu means simple instructions set without too fancy one. Still exploring if antnode run well on RISC V. So far my A55 sbc memory usage like around 28MB~32MB per node without code tuning but system tuning.

Long compiling time: 2-3hours😂

1 Like

But AFAIK, also Arm is RISC, ie reduced instruction, vs Intel which is CISC, ie complex.

Not really in the instruction set, totally different things. More like old x86 ISA than ARM

RISC V having cluster internal or external data line, so it can run multiple physical cpu as the same time. However, ARM can’t, just multi-core

That is why interested me, like build a sbc with multiple small riscv64 cpu, 1 or 2 GB ddr4 ram attach to each cpu, running 100 nodes each, a dirt cheap cluster SBC can be made.

And of course, too new, not much support, required loads of fix for running antnode, some asm calls valid on RISCV64 but not rust yet. If RISC V running antnode just similar to ARM, I will definitely go all RISC V since it is much much cheaper than ARM

2 Likes

Sample size: 10 nodes
Avg. 20.46MB :grimacing:does it make sense?

2 Likes

That looks like its also swapped some of the little used parts of the binary out. So that is not too bad.

1 Like

Still have plenty of memory, I am not sure why they moved a little bit to swap😅
My swappiness set to 0🤷🏻‍♂️

Had a nosey and fancied this

But shipping is £110 :frowning:

1 Like

Besides of that shipping fees, £89 is quite a good deal :joy:

1 Like

I have tuned a RISC V version of antnode, although RPC not working as library not supported. I am using octa core spacemit x60, 8GB ram, max 400nodes, 60-70% cpu load. Consuming around 3.0W-3.5W. L2 Cache Ring(32x core x60 + 64GB ram)CPU cluster in theory should not have huge improvement.
<50 nodes, zicbom feature was great, 40%lower memory usage(<14MB avg), then memory usage increased 3 times more, maybe frequently calling this feature cause a lot of issues.

Compared to quad core cortex A55 without binary tuning, which is 25% lower, with higher power consumption. Based on the performance/price, actually quite similar or same. But cortex-A55 much energy efficient.

So, I won’t recommend RISC V at this moment :joy:

1 Like

I’d send this to the UK HQ of RaspBerry Pi attn: CEO, asking for them to produce a domestic equivalent SBC. :wink:

1 Like