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

RPCS3 leaks memory on PPU compilation #15376

Closed
mguinhos opened this issue Mar 30, 2024 · 6 comments · Fixed by #15377
Closed

RPCS3 leaks memory on PPU compilation #15376

mguinhos opened this issue Mar 30, 2024 · 6 comments · Fixed by #15377
Assignees
Labels
Bug LLVM Related to LLVM instruction decoders Loader Involving the load of PS3 file formats

Comments

@mguinhos
Copy link

mguinhos commented Mar 30, 2024

Compiling with 16 llvm threads eats the whole RAM and Swap. Even when the game is closed, the memory isnt freed.

Tested on i5-13450HX (PS3UPDATE.PUP)

20240330_052351.jpg

Its only when we exit RPCS3 that the memory is freed.

@elad335
Copy link
Contributor

elad335 commented Mar 30, 2024

Try to set LLVM threads to 8 on Emulator tab and compile again with Firmware cache removed.

@mguinhos
Copy link
Author

mguinhos commented Mar 30, 2024

Try to set LLVM threads to 8 on Emulator tab and compile again with Firmware cache removed.

Thanks, i guess i solved. My swap was too small. Increased to 4GB, and it was sufficient.

Reducing to 8 threads only also worked.

It used 2.8GB of swap at some point.

@elad335
Copy link
Contributor

elad335 commented Mar 30, 2024

But with 8 threads, the leak itself is not resolved, just lowered the memory usage, correct?

@mguinhos
Copy link
Author

mguinhos commented Mar 30, 2024

Not a memory leak, just a misconfiguration on my operating system.

Sorry for opening an issue about that.

And thanks for the help.

@elad335
Copy link
Contributor

elad335 commented Mar 30, 2024

Nah, its a bug of RPCS3, we do compile concurrently up to the amount of CPU threads you have without considering real world memory restrictions.

@elad335 elad335 added Bug Loader Involving the load of PS3 file formats LLVM Related to LLVM instruction decoders labels Mar 30, 2024
@elad335 elad335 self-assigned this Mar 30, 2024
@elad335
Copy link
Contributor

elad335 commented Mar 30, 2024

Actually it was not the thread count after all, but I'll provide a tentative fix for that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug LLVM Related to LLVM instruction decoders Loader Involving the load of PS3 file formats
Projects
None yet
2 participants