From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 051043850841 for ; Fri, 3 Jun 2022 14:49:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 051043850841 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id CA6C6301FE82; Fri, 3 Jun 2022 16:49:04 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 2D1424001027; Fri, 3 Jun 2022 16:49:04 +0200 (CEST) Message-ID: Subject: Re: [Bug debuginfod/28577] Make run-...-fd-prefetch-caches.sh test something From: Mark Wielaard To: Noah Sanci Cc: elfutils-devel@sourceware.org Date: Fri, 03 Jun 2022 16:49:04 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_BADIPHTTP, KAM_DMARC_STATUS, KAM_SHORT, NUMERIC_HTTP_ADDR, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2022 14:49:08 -0000 Hi Noah, On Mon, 2022-05-30 at 17:36 +0200, Mark Wielaard wrote: > > Please find the new patch attached. >=20 > Thanks for adding all the comments. Looks good. The only issue is that although it seems to work well on Fedora I am having problems getting to test to work on an older CentOS 7 install. It always seems to fail at this point: export DEBUGINFOD_URLS=3Dhttp://127.0.0.1:$PORT1/ # load prefetch cache with debuginfod-tars/usr/src/debug/hello.c testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo cee13b2ea= 505a7f37bd20d271c6bc7e5f8d2dfcb metrics=3D$(curl http://127.0.0.1:$PORT1/metrics) regex=3D"fdcache_prefetch_count ([0-9])+" # Check to see if prefetch cache is maximally loaded. Note fdcache-prefetc= h (2) > prefetch-fds (1), # so the debuginfod will try to load the prefetch cache with 2 files. We wa= nt prefetch-fds to cap that # off if [[ $metrics =3D~ $regex ]]; then if [[ ${BASH_REMATCH[1]} -ne $PREFETCH_FDS ]]; then err fi else err fi Because I am getting: ++ curl http://127.0.0.1:8819/metrics % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left=20 Speed ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: --:-- 0^M100 5793 100 5793 0 0 7532k 0 --:--:-- -- :--:-- --:--:-- 5657k + metrics=3D'fdcache_bytes 0 fdcache_count 0 fdcache_op_count{op=3D"emerg-flush"} 3 fdcache_op_count{op=3D"enqueue"} 1 fdcache_op_count{op=3D"evict"} 1 fdcache_op_count{op=3D"prefetch_enqueue"} 1 fdcache_op_count{op=3D"prefetch_evict"} 1 fdcache_op_count{op=3D"probe_miss"} 2 fdcache_prefetch_bytes 0 fdcache_prefetch_count 0 [...] So no bytes are prefetched at all. I am not sure why this is happening. Do you see any obvious issue that would explain this happening on centos7? Thanks, Mark