Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5092116pxb; Tue, 28 Sep 2021 10:20:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4b+BHSK66ofjWX2Md07oLJ1EgfAvqLsctfNoo9LXrrl34Fy6MFhb/luQu1DAsg1ZuvPmM X-Received: by 2002:a17:90b:14d6:: with SMTP id jz22mr1096571pjb.61.1632849635304; Tue, 28 Sep 2021 10:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632849635; cv=none; d=google.com; s=arc-20160816; b=ItAQ//awPI34/bnik7Nnjk9Xap8qXSV+KbT5iCUDuwmFfueI9i5uZzb595/eVgj9ov 7sM1P8EAT/i6xpTxnPWDHiHXfQYde3EUV+j7h4RdFYMVnaE89DKpvozb4BfFM4QCtIml z5StrzwxB+WID5ZzFxN/y2vCFRRh7haei1XhnlCB+zX7HsnfmaL72dpgnbhi7k7+9SKB gFxZzf2jxOAkr1T8e9Qmv6pA45YcJlj/gmosR2nW271AJYfOHanYJOcvRKcCEYF5K6BF DlYzmjH46UZ1h/JaDuy8rM565RbTbpqkGeSY4l8YmqcrSV/Ym7A8/rjJ0uk6aI6LZRbh 5aVg== 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=q4hYxUeS7FfwF3NoBKL4J/K/5jAiISDuJkRcwopJ70k=; b=yQ2Geg1lwrQpVO8VO6JmaE3qwpzh/DkiL0Kt5AiDGwbMpO3JWjMiO4Vy8bLWCaY0s4 guIJTziEc56y6fQTHJ2GE0wAqqzxmqwjMSMkp45KRXcPJCfOxaN+K4nrFSqrgTNooa7h CUdXO8SjaXSl6AdJAfFc1lWnKjGrn0/xeu5UK/+Z2pDZCXGDi/QFEtPxkylI8pE/kXWp Qhf4TYylBvem+TogC/KPMZpizwBj4jsICiEZa4nWDe8nxD83cZLFTUQSHAi2UVsA39pF y5TZ4mNJNXzwlu0ws4IwMnysZKn14PQOMAXn9Y44Xwq+/ZNp4Rj6mH4AEXENkecJ8NvD dAxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FyVVuMMU; 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 mi1si5144375pjb.185.2021.09.28.10.20.19; Tue, 28 Sep 2021 10:20:35 -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=FyVVuMMU; 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 S242004AbhI1RVE (ORCPT + 99 others); Tue, 28 Sep 2021 13:21:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:54262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241944AbhI1RVD (ORCPT ); Tue, 28 Sep 2021 13:21:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B27336128B; Tue, 28 Sep 2021 17:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632849564; bh=DhJnlcf2PJ4wfNINiTaX892A9f1YLWCQtWU26+osXfQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FyVVuMMUe57i8uX7kgT0NopzDD13mMg/l6OZyiv3TbAo8Qx7Qu4Ksq5N+fSvaTowF iWHD5xXw9sx9Axe7UM65Rvw1Bsjpvh8BOAz5Av9TlscvtehpzDG8CkuRE8UOoBQd5f YykwFw8bzqQpdOBumjGn/l/CKbKB0HSLzpsP4yso= Date: Tue, 28 Sep 2021 19:19:22 +0200 From: Greg Kroah-Hartman To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH 0/3] get_abi: improve message output and fix a regression Message-ID: References: <20210928142739.2ffe380b@coco.lan> <20210928154353.2e6656bb@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210928154353.2e6656bb@coco.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 03:43:53PM +0200, Mauro Carvalho Chehab wrote: > Em Tue, 28 Sep 2021 14:27:39 +0200 > Mauro Carvalho Chehab escreveu: > > > Em Tue, 28 Sep 2021 13:04:22 +0200 > > Greg Kroah-Hartman escreveu: > > > > > On Tue, Sep 28, 2021 at 12:14:01PM +0200, Mauro Carvalho Chehab wrote: > > > > Hi Greg, > > > > > > > > As promised on > > > > > > > > https://lore.kernel.org/lkml/20210928120304.62319fba@coco.lan/T/#u > > > > > > > > I'm adding progress info when get_abi.pl is checking for undefined ABI symbols > > > > on patches 1 and 2. > > > > > > > > That will help not only to identify what is causing delays on the script, but also > > > > to notify the user that processing it could take some time on some systems. > > > > > > > > If you run it on your big server with: > > > > > > > > scripts/get_abi.pl undefined 2>logs > > > > > > > > The "logs" file will contain timestamps relative to the time the script started to > > > > do the regex matches for sysfs files. It should be printing one line every > > > > time the progress completes 1% or one second after the last progress output. > > > > > > Adding more debugging and tweaking the script a bit to show the file it > > > is about to check, not the one it finished checking, > > > > Feel free to modify the script and add such debug/tweaks if you find > > it useful. > > > > > I got the following > > > debug output that seems to pinpoint the problem file. > > > > > > The sysfs file that is causing problems is: > > > /sys/devices/pci0000:40/0000:40:00.2/iommu/ivhd1/amd-iommu/cap > > > > > > > Btw, I just got an arm64 server with 128 CPUs for testing. I'm trying > > to allocate also a big x86 server here, but I'm not sure if it is AMD or > > Intel. > > Some tests on a Gigabyte R182-Z91-00 server, equipped with AMD EPYC 7352 > 24-Core Processors (total 96 threads): > > $ find /sys |wc -l > 233981 > > $ time ./scripts/get_abi.pl undefined >undefined 2>logs > > real 0m38.917s > user 0m34.554s > sys 0m4.292s > > PS.: this machine doesn't have anything at /sys/class/iommu. > > On a Huawei TaiShan 200 (Model 2280) with 128 ARM cores: > > $ find /sys |wc -l > 99362 > $ time ./scripts/get_abi.pl undefined >undefined 2>logs > > real 0m29.311s > user 0m26.173s > sys 0m3.061s > > Both machines are using Perl 5.26. Try it with your sorting patch, that fixed it for me and now it runs in 10 seconds. crazy.