Work on limiting maximum memory usage.

This commit is contained in:
David Williams
2014-09-18 14:51:43 +02:00
parent 38b8764129
commit 8dd026e095
4 changed files with 23 additions and 16 deletions

View File

@ -277,8 +277,7 @@ TestVolume::TestVolume()
m_pSimpleVolume = new SimpleVolume<int32_t>(region);
m_pLargeVolume = new LargeVolume<int32_t>(region, m_pFilePager, 32);
//m_pLargeVolume->setMaxNumberOfBlocksInMemory(32);
m_pLargeVolume->setMaxNumberOfUncompressedBlocks(64);
m_pLargeVolume->setTargetMemoryUsage(1 * 1024 * 1024);
//Fill the volume with some data
for(int z = region.getLowerZ(); z <= region.getUpperZ(); z++)