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

BoardConfig: Reland scudo native allocator for x86 devices #4

Open
wants to merge 1 commit into
base: lineage-18.1
Choose a base branch
from

Conversation

atmouse-
Copy link

scudo native allocator default enabled in android 11, I consider we should enable it for x86 devices cus its memory abundant.

W libc    : malloc(4194323) failed: returning null pointer
I chatty  : uid=10140(com.hypergryph.arknights) identical 3 lines                   
W libc    : malloc(4194323) failed: returning null pointer                          
E Unity   : Could not allocate memory: System out of memory!
E Unity   : Trying to allocate: 4194304B with 16 alignment. MemoryLabel: GfxDevice
E Unity   : Allocation happend at: Line:62 in
E Unity   : Memory overview
E Unity   :
E Unity   : [ ALLOC_DEFAULT ] used: 444902721B | peak: 0B | reserved: 704997757B
E Unity   : [ ALLOC_TEMP_JOB ] used: 193792B | peak: 0B | reserved: 3932160B
E Unity   : [ ALLOC_TEMP_BACKGROUND_JOB ] used: 0B | peak: 0B | reserved: 1048576B
E Unity   : [ ALLOC_GFX ] used: 8567270B | peak: 0B | reserved: 23068674B
E Unity   : [ ALLOC_CACHEOBJECTS ] used: 63051016B | peak: 0B | reserved: 116060844B
E Unity   : [ ALLOC_TYPETREE ] used: 4031948B | peak: 0B | reserved: 8388608B
E Unity   : [ ALLOC_PROFILER ] used: 0B | peak: 0B | reserved: 0B
E Unity   : [ ALLOC_TEMP_THREAD ] used: 32768B | peak: 0B | reserved: 3014656B

From above, I'm also found that libunity game engine out of memory if svelte config enabled, even it had enough ram. then setting scudo default config all perform very well.

@aleasto
Copy link
Member

aleasto commented May 7, 2024

Sorry, I had missed this PR.

I agree this makes sense, will do some testing

@atmouse-
Copy link
Author

atmouse- commented May 8, 2024

I agree this makes sense, will do some testing

I'm glad to hear that

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

Successfully merging this pull request may close these issues.

2 participants