From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 30 Jul 2004 16:40:22 -0500 From: Brent Casavant Reply-To: Brent Casavant Subject: Re: Scaling problem with shmem_sb_info->stat_lock In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Hugh Dickins Cc: William Lee Irwin III , Andrew Morton , linux-mm@kvack.org List-ID: On Thu, 29 Jul 2004, Hugh Dickins wrote: > Why doesn't the creator of the shm segment or /dev/zero mapping just > fault in all the pages before handing over to the other threads? Dean Roe pointed out another answer to this. For NUMA locality reasons you want individual physical pages to be near the CPU which will use it most heavily. Having a single CPU fault in all the pages will generally cause all pages to reside on a single NUMA node. Brent -- Brent Casavant bcasavan@sgi.com Forget bright-eyed and Operating System Engineer http://www.sgi.com/ bushy-tailed; I'm red- Silicon Graphics, Inc. 44.8562N 93.1355W 860F eyed and bushy-haired. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org