Re: Basic virtual memory question

From: JF Mezei (jfmezei.spamnot_at_teksavvy.com)
Date: 01/08/05


Date: Fri, 07 Jan 2005 18:03:47 -0500

Bob Koehler wrote:
> You'ld have to give it the required working set quota and make sure
> WSMAX was at least as big. Then the process could map 200MB even if
> the pagefile free space was less than 200MB.

But isn't WSMAX/WSQUOTA/WSEXTENT a limit of how much virtual memory can be
mapped to physical memory at any point in time ?

If you malloc a chunk of memory and wrote to it, and then need some other
piece, nothing prevents that chunk from being written to the page file to make
room for what you now need, right ?

> page files. Just never let the pagefile run out of free space

Yes, those dreaded one line "page file fragmented" messages on OPA0 that give
you a few seconds to start killing processes to free up memory... But an
enourmous page file prevents those problems.



Relevant Pages

  • Re: [Vuln-Dev Challenge] - VulnDev1.c Summary
    ... meaning the chunk is allocated with mmap. ... turn calls munmap on an invalid memory address. ... > the Doug Lea algorithm as well has heap-based exploitation methods ... > the forward chunk, in our case buf2, is free. ...
    (Vuln-Dev)
  • The Malloc Maleficarum
    ... Glibc Malloc Exploitation Techniques ... the exploitation of overflowed dynamic memory chunks on Linux. ... I have the House of Prime. ... a malloc chunk. ...
    (Bugtraq)
  • [Full-disclosure] The Malloc Maleficarum
    ... Glibc Malloc Exploitation Techniques ... the exploitation of overflowed dynamic memory chunks on Linux. ... I have the House of Prime. ... a malloc chunk. ...
    (Full-Disclosure)
  • Re: [RFC v11][PATCH 05/13] Dump memory address space
    ... in one or more chunk: each chunk begins with a header that specifies ... should not change in the interim anyways, the locks protects us from, e.g. ... Even scanning over a large amount of memory, you aren't going to see a performance difference for accessing pgarr from an argument vs off of field in ctx which is going to be cache-hot. ... It is strictly necessary when it comes to handling shared memory. ...
    (Linux-Kernel)
  • Re: My idea of fully-portable C code
    ... claimed that I write fully-portable code. ... In my most recent embedded project, there was a severe memory ... chunk size bigger or smaller than 3 bits). ... } ChunkAddress; ...
    (comp.arch.embedded)