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

[bug]: Running LND becomes very slow on macOS (arm64) compared to Linux (ubuntu 22.04 aarch64) #8671

Open
mohamedawnallah opened this issue Apr 20, 2024 · 3 comments
Labels
bug Unintended code behaviour P3 might get fixed, nice to have performance

Comments

@mohamedawnallah
Copy link
Contributor

mohamedawnallah commented Apr 20, 2024

Background

Recently, I've observed that running LND on macOS (M1 - arm64) is significantly slower compared to running it on Linux (Ubuntu 22.04 aarch64). Here are videos demonstrating the difference:

ubuntu_22_aarch64.mov
macOS_m1_arm64.mp4

You can find the logs from both environments below:

Also here are the lnd and bitcoin configurations used for both the environments (the passwords included are just for testing):

Context

Both instances are connected to the same chain backend (Bitcoin Core). The tests appear to be independent of computing resources. The LND instance on macOS was a fresh start, but the slow runtime persisted even after multiple attempts (e.g., testing cache or other factors).

Your Environment

Ubuntu (Linux)

  • Environment: Virtual machine using Multipass
  • OS: Linux 5.15.0-102-generic - Ubuntu 22.04.4 LTS (Jammy Jellyfish)
  • CPUs: 1
  • RAM: ~2 GB
  • Storage: ~39 GB
  • LND Version: 0.17.99-beta (kvdb/v1.4.6-4-geadbfbe1e)

macOS

  • Environment: Main host
  • OS: Darwin 23.0.0
  • CPUs: 8
  • RAM: ~8 GB
  • Storage: ~228 GB
  • LND Version: 0.17.99-beta (kvdb/v1.4.6-9-gd4c193757)

Chain Backend

  • Type: Bitcoin Core
  • Version: v23.0.0

Expected Behavior

Both environments should have similar runtime performance.

Actual Behavior

The runtime on macOS (M1 - arm64) is significantly slower compared to Linux (Ubuntu 22.04 aarch64).

@mohamedawnallah mohamedawnallah added bug Unintended code behaviour needs triage labels Apr 20, 2024
@mohamedawnallah mohamedawnallah changed the title [bug]: Running LND becomes very slow on macOS (arm64) compared to Linux (ubuntu 22.0 aarch64) [bug]: Running LND becomes very slow on macOS (arm64) compared to Linux (ubuntu 22.04 aarch64) Apr 20, 2024
@Smiril
Copy link

Smiril commented Apr 20, 2024

did "Siri" learn from this app?

@mohamedawnallah
Copy link
Contributor Author

did "Siri" learn from this app?

Not sure I understand the context of this question!

@guggero
Copy link
Collaborator

guggero commented Apr 22, 2024

I think this might be due to the FSYNC behavior of MacOS. See https://news.ycombinator.com/item?id=30370551.

@saubyk saubyk added performance P3 might get fixed, nice to have and removed needs triage labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unintended code behaviour P3 might get fixed, nice to have performance
Projects
None yet
Development

No branches or pull requests

4 participants