From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27505 invoked from network); 17 Nov 2021 11:15:24 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 17 Nov 2021 11:15:24 -0000 Received: from oat.nine.sirjofri.de ([5.45.105.127]) by 4ess; Wed Nov 17 05:50:09 -0500 2021 Received: from sirjofri.de ([95.90.218.112]) by oat; Wed Nov 17 11:31:51 +0100 2021 Date: Wed, 17 Nov 2021 10:31:50 +0000 (UTC) From: sirjofri To: hiro <9front@9front.org> Message-ID: <05860f2f-c72d-442b-9fe8-7c4360f2f06b@sirjofri.de> In-Reply-To: References: <98f90ae5-7ae7-4277-a6ca-12c6d7532371@pixelhero.dev> <78C6E67A-62A4-4F5E-B79E-6EF33F2A62B4@quintile.net> <3f20b0e4-7893-4507-a512-9faa9b880e80@sirjofri.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Correlation-ID: <05860f2f-c72d-442b-9fe8-7c4360f2f06b@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: database base-oriented full-stack solution Subject: Re: [9front] cfs, aan and network recommendations Reply-To: 9front@9front.org Precedence: bulk 17.11.2021 10:45:00 hiro <23hiro@gmail.com>: > i *assumed* that the version would be a local copy! The version itself is the local copy, saved on the cache partition. Cfs uses the qid.version field to determine if the version is outdated or not. So it still needs to ask the server for the version of the file. If it's out of date, it fetches the new version and responds with data from that. If the qid.version didn't change, it answers with the data from the file directly. That's why latency is important. However, when reading static files like pdfs and images (big filesize to protocol ratio) it's really a benefit. Imagine a process with many big files where only few of them change, and the result of the process is quite small and written back to the file server, cfs should be quite good. Only those few changed files have to be transferred while the other big files remain the same on the cfs cache partition. The process does it magic calculation based on the cached data, and writes the small artifact back to the (original) server. sirjofri