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

Raiden is slow on slow hardware #3199

Closed
eorituz opened this issue Dec 21, 2018 · 5 comments
Closed

Raiden is slow on slow hardware #3199

eorituz opened this issue Dec 21, 2018 · 5 comments
Labels
Type / Optimization Issues that are performance related

Comments

@eorituz
Copy link
Contributor

eorituz commented Dec 21, 2018

Abstract

Raiden tx from a raspberry pi zero to an udoo x86 takes extremly long.
If the Udoo runs 6 Raiden nodes and the Pi zero 1 it takes 45-75s to complete a Tx (almost independent of the number of hops.

Plot

I tested a transaction from the pi zero (pi@raspberrypi) to the udoo (train@demo) with only one raiden node running on each machine (it was ofc a direct transfer). It took ~40s to complete the transfer. Checkout the video to see what I did in particular.

Specification

Used Raiden version 0.18.1
Raspian on the RPi
Ubuntu 18.04 on the Udoo

Logs

(Tx started at ~13:51 GMT)
raspberry_sender.log
udoo_receiver.log

Video

A short video of what I did, including memory usage of Pi
https://drive.google.com/file/d/1K1l0oIx8IGBM0Tp45IFCkKj-lLIBEg_B/view?usp=sharing

@ulope ulope changed the title Speedup raiden transactions Raiden is slow on slow hardware Dec 24, 2018
@eorituz
Copy link
Contributor Author

eorituz commented Jan 8, 2019

Benchmarks for Raspberry Pi Model 3 B+

Direct transfers from a Raspberry Pi Model 3 B+ is a lot faster.
Using a class 10 Intenso 90Mbps SD Card the transaction time is steadily between 5 and 5.5s per transaction.
Writing the datadir in /dev/shm (using the flag --datadir /dev/shm ) reduce the transaction time about 10% to ~4.5s/transaction

Specification

Used Raiden version 0.18.1
Raspian on the RPi

@hackaugusto
Copy link
Contributor

Related: #61

@eorituz
Copy link
Contributor Author

eorituz commented May 7, 2019

Ulo and I suspect, that the long transaction time is caused by the EC recover function, which needs to be done for every received message.

@rakanalh rakanalh added the Type / Optimization Issues that are performance related label Oct 7, 2019
@palango
Copy link
Contributor

palango commented Oct 5, 2020

Ulo and I suspect, that the long transaction time is caused by the EC recover function, which needs to be done for every received message.

Is there something we can do in that case? The crypto-code should already be native code. @ulope

@karlb
Copy link
Contributor

karlb commented Nov 18, 2021

I assume the performance on the pi is much better today. @ezdac since you do some testing on this, please reopen if this is not the case.

@karlb karlb closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type / Optimization Issues that are performance related
Projects
None yet
Development

No branches or pull requests

6 participants