From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by kanga.kvack.org (Postfix) with ESMTP id 1F9186B03BD for ; Tue, 22 Oct 2013 08:55:23 -0400 (EDT) Received: by mail-pd0-f170.google.com with SMTP id v10so3795386pde.1 for ; Tue, 22 Oct 2013 05:55:22 -0700 (PDT) Received: from psmtp.com ([74.125.245.134]) by mx.google.com with SMTP id kk1si11620907pbc.34.2013.10.22.05.55.21 for ; Tue, 22 Oct 2013 05:55:21 -0700 (PDT) Date: Tue, 22 Oct 2013 13:55:12 +0100 From: Fengguang Wu Subject: Re: [PATCH] mm: create a separate slab for page->ptl allocation Message-ID: <20131022125512.GA24418@localhost> References: <1382442839-7458-1-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382442839-7458-1-git-send-email-kirill.shutemov@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: Andrew Morton , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org On Tue, Oct 22, 2013 at 02:53:59PM +0300, Kirill A. Shutemov wrote: > If DEBUG_SPINLOCK and DEBUG_LOCK_ALLOC are enabled spinlock_t on x86_64 > is 72 bytes. For page->ptl they will be allocated from kmalloc-96 slab, > so we loose 24 on each. An average system can easily allocate few tens > thousands of page->ptl and overhead is significant. > > Let's create a separate slab for page->ptl allocation to solve this. Tested-by: Fengguang Wu In a 4p server, we noticed up to +469.1% increase in will-it-scale page_fault3 test case and +199.8% in vm-scalability case-shm-pread-seq-mt. 5c02216ce3110aab070d 5a58baaa0a1af0a43d7c ------------------------ ------------------------ 300409.00 +440.2% 1622770.80 TOTAL will-it-scale.page_fault3.90.threads 5c02216ce3110aab070d 5a58baaa0a1af0a43d7c ------------------------ ------------------------ 291257.80 +469.1% 1657582.20 TOTAL will-it-scale.page_fault3.120.threads ... 5c02216ce3110aab070d 5a58baaa0a1af0a43d7c ------------------------ ------------------------ 4034831.40 +199.8% 12095649.80 TOTAL vm-scalability.throughput Thanks, Fengguang -- 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