Received: by 10.223.164.202 with SMTP id h10csp982300wrb; Tue, 7 Nov 2017 19:02:39 -0800 (PST) X-Google-Smtp-Source: ABhQp+Tf2jbr/d3DZV7AlHZ+mhXiSEJKLgEisn+5qZgZ0h8yWcdfwgCDP0r2n7Wb1ARqdJ6RkamX X-Received: by 10.159.204.148 with SMTP id t20mr778979plo.115.1510110159761; Tue, 07 Nov 2017 19:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510110159; cv=none; d=google.com; s=arc-20160816; b=UruFQgd1Qqnt7LXV9zzqzNTJx1IOdnR0wuua3rrcom7kJ/mo/2KUt+BjVG8wBNoos9 Te4Wgo2P32lMrl6YsAfIveGclz+3vSvLu2BkoAUjy/fCdCtOlVlIEg+41rnzqkNkQoXj 8+cx+N7Jp2sw7G3nY0wlsLw+MReIJ9xDmRPlKlO/Q+icoKUNW4kU6sw9WTXHbh1qgotJ 2rRCZZ9vXerizIdPbWBvsvJVxfO5EkCQRk0fp+uiCdaz6Yxu7ZhkH2fcY8kmAYyj024t BRqplh0V44g6jUcjoOZiFg2hLarWU6vfCe+GE0ei5+apfQab3NSY2YFrC6JySiGY+xuL 0XKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=EsziGMyKWnY1wh8af5xzAi86Ud/mpRfVTALwTi0p8lw=; b=r1VXklA/Wu/MsPbD6wS0rex6z/JB4ysEHnAm+KFcDAAjs9mctSTvbgFfWT+q9wax9O iS0w9zUocvIWZ8GRzjRBpdDslOiMZXeJlA26g1nsOA2NsOxLHwOdf0cMVHHiU21QPY+5 6JoeQqnc5r2VKxBeu2KDGI1tkZkhqp+MKkD+crPIaTeSgse6XLiRKOMTWpUEpR+WiAVO fO7vqAy1DXRmL0YP3qzrgwCpgnZ3KuTolGHRmhR6ZXyRdn4G/wrKajLnExzEK41FIIIa 5a0K7kPaS3q4u6QdKBXO1U9mr02o9PJzw9lumUo51fAT/y+ey0xyyBtEL3dfLkY0vB5/ 2tKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si2521287pgn.789.2017.11.07.19.02.27; Tue, 07 Nov 2017 19:02:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613AbdKGWNv (ORCPT + 90 others); Tue, 7 Nov 2017 17:13:51 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:47210 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756438AbdKGWNW (ORCPT ); Tue, 7 Nov 2017 17:13:22 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3853224E14F7; Tue, 7 Nov 2017 14:13:22 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 2A24A901; Tue, 7 Nov 2017 14:13:22 -0800 (PST) Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 214EF8FF; Tue, 7 Nov 2017 14:13:22 -0800 (PST) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 7 Nov 2017 14:13:22 -0800 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 8 Nov 2017 03:43:21 +0530 Received: from vineetg-Latitude-E7450.internal.synopsys.com (10.10.161.44) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 8 Nov 2017 03:43:20 +0530 From: Vineet Gupta To: CC: , Peter Zijlstra , Vineet Gupta Subject: [PATCH 3/4] ARC: perf: avoid vmalloc backed mmap Date: Tue, 7 Nov 2017 14:13:03 -0800 Message-ID: <1510092784-19942-4-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510092784-19942-1-git-send-email-vgupta@synopsys.com> References: <1510092784-19942-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.10.161.44] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For non-alising Dcache, vmalloc is not needed. vmalloc triggers additonal D-TLB Misses in the perf interrupt code path making it slightly inefficient as evident from hackbench runs below. | [ARCLinux]# perf stat -e dTLB-load-misses --repeat 5 hackbench | Running with 10*40 (== 400) tasks. | Time: 35.060 | ... | Performance counter stats for 'hackbench' (5 runs): Before: 399235 dTLB-load-misses ( +- 2.08% ) After : 397676 dTLB-load-misses ( +- 2.27% ) Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index c84e67fdea09..f3cad98eeb8f 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -39,7 +39,7 @@ config ARC select OF select OF_EARLY_FLATTREE select OF_RESERVED_MEM - select PERF_USE_VMALLOC + select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING select HAVE_DEBUG_STACKOVERFLOW select HAVE_GENERIC_DMA_COHERENT select HAVE_KERNEL_GZIP -- 2.7.4 From 1583066151251351051@xxx Fri Nov 03 17:18:49 +0000 2017 X-GM-THRID: 1583066151251351051 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread