From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,dcf2c3d9b4549885 X-Google-Attributes: gidf4671,public X-Google-Thread: f6653,dcf2c3d9b4549885 X-Google-Attributes: gidf6653,public X-Google-Thread: 102b75,dcf2c3d9b4549885 X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,2870e3c2c7ff13cb X-Google-Attributes: gid1164f8,public X-Google-Thread: f57db,2870e3c2c7ff13cb X-Google-Attributes: gidf57db,public X-Google-Thread: 11035d,dcf2c3d9b4549885 X-Google-Attributes: gid11035d,public From: mccalpin@frakir.engr.sgi.com (John McCalpin) Subject: Re: Latency vs performance (was Re: Sun Servers take advantage of board local memory?) Date: 1998/05/07 Message-ID: <6isp7p$861$1@murrow.corp.sgi.com>#1/1 X-Deja-AN: 351149182 Distribution: inet References: <35359B3A.2A830CB1@earthlink.net> <35487AF7.41C6@radia1.com> <6iam2p$fve$1@murrow.corp.sgi.com> <6ianno$19lk$1@news.rchland.ibm.com> Organization: Silicon Graphics, Inc. Reply-To: mccalpin@engr.sgi.com Newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc,comp.unix.solaris,comp.arch,comp.sys.dec,comp.benchmarks In article <6ianno$19lk$1@news.rchland.ibm.com>, Del Cecchi wrote: > [asking about some features of the SGI Origin2000 ccNUMA machine...] > > Maybe I have asked this in the past, but how do you handle page > faults? Do you force the new page coming in to be local to the > node that generated the page fault, or allow it to go anywhere, > or is there some options in the page fault handler to choose? >-- >Del Cecchi >cecchi@rchland The default handler tries to allocate a page local to the cpu that faulted. If it is unable to find a free page of the correct size on that node, it will start searching on neighboring nodes. The free page finder understands the network topology and will search all the "1-hop-away" nodes before going to the "2-hop-away" nodes, etc. When requesting pages of non-standard (i.e. large) size, there is an additional degree of freedom. You can give either smaller pages locally, or the requested size remotely. I don't know what the system does by default -- I make the right decisions manually when I deal with this problem. You can change from the default "first touch" policy for allocation to a "round-robin" policy simply by setting an environment variable. The "round-robin" policy allocates pages around the set of nodes that have been requested for your job (usually the number of cpus divided by two), so you still have a degree of locality. If you want another policy, you have to read a lot of documentation and build your own policy module. I have never needed to do this, but it is available to users. -- -- John D. McCalpin, Ph.D. Server System Architect Server Platform Engineering http://reality.sgi.com/mccalpin/ Silicon Graphics, Inc. mccalpin@sgi.com 650-933-7407