Skip to content

High CPU usage and memory leak? #956

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

Open
D-nov opened this issue Jan 14, 2025 · 7 comments
Open

High CPU usage and memory leak? #956

D-nov opened this issue Jan 14, 2025 · 7 comments
Assignees

Comments

@D-nov
Copy link

D-nov commented Jan 14, 2025

Describe the bug
When ray is left to run for few days in a row (3 days in this case) i noticed 2 things.
1 - A 43 GB syslog (/var/log/syslog) file full of logs about ray timeout / infinite loop ? - I don't remember the exact message because i was in hurry to free up system disk space
2 - High CPU usage, this morning when i check why the PC was still slow after freeing the disk space from the log file seemed like 94% of the CPU was occupied by Ray app when it was not even logging anything at that time.

Versions
2.8.1 (latest app image)

To Reproduce
Steps to reproduce the behavior:

  1. Use ray
  2. No idea how proceed forward. Maybe dump something huge or enter infinite loop with a ray dump in it ?

Expected behavior
Do not allow leaks and prevent log file to grow over 1gb of size

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 24.xx

Additional context
Is this the ray app repo or is ray.app the app repo?? Your repo naming is confusing.

@afonic
Copy link

afonic commented Jan 28, 2025

I've noticed the same thing on my Mac Mini M4. Ray is just idle and it uses a lot of CPU.

@dircm
Copy link

dircm commented Jan 29, 2025

noticed high CPU after 1 hour on 2.8.1

MacOS 14.6.1

@lcallif
Copy link

lcallif commented Feb 23, 2025

I had a very similar issue and when I reported it I was told that this issue has been resolved in the next version. So far, no notice on approximate dates fro the new release. It almost feels like Ray has been abandoned.

@freekmurze
Copy link
Member

Hi, Ray certainly has not been abandoned. We're ramping up development for a new major version that we'll release later this year. This release will have a modernized foundation in which these memory problems will be solved (hopefully) permanently.

That being said, we do maintain the current version as well. This particular memory / CPU is particularly elusive. For most Ray users the app works perfectly. And we also have a hard time replicating the issue internally (I'm not saying it is non-existent).

As soon as we have a reliable solution, we'll release it. Apologies for any inconvenience.

@siegerhansma
Copy link

I'm running into this right now. @freekmurze Is there anything I can do to help you debug this, like provide logs or something similar? For me, it only occurs when the app is running for a longer period.

@D-nov
Copy link
Author

D-nov commented Apr 1, 2025

I'm running into this right now. @freekmurze Is there anything I can do to help you debug this, like provide logs or something similar? For me, it only occurs when the app is running for a longer period.

i'm pretty sure for all of us happens when it runs longer...

@UVLabs
Copy link

UVLabs commented Apr 16, 2025

There's definitely an issue with Ray regarding CPU usage and even energy impact on my M3 Macbook Pro:

See my response here: #777 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants