|
Boost Users : |
Subject: [Boost-users] [interprocess]shared_memory_object stores content in disk?
From: Adrian Yu (adrianandyu_at_[hidden])
Date: 2013-06-20 01:44:56
I'm training multiple networks based on a single database.
So to accelerate speed and reduce disk reading, I use
shared_memory_object class provided by boost. Since the lab
workstation is currently unavailable, I migrated my code to my
personal computer.
On the lab workstation, the host program successfully reads all data
to memory. But on my PC, strangely it creates a file on system drive
rather than storing the data in memory. The whole database is about
3.7 GB; the lab workstation has 32 GB memory and runs Windows Server
2008 R2; my PC has 8 GB memory and runs Windows 7.
There should be enough memory to store the data. So why? Are there
certain ways to force the program to keep all data in memory?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net