From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932867Ab2GBUyX (ORCPT ); Mon, 2 Jul 2012 16:54:23 -0400 Received: from relay3.sgi.com ([192.48.152.1]:42451 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753118Ab2GBUyW (ORCPT ); Mon, 2 Jul 2012 16:54:22 -0400 Message-ID: <4FF20A7C.7070801@sgi.com> Date: Mon, 2 Jul 2012 15:54:20 -0500 From: Nathan Zimmer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: , CC: Christoph Lameter , Nick Piggin , Hugh Dickins , Lee Schermerhorn , KOSAKI Motohiro , Rik van Riel Subject: Re: [PATCH 0/2 v4][rfc] tmpfs not interleaving properly References: <20120702202635.GA20284@gulag1.americas.sgi.com> In-Reply-To: <20120702202635.GA20284@gulag1.americas.sgi.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [128.162.233.145] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2012 03:26 PM, Nathan Zimmer wrote: > When tmpfs has the memory policy interleaved it always starts allocating at each > file at node 0. When there are many small files the lower nodes fill up > disproportionately. > This patch spreads out node usage by starting files at nodes other then 0. > The tmpfs superblock grants an offset for each inode as they are created. Each > then uses that offset to proved a prefered first node for its interleave in > the shmem_interleave. > > v2: passed preferred node via addr > v3: using current->cpuset_mem_spread_rotor instead of random_node > v4: Switching the rotor and attempting to provide an interleave function > Also splitting the patch into two sections. > > Cc: Christoph Lameter > Cc: Nick Piggin > Cc: Hugh Dickins > Cc: Lee Schermerhorn > Cc: KOSAKI Motohiro > Cc: Rik van Riel > Cc: Andrew Morton > Signed-off-by: Nathan T Zimmer > --- > > include/linux/mm.h | 6 ++++++ > include/linux/shmem_fs.h | 2 ++ > mm/mempolicy.c | 4 ++++ > mm/shmem.c | 33 ++++++++++++++++++++++++++++++--- > 4 files changed, 42 insertions(+), 3 deletions(-) > > -- > 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: email@kvack.org I apologize, it seems I have sent the patch before running checkpatch.