Received: by 10.192.165.148 with SMTP id m20csp719558imm; Wed, 2 May 2018 07:45:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpG7rtAbjAUlmcaiNF4l8e/X/jPZZjjq4v5zJWJHUtNVIt2cHRen8eSIQqY2aY6ytmCLaWI X-Received: by 2002:a65:5bcc:: with SMTP id o12-v6mr15915249pgr.81.1525272358988; Wed, 02 May 2018 07:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525272358; cv=none; d=google.com; s=arc-20160816; b=e99tW6Rx971rvUhzNDSTz1wtnnEMZgRkDR+Vdl9c8VYN4xZyNQQtDbjaUs8VkUZsJO bJ1jtIk5+HiyJykIn04CTUAsoP9NtR9/QYNK0IEvOEIgJiCDkeLvNzeZSAL13PydTA/w bmfh1Oa6DhD3AwtiXHsuSYS30ZwIXsHlTp/p6Cgn+BaBZ68ZxdIPptNiMKm15sC0Jl+m 9P70gC+JevglzS9522A44kdiEFuJJTHGsNutrikfRbx92mbyc40+GXY3ioOcVxATKtng IRh9mu676SnHhyaQLmpJsuqMRvOxLuIqku6hPu+wi6IkojgLxEIceXfSz+O5bjGX97pw IODA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=HEWvB2oHRGfdMD6hPEikqE7I8UJqyLgBosWc7fL62Ek=; b=0Jr73L0Yw192Gz0xeD1phzehEha4/NGoLDLbmLSwIfRrETwBvoJxX1mj2m00IfDKZe 8cNfRS0A8x/58Cp59BTtMWoNSsRrMjFAEp3wDUKkQdBsRbytFwWfYWWCkOjKPYE08h0n SKwJunM8Zj3V6X4DyWgOidlAmfUsM1yXwATNtFuKWZv0iC1hsDwMSnEb/Az8BmW3q9ve wlIp7oRN0EJQbnSA9uzl+sk0L6viCkt/xAMGWdi7kMDY8C5ryAW7IDXaCwHUQU7HcoNM l6AnkCZYFwpiIWjggO8o0ZBn+4HprEar/QW+NeML5ZjPorBwW0fj+IJjDI64pzt29LJf a76w== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19-v6si1060832plr.13.2018.05.02.07.45.44; Wed, 02 May 2018 07:45:58 -0700 (PDT) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408AbeEBOpg (ORCPT + 99 others); Wed, 2 May 2018 10:45:36 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39316 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbeEBOpd (ORCPT ); Wed, 2 May 2018 10:45:33 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w42Egi3Q029457 for ; Wed, 2 May 2018 10:45:33 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hqchcrpmh-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 02 May 2018 10:45:32 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 May 2018 15:45:30 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 2 May 2018 15:45:23 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w42EjMw951183714; Wed, 2 May 2018 14:45:22 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 455E04203F; Wed, 2 May 2018 15:36:34 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B2C442054; Wed, 2 May 2018 15:36:32 +0100 (BST) Received: from [9.145.16.142] (unknown [9.145.16.142]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 2 May 2018 15:36:31 +0100 (BST) Subject: Re: [PATCH v10 00/25] Speculative page faults To: Punit Agrawal Cc: akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org References: <1523975611-15978-1-git-send-email-ldufour@linux.vnet.ibm.com> <87bmdynnv4.fsf@e105922-lin.cambridge.arm.com> From: Laurent Dufour Date: Wed, 2 May 2018 16:45:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <87bmdynnv4.fsf@e105922-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18050214-0040-0000-0000-000004542C54 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050214-0041-0000-0000-000020F84D4E Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805020121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/2018 16:17, Punit Agrawal wrote: > Hi Laurent, > > One query below - > > Laurent Dufour writes: > > [...] > >> >> Ebizzy: >> ------- >> The test is counting the number of records per second it can manage, the >> higher is the best. I run it like this 'ebizzy -mTRp'. To get consistent >> result I repeated the test 100 times and measure the average result. The >> number is the record processes per second, the higher is the best. >> >> BASE SPF delta >> 16 CPUs x86 VM 12405.52 91104.52 634.39% >> 80 CPUs P8 node 37880.01 76201.05 101.16% > > How do you measure the number of records processed? Is there a specific > version of ebizzy that reports this? I couldn't find a way to get this > information with the ebizzy that's included in ltp. I'm using the original one : http://ebizzy.sourceforge.net/ > >> >> Here are the performance counter read during a run on a 16 CPUs x86 VM: >> Performance counter stats for './ebizzy -mRTp': >> 860074 faults >> 856866 spf >> 285 pagefault:spf_pte_lock >> 1506 pagefault:spf_vma_changed >> 0 pagefault:spf_vma_noanon >> 73 pagefault:spf_vma_notsup >> 0 pagefault:spf_vma_access >> 0 pagefault:spf_pmd_changed >> >> And the ones captured during a run on a 80 CPUs Power node: >> Performance counter stats for './ebizzy -mRTp': >> 722695 faults >> 699402 spf >> 16048 pagefault:spf_pte_lock >> 6838 pagefault:spf_vma_changed >> 0 pagefault:spf_vma_noanon >> 277 pagefault:spf_vma_notsup >> 0 pagefault:spf_vma_access >> 0 pagefault:spf_pmd_changed >> >> In ebizzy's case most of the page fault were handled in a speculative way, >> leading the ebizzy performance boost. > > A trial run showed increased fault handling when SPF is enabled on an > 8-core ARM64 system running 4.17-rc3. I am using a port of your x86 > patch to enable spf on arm64. > > SPF > --- > > Performance counter stats for './ebizzy -vvvmTRp': > > 1,322,736 faults > 1,299,241 software/config=11/ > > 10.005348034 seconds time elapsed > > No SPF > ----- > > Performance counter stats for './ebizzy -vvvmTRp': > > 708,916 faults > 0 software/config=11/ > > 10.005807432 seconds time elapsed Thanks for sharing these good numbers ! > Thanks, > Punit > > [...] >