Author: Robert Hyatt
Date: 11:08:40 10/04/01
Go up one level in this thread
On October 04, 2001 at 08:47:44, JW de Kort wrote: >Hi friends, > >just a simple question. I want my hashtable to be as big as possible but in >order to decide the size i need to know how much physical memory is still >available. The problem is however that i do not know which instruction i should >use to get the size of the available memory. Iám using Visual C++ 4.2. Can >anybody help me? > >thanks! > >Jan Willem There is no way to do this except by direct testing. Use a loop to keep doubling the size of the hash setting until things suddenly slow way down. Back up one size and you are optimal. Until somebody runs something on that machine that makes you start swapping again... Knowing the size of physical RAM is not very useful. How big is the operating system? How many things are running and occupying physical ram? Trying to check this would also be non-portable...
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.