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

box86 run wine cef use a lot of memory and cpu #745

Open
1322579329 opened this issue Jan 4, 2023 · 7 comments
Open

box86 run wine cef use a lot of memory and cpu #745

1322579329 opened this issue Jan 4, 2023 · 7 comments

Comments

@1322579329
Copy link

arm64:
5a886df2-8b42-47c1-aa3e-0e25dfa58f9b
windows:
17bf82b5-6156-4eff-a4ac-b8c87298938b
debian:
aea3fb6c-73b1-4040-adc9-969ba07fbf98

When i load youtube, i found box86 run wine cef use many memory and cpu, finaly let system block. CefClient run normal in debian wine and windows.

@ptitSeb
Copy link
Owner

ptitSeb commented Jan 4, 2023

How can I reproduce the issue myself?

@1322579329
Copy link
Author

1322579329 commented Jan 4, 2023

How can I reproduce the issue myself?

cefclient download url
https://drive.google.com/file/d/1WBnjFX1zAf2UavU94tMMp-5zUyN3QmTz/view?usp=share_link
wine32 deb download url
https://drive.google.com/file/d/1ydfHq1Z7YyepddhRZM03WpIs195Qzf5I/view?usp=share_link
You can run cefclient with BOX86_NOPULSE=1 /opt/ocean-wine/bin/ocean-wine in box86, cefclient.exe need full path

@ptitSeb
Copy link
Owner

ptitSeb commented Jan 4, 2023

Thank you, I'll try to reproduce later. Note that I will not be much availble in the next week, so it may take some time...

@1322579329
Copy link
Author

1322579329 commented Jan 4, 2023

Thank you, I'll try to reproduce later. Note that I will not be much availble in the next week, so it may take some time...

When set BOX86_DYNAREC=0, disable dynarec, memory half less than before, but too slow.

@1322579329
Copy link
Author

Thank you, I'll try to reproduce later. Note that I will not be much availble in the next week, so it may take some time...

When set BOX86_DYNAREC=0, disable dynarec, memory half less than before, but too slow.

@ptitSeb Dynarec use a lot of memory, how to analyze memory usage ?

@ptitSeb
Copy link
Owner

ptitSeb commented Feb 1, 2023

Well, yes, dynarec use lots of memory, because it maps all the memory the program use. Everything is in custommem.c. I guess it's mostly the memory "jmp" map that is the issue, but I don't have any alternative for now.

@1322579329
Copy link
Author

1322579329 commented Apr 11, 2023

@ptitSeb

I read "jmp" map code, box86_jumptable malloc 256kb memory, set to arm_next. Is it necessary to consume so much physical memory? I try to set box86_jumptable malloc16kb memory, use memory less, dynarec works fine.

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

2 participants