From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758143AbcC2XlN (ORCPT ); Tue, 29 Mar 2016 19:41:13 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:46787 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816AbcC2XlL (ORCPT ); Tue, 29 Mar 2016 19:41:11 -0400 Date: Tue, 29 Mar 2016 19:41:05 -0400 (EDT) Message-Id: <20160329.194105.2209941679960771383.davem@davemloft.net> To: nitin.m.gupta@oracle.com Cc: akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, khalid.aziz@oracle.com, minchan@kernel.org, aneesh.kumar@linux.vnet.ibm.com, zhenzhang.zhang@huawei.com, sfr@canb.auug.org.au, mingo@kernel.org, chris.hyser@oracle.com, dahi@linux.vnet.ibm.com, toshi.kani@hpe.com, tony.luck@intel.com, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] sparc64: Reduce TLB flushes during hugepte changes From: David Miller In-Reply-To: <1459285913-141365-1-git-send-email-nitin.m.gupta@oracle.com> References: <1459285913-141365-1-git-send-email-nitin.m.gupta@oracle.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 29 Mar 2016 16:41:10 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nitin Gupta Date: Tue, 29 Mar 2016 14:11:14 -0700 > During hugepage map/unmap, TSB and TLB flushes are currently > issued at every PAGE_SIZE'd boundary which is unnecessary. > We now issue the flush at REAL_HPAGE_SIZE boundaries only. > > Without this patch workloads which unmap a large hugepage > backed VMA region get CPU lockups due to excessive TLB > flush calls. > > Orabug: 22365539, 22643230, 22995196 > > Signed-off-by: Nitin Gupta You really need to put some more work into this, there are lots of config variants you didn't even test. See the kbuild robot replies...