The invention discloses a thread for high-performance computer NUMA
perception and a memory resource optimizing method and
system. The
system comprises a runtime environment detection module used for detecting hardware resources and the number of parallel processes of a calculation node, a calculation
resource distribution and management module used for distributing calculation resources for parallel processes and building the mapping between the parallel processes and the thread and a processor core and physical memory, a parallel
programming interface, and a thread binding module which is used for providing the parallel
programming interface, obtaining a binding position
mask of the thread according to mapping relations and binding the executing thread to a corresponding CPU core. The invention further discloses a multi-thread memory manager for NUMA
perception and a multi-thread
memory management method of the multi-thread memory manager. The manager comprises a DSM
memory management module and an SMP module
memory pool which manage SMP modules which the MPI processes belong to and memory distributing and releasing in the single SMP module respectively, the
system calling frequency of the
memory operation can be reduced, the
memory management performance is improved, remote site memory access behaviors of application programs are reduced, and the performance of the application programs is improved.