Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2226056rwd; Fri, 19 May 2023 02:46:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4J0C8ZtAVVa2dnS+jZdKn49Azsb/inW6YaHO/RdByUmE/i8XMMoVHrl1HILggCZmM7CX49 X-Received: by 2002:a17:902:d50e:b0:1ae:6720:8e01 with SMTP id b14-20020a170902d50e00b001ae67208e01mr2207920plg.20.1684489594418; Fri, 19 May 2023 02:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684489594; cv=none; d=google.com; s=arc-20160816; b=l9fqiwS7V+jiXDoD8m7165UNFISH0dUDm3kQ/ijIAdsDmpmWnDWvJkIUfpVf4zxFgf UsrBpuIgB8tPo5MMjxkApwXAUJXF5yYOP38p7atXSykwsNxkYLWiIhH6dmWuW2olQcf+ WJb8q8k93NU1SaAYQcfuQGaA8fnu1YWfI3MbpzVjDyciS+msODUgPGnJ9TKjMqnnvfnA alnTgtTYnVhmCnCpDAQXl49OP5vXvw3gxH8ScZ15l/5puv0cCStxEb451+KL8dLo1TD0 PgWCTa9r/qO5O4zZyeqZpdjtOxKrZruZqczJHm1K4q7jN++vqV+nj+LJRrt5H0CrOYdb hHwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=N3zJTPy7+Wv3Siu08/r/1ERvBUA7DhrvgCru8QrTFQ4=; b=ilp3/B2Dde966Yi26K5o2pHWJ2EuohlSlmQZp1XoIIUsqPSuOS6FRFGB01RQOeswzK 07l8fvxBqwLWtMnZa9BnzlFRpJMSM0W0jLCUd7OGZPOUDAJ61dtYp+sR5l0dLbNmnS4w uktNsm4jrAxQBrR6VLhJosXnJ+9pRkmFAwLvf85MjWZiY6iQ/3watMomPmbQG4DD1RSI Z4hZ7DABjiieTew0/MVhGRvBClA8HZeSnvxg5eHcMUgM1/EralLUHMLKm29+m9/dRk/8 qPQdcvdfENWxdSidoRp7M6UR/y/x2TIqHtQp42/5LZIfX2rvcdApck8eS19nyix61IaH tf2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SkkOooGe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a1709026b4100b001ac39348dabsi3273153plt.75.2023.05.19.02.46.12; Fri, 19 May 2023 02:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SkkOooGe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjESJp3 (ORCPT + 99 others); Fri, 19 May 2023 05:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbjESJpE (ORCPT ); Fri, 19 May 2023 05:45:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6930110FF for ; Fri, 19 May 2023 02:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684489220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N3zJTPy7+Wv3Siu08/r/1ERvBUA7DhrvgCru8QrTFQ4=; b=SkkOooGeAM6JktKvq63qZB8NfLRpmteD/ud/iFQZ7nl9ZUCYEMfwORjZDvLi7pEFeeO36P La1sTvd7biavmaPS0AvUDuxqKB9iL7o4k/ZNqgCLiq1J6Cy8J1eRJjVkssr1DBinbgwAC5 iuLjgKeXuVkWk63qZno06UN3KsZPDt4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-550-2jnMJFdFOTWEH4gdEkMiMA-1; Fri, 19 May 2023 05:40:14 -0400 X-MC-Unique: 2jnMJFdFOTWEH4gdEkMiMA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 581028002BF; Fri, 19 May 2023 09:40:14 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7700A140E954; Fri, 19 May 2023 09:40:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: To: Chris Chilvers Cc: dhowells@redhat.com, linux-nfs@vger.kernel.org, linux-cachefs@redhat.com, brennandoyle@google.com, Benjamin Maynard Subject: Re: [Linux-cachefs] [BUG] fscache writing but not reading MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1744184.1684489212.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Fri, 19 May 2023 10:40:12 +0100 Message-ID: <1744185.1684489212@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Chris Chilvers wrote: > While testing the fscache performance fixes [1] that were merged into 6.= 4-rc1 > it appears that the caching no longer works. The client will write to th= e cache > but never reads. Can you try reading from afs? You would need to enable CONFIG_AFS_FS in y= our kernel if it's not already set. Install kafs-client and do: systemctl enable afs.mount md5sum /afs/openafs.org/software/openafs/1.9.1/openafs-1.9.1-doc.tar.bz2 cat /proc/fs/fscache/stats umount /afs/openafs.org md5sum /afs/openafs.org/software/openafs/1.9.1/openafs-1.9.1-doc.tar.bz2 cat /proc/fs/fscache/stats David