Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp350455pxb; Wed, 14 Apr 2021 17:30:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa3jSrRNqq0VPK+1hQ4UbtocjhFzXVnXqygkJN6qKqNSm65c8EnBGFOu9oObiLGIBT1jVA X-Received: by 2002:aa7:da0e:: with SMTP id r14mr893731eds.375.1618446659106; Wed, 14 Apr 2021 17:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446659; cv=none; d=google.com; s=arc-20160816; b=DSTXxQcGccEpyCdqZKbdihmECMwh5osNiV1BFV6TY6IZC1hply1Un4Hi6vzlwBKrZG kihfGA6van0zuXMBrUEzE1AkR4dEu/CuUOGELFIcOh/OqxDtqIfb88pjyJaGqAqeKv7h 1+VZffMSjGb6t6ypAiWaejiQ1AF+UCrNqDWEAICvudJ3EjK4bHAYFi+oZgv0ZcQ+r9/7 WzsMiCapr8id+WU6j7FVyDhDKRrOuiBpYib9uv+I5lSHlLy/RXAsKTuSFdBvw4RkRJph FnjRJoZ1dRBkDgqMs/XPxuMkSxLsRQj0mQUgXdufbToEMVvOCFIO1/s5J58xAdwIIJTr 3CZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Kc9k5gupz5vf/woTLu7icz7C1rX2SxUxpkhpz7lTNpo=; b=SsaSzAug5dEVSNrGoQie0wcD1QlY1iYj6Rf/BLJ6DlXrycwsHkiNsw0ztwrVlxCLjC 7i1WD/nxXMeec3TfneNMpNtlIOlZGJ6Tu4HgW80o4qnAyX8aiOxVy9+oN2sI/v2Y/8N6 Xx9F9T7CnbFw+OUPWx6zlTGCy7iskjMdXMXQg6g8+nO+35H0YoWJu2ZWf6dkDx6wLXoI 9UNfiqhTvg2d1ssEp4zRuw9E6xL7NYNnjtTwo8nDCy3nPIi8hfWttgflFD5UagsQOTtq A9sZl2lDpvzb9Lt3YzhjdiP/Wu3z939wVfeY8l2zC11pCIKdOpgQBPjYVJ0mVAdGoEQB b00Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si705478ejs.731.2021.04.14.17.30.36; Wed, 14 Apr 2021 17:30:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233693AbhDNOLN (ORCPT + 99 others); Wed, 14 Apr 2021 10:11:13 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3083 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232228AbhDNOLM (ORCPT ); Wed, 14 Apr 2021 10:11:12 -0400 Received: from dggeml406-hub.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FL46P3N9YzWWnf; Wed, 14 Apr 2021 22:07:09 +0800 (CST) Received: from dggpeml100013.china.huawei.com (7.185.36.238) by dggeml406-hub.china.huawei.com (10.3.17.50) with Microsoft SMTP Server (TLS) id 14.3.498.0; Wed, 14 Apr 2021 22:10:47 +0800 Received: from [10.174.187.161] (10.174.187.161) by dggpeml100013.china.huawei.com (7.185.36.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Wed, 14 Apr 2021 22:10:47 +0800 Subject: Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers To: Andi Kleen References: <20210329054137.120994-2-like.xu@linux.intel.com> <606BD46F.7050903@huawei.com> <18597e2b-3719-8d0d-9043-e9dbe39496a2@intel.com> <60701165.3060000@huawei.com> <1ba15937-ee3d-157a-e891-981fed8b414d@linux.intel.com> <60742E82.5010607@huawei.com> <20210412152511.igvdfilnuv6ed6hi@two.firstfloor.org> CC: Like Xu , "Fangyi (Eric)" , Xiexiangyou , , , , , , "Xu, Like" From: Liuxiangdong Message-ID: <6076F7E7.5080200@huawei.com> Date: Wed, 14 Apr 2021 22:10:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20210412152511.igvdfilnuv6ed6hi@two.firstfloor.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.187.161] X-ClientProxiedBy: dggeme710-chm.china.huawei.com (10.1.199.106) To dggpeml100013.china.huawei.com (7.185.36.238) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/4/12 23:25, Andi Kleen wrote: >> The reason why soft lockup happens may be the unmapped EPT pages. So, do we >> have a way to map all gpa >> before we use pebs on Skylake? > Can you configure a VT-d device, that will implicitly pin all pages for the > IOMMU. I *think* that should be enough for testing. > > -Andi Thanks! But, it doesn't seem to work because host still soft lockup when I configure a SR-IOV direct network card for vm. Besides, I have tried to configure 1G-hugepages for 2G-mem vm. Each of guest numa nodes has 1G mem. When I use pebs (perf record -e cycles:pp) in guest, there are successful pebs samples on skylake just for a while and then I cannot get pebs sample. Host doesn't soft lockup in this process. Is this method effective? Are there something wrong on skylake for we can only get a few samples ? Maybe IRQ?