Memory map file limit in VM



Hi

Is there a memory map file size limit with the API CreateFileMapping in
Windows CE 4.1 with all QFE installed until december 2004? In theory I think
that I should be able to create a memory map file of 1GB minus 32MB (size of
the shared memory) but I know that there is always a little part of this
space already reserved (Storage memory, ?, ...) so I tryed to find this size.

To find out what is the "real" quantity of available shared virtual memory I
used VirtualQuery to scan the whole shared memory area and noticed that the
memory seems divided in 32MB slots like the first Virtual Memory GigaBytes
and that only the first 320MB was reserved. With that information in mind I
concluded that I should be able to map 640MB. Unfortunately the biggest
memory mapped file that I am able to create is 320MB but I don't find where
this limit comes from.

There is plenty of virtual memory available because I am able to create
memory mapped files of 320MB, 160MB, 96MB, 32MB, 32MB, 9MB and 5MB at the
same time in virtual memory. At each call to CreateFileMapping my size limit
decrease (the previous sizes are in creation order).

It looks like I has to do with consecutive memory available but my
VirtualQuery calls indicates that each memory mapped files are allocated in
consecutive memory space. The last 2 maps (9 and 5 MB) does not make any
difference in my results as they seems to fit in a 32MB block already
reserved that has available space.

I also noticed that the last 32MB of shared memory is never reserved. I'm I
right if I consider that VirtualQuery return an empty structure if the query
is done on an unused memory space?

Thank you for your help. I need to be able to map 400MB in a row to be able
to save real-time acquisition data very fast and then save it to a
CompactFlash.

Regards,
JF Morin
.



Relevant Pages

  • Re: [Lit.] Buffer overruns
    ... > floating point support or a memory expansion option. ... had virtual memory support grafted on. ... > where the modified instruction was fetched from. ... vis-a-vis the official coporate strategic operating system TSS/360. ...
    (sci.crypt)
  • Re: scf /scannow & INFO in Event Viewer
    ... I know all about restore to ... pagefile to a low end of 2, ... The memory used by the user's ... Virtual Memory: Total paging file size for all drives is 2046MB ...
    (microsoft.public.windowsxp.general)
  • Re: virtual memory
    ... you can have virtual memory ... that software transparent swapping requires virtual memory. ... (since swapping it into physical memory is all or nothing). ...
    (comp.arch.embedded)
  • Re: Do I need a Page File?
    ... Intel designes the virtual memory. ... >> unlimited amounts of RAM, we wouldn't even NEED a paging file. ...
    (microsoft.public.windowsxp.general)
  • Re: Is There a Way to Remove a Module From Memory"
    ... "mapped" into virtual memory. ... to unload them from your virtual memory if they're no longer being accessed. ... I think "loaded on demand" is here referring to a machine code module, ... The default in Visual Basic is to compile code on demand. ...
    (microsoft.public.vb.general.discussion)