Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix available memory extraction on Linux #26764

Merged
merged 4 commits into from
Sep 24, 2019

Commits on Sep 18, 2019

  1. Fix available memory extraction on Linux

    The GlobalMemoryStatusEx in PAL is returning number of free physical pages in
    the ullAvailPhys member. But there are additional pages that are allocated
    as buffers and caches that get released when there is a memory pressure and
    thus they are effectively available too.
    
    This change extracts the available memory on Linux from the /proc/meminfo
    MemAvailable row, which is reported by the kernel as the most precise
    amount of available memory.
    janvorli committed Sep 18, 2019
    Configuration menu
    Copy the full SHA
    d18a70f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbcc870 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2019

  1. Configuration menu
    Copy the full SHA
    6632e71 View commit details
    Browse the repository at this point in the history
  2. Fix standalone GC to correctly recognize restricted memory

    The check for whether the memory was restricted or not was incorrect.
    janvorli committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    d897f15 View commit details
    Browse the repository at this point in the history