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 92F1A3858D28 for ; Fri, 8 Apr 2022 22:21:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 92F1A3858D28 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 reform (deer0x0f.wildebeest.org [172.31.17.145]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 7425530008BD; Sat, 9 Apr 2022 00:21:09 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id 0AE902E80722; Sat, 9 Apr 2022 00:21:09 +0200 (CEST) Date: Sat, 9 Apr 2022 00:21:08 +0200 From: Mark Wielaard To: Milian Wolff Cc: Aaron Merey , elfutils-devel@sourceware.org Subject: Re: caching failed lookups of debuginfo? Message-ID: References: <4448277.fIUe8AKecr@milian-workstation> <19455068.ZVunK98tCv@milian-workstation> <2180828.1FMjDaRedj@milian-workstation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2180828.1FMjDaRedj@milian-workstation> X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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, 08 Apr 2022 22:21:12 -0000 Hi Milian, On Fri, Apr 08, 2022 at 11:56:15PM +0200, Milian Wolff wrote: > Which in turn points at the code that does cache cleanup in > `debuginfod_query_server`. I now used `rr` to record such a bogus run and I > clearly see that `(time(NULL) - st.st_mtime <= cache_miss)` is false and it > goes into the unlink case. > > I'll try to debug this further now - I definitely do not wait 600s inbetween > these runs here... I can replicate this on an debian system with /home on ext4. st_mtime doesn't seem to change ever. When the file is created the st_mtime seems to be in the past. So time(NULL) - st.st_mtime <= cache_miss is always false. I am not sure why yet. Cheers, Mark