diff --git a/compat.html b/compat.html index c4d464e272a95ef7c84925a2834db1ab8adecfa1_Y29tcGF0Lmh0bWw=..547759aa9d7887825868af1f47254df216b0db55_Y29tcGF0Lmh0bWw= 100644 --- a/compat.html +++ b/compat.html @@ -125,7 +125,7 @@ the program finishes running in the meantime). See <a class="reference external" href="http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies">more details here</a>.</p> <p>Note that PyPy returns unused memory to the operating system if there -is a madvise() system call (at least Linux, OS/X, BSD). It is +is a madvise() system call (at least Linux, OS/X, BSD) or on Windows. It is important to realize that you may not see this in <tt class="docutils literal">top</tt>. The unused pages are marked with <tt class="docutils literal">MADV_FREE</tt>, which tells the system “if you need more memory at some point, grab this page”. As long as memory is @@ -129,7 +129,7 @@ important to realize that you may not see this in <tt class="docutils literal">top</tt>. The unused pages are marked with <tt class="docutils literal">MADV_FREE</tt>, which tells the system “if you need more memory at some point, grab this page”. As long as memory is -plentiful, the <tt class="docutils literal">RES</tt> column in <tt class="docutils literal">top</tt> remains high. (Exceptions to +plentiful, the <tt class="docutils literal">RES</tt> column in <tt class="docutils literal">top</tt> might remains high. (Exceptions to this rule are systems with no <tt class="docutils literal">MADV_FREE</tt>, where we use <tt class="docutils literal">MADV_DONTNEED</tt>, which forcefully lowers the <tt class="docutils literal">RES</tt>. This includes Linux <= 4.4.)</p> diff --git a/source/compat.txt b/source/compat.txt index c4d464e272a95ef7c84925a2834db1ab8adecfa1_c291cmNlL2NvbXBhdC50eHQ=..547759aa9d7887825868af1f47254df216b0db55_c291cmNlL2NvbXBhdC50eHQ= 100644 --- a/source/compat.txt +++ b/source/compat.txt @@ -115,7 +115,7 @@ here`_. Note that PyPy returns unused memory to the operating system if there -is a madvise() system call (at least Linux, OS/X, BSD). It is +is a madvise() system call (at least Linux, OS/X, BSD) or on Windows. It is important to realize that you may not see this in ``top``. The unused pages are marked with ``MADV_FREE``, which tells the system "if you need more memory at some point, grab this page". As long as memory is @@ -119,7 +119,7 @@ important to realize that you may not see this in ``top``. The unused pages are marked with ``MADV_FREE``, which tells the system "if you need more memory at some point, grab this page". As long as memory is -plentiful, the ``RES`` column in ``top`` remains high. (Exceptions to +plentiful, the ``RES`` column in ``top`` might remains high. (Exceptions to this rule are systems with no ``MADV_FREE``, where we use ``MADV_DONTNEED``, which forcefully lowers the ``RES``. This includes Linux <= 4.4.)