Computer Chess Club Archives


Search

Terms

Messages

Subject: Question for Eugene

Author: Robert Hyatt

Date: 19:19:36 08/15/05


In NUMA linux, when I malloc() or shmget() or whatever any kind of memory, it
isn't actually allocated on a specific node until the page is faulted in on a
reference.  This lets me shmget() the TREE data for each process before I fork()
the processes, then each process initializes its own TREE blocks, which faults
them into the physical memory on the node where that particular process is
running.

Does windows behave the same way, or is the mallocInterleaved() approach
currently used in Crafty the best approach.  I'm going to have to do a little
tweaking to make the current program approach behave on windows, and if windows
allocates physical memory like linux, it makes the approach work on both, if
not, oh well...




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.