box86 icon indicating copy to clipboard operation
box86 copied to clipboard

box86 run wine cef use a lot of memory and cpu

Open 1322579329 opened this issue 3 years ago • 7 comments

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.

1322579329 avatar Jan 04 '23 07:01 1322579329

How can I reproduce the issue myself?

ptitSeb avatar Jan 04 '23 07:01 ptitSeb

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

1322579329 avatar Jan 04 '23 09:01 1322579329

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...

ptitSeb avatar Jan 04 '23 09:01 ptitSeb

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 avatar Jan 04 '23 11:01 1322579329

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 ?

1322579329 avatar Feb 01 '23 07:02 1322579329

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.

ptitSeb avatar Feb 01 '23 10:02 ptitSeb

@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.

1322579329 avatar Apr 11 '23 07:04 1322579329