Skip to content

Fix -P1 crippling performance via 32 MiB working-set cap (#13) - #15

Open
PierreLvx wants to merge 1 commit into
masterfrom
fix-32mib-working-set-issue-13
Open

Fix -P1 crippling performance via 32 MiB working-set cap (#13)#15
PierreLvx wants to merge 1 commit into
masterfrom
fix-32mib-working-set-issue-13

Conversation

@PierreLvx

Copy link
Copy Markdown
Owner

PROCESS_MODE_BACKGROUND_BEGIN lowers the process's memory priority, which makes Windows cap the whole process's working set at ~32 MiB - causing 250x-800x slowdowns once compression/decompression touches more memory than that. Use THREAD_MODE_BACKGROUND_BEGIN per worker thread instead, which gives the same lowered CPU/disk I/O priority without the working-set cap side effect.

PROCESS_MODE_BACKGROUND_BEGIN lowers the process's memory priority,
which makes Windows cap the whole process's working set at ~32 MiB -
causing 250x-800x slowdowns once compression/decompression touches
more memory than that. Use THREAD_MODE_BACKGROUND_BEGIN per worker
thread instead, which gives the same lowered CPU/disk I/O priority
without the working-set cap side effect.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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