Skip to content

Add support for commit and decommit hooks - #1

Open
javelina-pkwy wants to merge 1 commit into
FEX-Emu:fexfrom
javelina-pkwy:feat/commit-decommit-hooks
Open

javelina-pkwy wants to merge 1 commit into
FEX-Emu:fexfrom
javelina-pkwy:feat/commit-decommit-hooks

Conversation

@javelina-pkwy

@javelina-pkwy javelina-pkwy commented Sep 17, 2026

Copy link
Copy Markdown

I am working on a FEX change to keep more accurate track of our true footprint in physical memory, and these two trampolines are needed for that.

This feature will eventually accrue, hopefully, to better support LibCEF apps like MATLAB for Linux. Chromium sets RLIMIT_DATA to a reasonable value (ie. 16GB) but at present various allocations internal to FEX pollute the kernel's accounting of how many pages we are actually using. Running simple programs can show VmData on the order of TBs, and if RLIMIT is set some syscalls will fail with an OOM condition. Most of that several TB's comes from how the host stack is allocated, but once that is fixed the biggest culprit are rpmalloc buffers which eat up multiple gigabytes per thread.

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.

1 participant