-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use top-down direction for heap allocation on zLinux
Current heap allocation direction for zLinux is bottom-up. The motivation for this is on Z platforms shift operation executes faster for smaller shift value. However with bottom-up direction object heap takes all available memory below 4G bar. This does not allow Suballocator to expand if necessary and might lead to OOM below 4G bar. The intention for this fix is to improve this situation. Switching to top-down increases chances that less memory below 4G bar is going to be used (but worst case scenario still be the same as now). In order to keep smaller shift performance benefit an allocation shift scheme should stay 0-1-2-3-4. All other platforms still use 0-3-4. Heap allocation logic for Concurrent Scavenger with HW support (Guarded Storage) hasn't been changed and still be bottom-up. The behaviour for all other platforms hasn't been changed. Signed-off-by: Dmitri Pivkine <Dmitri_Pivkine@ca.ibm.com>
- Loading branch information
1 parent
dd4c5d5
commit d4b0903
Showing
1 changed file
with
69 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters