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] OOM - memory leak? #560

Open
manuelkamp opened this issue Aug 18, 2024 · 3 comments
Open

[BUG] OOM - memory leak? #560

manuelkamp opened this issue Aug 18, 2024 · 3 comments

Comments

@manuelkamp
Copy link

manuelkamp commented Aug 18, 2024

Model
lama

Describe the bug
installed via pip.
made a systemd service to run it on my Ubunut 22.04 LXC.

[Unit]
Description=IOPaint
After=syslog.target network.target

[Service]
SuccessExitStatus=143

User=root
Group=root

Type=simple

WorkingDirectory=/root
ExecStart=/usr/local/bin/iopaint start --model=lama --device=cpu --host 0.0.0.0 --port=8080
ExecStop=/bin/kill -15 $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target

use a self coded windows application, using cefsharp (chromium browser engine) to call url and do some object removals.
On every object removed (does not matter if it is the same picture or many different pictures), RAM usage rises until OOM.
(the RAM usage rising is also replicated via regular Browser (Edge) and therefore not related to cefsharp usage)

Aug 16 22:33:12 srv-inpaint systemd[1]: iopaint.service: A process of this unit has been killed by the OOM killer.
Aug 16 22:33:13 srv-inpaint systemd[1]: iopaint.service: Main process exited, code=killed, status=9/KILL
Aug 16 22:33:13 srv-inpaint systemd[1]: iopaint.service: Failed with result 'oom-kill'.
Aug 16 22:33:13 srv-inpaint systemd[1]: iopaint.service: Consumed 16min 11.494s CPU time.
Aug 18 20:27:44 srv-inpaint systemd[1]: iopaint.service: Main process exited, code=killed, status=9/KILL
Aug 18 20:27:44 srv-inpaint systemd[1]: iopaint.service: Failed with result 'signal'.
Aug 18 20:27:44 srv-inpaint systemd[1]: iopaint.service: Consumed 4min 29.309s CPU time.
Aug 18 20:27:45 srv-inpaint systemd[1]: iopaint.service: Scheduled restart job, restart counter is at 5.
Aug 18 20:27:45 srv-inpaint systemd[1]: Stopped IOPaint.
Aug 18 20:27:45 srv-inpaint systemd[1]: iopaint.service: Consumed 4min 29.309s CPU time.
Aug 18 20:27:45 srv-inpaint systemd[1]: Started IOPaint.

System Info
Platform: Linux-6.8.12-1-pve-x86_64-with-glibc2.35
Software version used

  • iopaint: 1.3.3
  • pytorch: 2.4.0
  • CUDA: CPU only
@manuelkamp
Copy link
Author

related to #308 ?

@manuelkamp
Copy link
Author

also related to #414 ?

@manuelkamp
Copy link
Author

It seems to be solved by giving the VM more RAM. Mine now has 4GB and now this issue does not occur anymore. Maybe this minimal requiremnets should be statet in some documetation?

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

1 participant