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

Memory leak using KMS capture #3072

Open
2 tasks done
skaface opened this issue Aug 23, 2024 · 1 comment
Open
2 tasks done

Memory leak using KMS capture #3072

skaface opened this issue Aug 23, 2024 · 1 comment
Labels

Comments

@skaface
Copy link

skaface commented Aug 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

I am running sunshine on a headless VPS server using software encoding. When using X11 for desktop capture it works fine, however the other day I switched to using KMS which also works, however my machines memory usage creeps up over the course of a day. Using htop I see that when I first start sunshine I am using around 1gb total of memory, and by the end of the day the entire 8gb is full and my server is almost unresponsive. Interestingly htop reports that the sunshine process is still only using 3% of my systems memory which makes me wonder if there is actually a bug in the modesetting/kms drivers rather than sunshine. I can restart the sunshine process and memory usage drops back to around 1gb.
I am sorry that I cannot offer any more details right now, hopefully I can receive some help on how to provide some more useful feedback regarding this issue.

Expected Behavior

Expecting that memory usage should remain constant

Additional Context

No response

Host Operating System

Linux

Operating System Version

arch linux

Architecture

64 bit

Sunshine commit or version

0.23.1

Package

other (self built)

GPU Type

none (software encoding)

GPU Model

Red Hat, Inc. Virtio 1.0 GPU

GPU Driver/Mesa Version

virtio-pci

Capture Method

KMX (Linux)

Config

av1_mode = 1
min_threads = 1
encoder = software
hevc_mode = 1
fec_percentage = 15
capture = kms

Apps

No response

Relevant log output

.
@LizardByte-bot
Copy link
Member

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

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

No branches or pull requests

2 participants