Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp275325pxb; Wed, 22 Sep 2021 01:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMv4UyfJl+SShWsm2o6p93RBGaceCmhHU88bD4g1wsEYpaSvQKMTGfaHjh2SIJvuDox/l4 X-Received: by 2002:a92:c145:: with SMTP id b5mr23723463ilh.203.1632300296664; Wed, 22 Sep 2021 01:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632300296; cv=none; d=google.com; s=arc-20160816; b=xeC8PZQvET4kW0sgzJOqmDHGhrC0szF5JUCH5DUEjAsahOZ3L/wSsGn6Z8orsZfIts t6EXvfACmeJSUpOYYFDfxp6kh3Te10QJBtID49WtN8qvFpmJ9y2PAM6exoBSpYo638U8 vOBvHgGeh48JayK9bg9odPH8cdQdPvq0sGZLYyNyf63+e5YylYrQyH0CZNR2MToqXBou e01/Q/FXVQ9J0mcPgT4D/pk+pe5NL/lk+hhgIIsRC83839UuCHnC/icpITQF0NpEngSB jS1kOBAmIkXLvX82TIQGn3GpKHyLUNz586a80NKH4RATC846aBaST/eW65DpSyl27XeI egoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XmQZRX5nH/aSc2qgcH9h0gJmfHFcVPGaDn2IbC0DflY=; b=EuLy5GpC9+Sc7ETgnZKnom2v1kiBMjRlw+vOvqR7tYp4+TYGCfSflphmYt7Lt3l0Wr suKhVlbRWAny+uVrJaxEOzHfbFIopz7vwBvuEXs3JA/LbNzqU29HJK2RiKXUs1vkjvCx oF7fHUQNgRIKwri/VxBdoboumd9n5+U6pt6cy1/pbr3CDy/spscmrRdGXXllR+QGD+Oe fNWnITZPZ5U+cOz7GPoe/53xeMfg8EGaFrEiPSTQ3pZZsDo4w35Tq3jqwYmu7n3tSOf/ tG035r57npiv+T1cWilb7xEVDbq8XK1sNBaIo6H1gd9f9QrWjDPfmRpe37jRZw4iK9V4 WwiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CM4M2XN1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si1854190ilh.66.2021.09.22.01.44.45; Wed, 22 Sep 2021 01:44:56 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CM4M2XN1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbhIVIpQ (ORCPT + 99 others); Wed, 22 Sep 2021 04:45:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233349AbhIVIpP (ORCPT ); Wed, 22 Sep 2021 04:45:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BCE46128E; Wed, 22 Sep 2021 08:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632300225; bh=wIX4Nyvh3NhY3C+0A3fE0uyB9IBDeFSOm7OFmITz9tI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CM4M2XN10RksxBCCApODxtQ2IPRq2c/vxmCmZV3YOE/940DtSnIcLvyKBKPrf6h5S WMGmmNVyRc3N743l6mHHMjdXZ1q5CFPbtTdR8a6nilWKjCj8QELFY3fFO8E7VDd/A4 hmThC2566Pbe7I0An0kwPdtYEjjw1ehdvW0+WyWY= Date: Wed, 22 Sep 2021 10:43:42 +0200 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , linux-kernel@vger.kernel.org, Jonathan Corbet , Anton Vorontsov , Colin Cross , John Fastabend , KP Singh , Kees Cook , Martin KaFai Lau , Song Liu , Tony Luck , Yonghong Song , bpf@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3 0/7] get_abi.pl: Check for missing symbols at the ABI specs Message-ID: References: <20210921201633.5e6128a0@coco.lan> <20210922093609.34d7bbca@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 10:11:02AM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 22, 2021 at 09:36:09AM +0200, Mauro Carvalho Chehab wrote: > > It sounds it took quite a while handling iommu cap, which sounds weird, as > > it should be looking just 3 What expressions: > > > > [07:43:06] What: /sys/class/iommu/.*/amd\-iommu/cap > > [07:43:06] What: /sys/class/iommu/.*/intel\-iommu/cap > > [07:43:06] What: /sys/devices/pci.*.*.*.*\:.*.*/0000\:.*.*\:.*.*..*/dma/dma.*chan.*/quickdata/cap > > > > Maybe there was a memory starvation while running the script, causing > > swaps. Still, it is weird that it would happen there, as the hashes > > and arrays used at the script are all allocated before it starts the > > search logic. Here, the allocation part takes ~2 seconds. > > No memory starvation here, this thing is a beast: > $ free -h > total used free shared buff/cache available > Mem: 251Gi 36Gi 13Gi 402Mi 202Gi 212Gi > Swap: 4.0Gi 182Mi 3.8Gi > > $ nproc > 64 > > > > At least on my Dell Precision 5820 (12 cpu threads), the amount of memory it > > uses is not huge: > > > > $ /usr/bin/time -v ./scripts/get_abi.pl undefined >/dev/null > > Command being timed: "./scripts/get_abi.pl undefined" > > User time (seconds): 12.68 > > System time (seconds): 1.29 > > Percent of CPU this job got: 99% > > Elapsed (wall clock) time (h:mm:ss or m:ss): 0:13.98 > > Average shared text size (kbytes): 0 > > Average unshared data size (kbytes): 0 > > Average stack size (kbytes): 0 > > Average total size (kbytes): 0 > > Maximum resident set size (kbytes): 212608 > > Average resident set size (kbytes): 0 > > Major (requiring I/O) page faults: 0 > > Minor (reclaiming a frame) page faults: 52003 > > Voluntary context switches: 1 > > Involuntary context switches: 56 > > Swaps: 0 > > File system inputs: 0 > > File system outputs: 0 > > Socket messages sent: 0 > > Socket messages received: 0 > > Signals delivered: 0 > > Page size (bytes): 4096 > > Exit status: 0 > > > > Unfortunately, I don't have any amd-based machine here, but I'll > > try to run it later on a big arm server and see how it behaves. > > I'll run that and get back to you in 30 minutes :) $ /usr/bin/time -v ./scripts/get_abi.pl undefined > /dev/null Command being timed: "./scripts/get_abi.pl undefined" User time (seconds): 1756.94 System time (seconds): 0.76 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 29:18.94 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 228116 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 Minor (reclaiming a frame) page faults: 55862 Voluntary context switches: 1 Involuntary context switches: 17205 Swaps: 0 File system inputs: 0 File system outputs: 0 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0