
El 02/08/2013 11:52, Oodini escribió:
To elaborate on Ion's remarks, ALL virtual memory in user space in windows is backed by the page file, and ALL file I/O is memory mapped, the only difference being virtual memory is backed by the page file rather than a specific named file in the file system. Your inter process memory is just as likely to be in physical memory as any other data. So most likely this is not the cause of your performance issue, unless memory is so tight that your entire process working set is continually thrashing.
Well, my program previously loads the data in "normal" RAM, and I ddidn't have any problems. Since I use the shared memory, I do experiencing troubles.
PS : my data are about 12 Gb big, and I have 24 Gb of RAM on my system.
As in windows shared memory is emulated using mapped files, you can try to use windows_managed_shared_memory instead. The interface is a bit different (you don't unlink that shared memory, it's destroyed when the last attached process dies), but that will use native shared memory (memory is backed from the system pagefile) and maybe it might perform better. Best, Ion