Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466AbYFOE2U (ORCPT ); Sun, 15 Jun 2008 00:28:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750847AbYFOE16 (ORCPT ); Sun, 15 Jun 2008 00:27:58 -0400 Received: from cobra.newdream.net ([66.33.216.30]:40902 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbYFOE14 (ORCPT ); Sun, 15 Jun 2008 00:27:56 -0400 Date: Sat, 14 Jun 2008 21:27:55 -0700 (PDT) From: Sage Weil To: Evgeniy Polyakov Cc: Jamie Lokier , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [2/3] POHMELFS: Documentation. In-Reply-To: <20080614065616.GA32585@2ka.mipt.ru> Message-ID: References: <20080613163700.GA25860@2ka.mipt.ru> <20080613164110.GB26166@2ka.mipt.ru> <20080614021547.GC32232@shareable.org> <20080614065616.GA32585@2ka.mipt.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3230 Lines: 65 Hi Evgeniy, On Sat, 14 Jun 2008, Evgeniy Polyakov wrote: > > That sounds great, but what do you mean by 'novel'? Don't other > > modern network filesystems use asynchronous requests and replies in > > some form? It seems like the obvious thing. > > Maybe it was a bit naive though :) > But I checked lots of implementation, all of them use send()/recv() > approach. NFSv4 uses a bit different, but it is a cryptic, and at least > from its names it is not clear: > like nfs_pagein_multi() -> nfs_pageio_complete() -> add_stats. Presumably > we add stats when we have data handy... > CIFS/SMB use synchronous approach. By synchronous/asynchronous, are you talking about whether writepages() blocks until the write is acked by the server? (Really, any FS that does writeback is writing asynchronously...) > >From those projects, which are not in kernel, like CRFS and CEPH, the > former uses async receiving thread, while the latter is synchronous, > but can select different servers for reading, more like NFSv4.1 leases. Well... Ceph writes synchronously (i.e. waits for ack in write()) only when write-sharing on a single file between multiple clients, when it is needed to preserve proper write ordering semantics. The rest of the time, it generates nice big writes via writepages(). The main performance issue is with small files... the fact that writepages() waits for an ack and is usually called from only a handful of threads limits overall throughput. If the writeback path was asynchronous as well that would definitely help (provided writeback is still appropriately throttled). Is that what you're doing in POHMELFS? > > > * Transactions support. Full failover for all operations. > > > Resending transactions to different servers on timeout or error. > > > > By transactions, do you mean an atomic set of writes/changes? > > Or do you trace read dependencies too? > > It covers all operations, including reading, directory listing, lookups, > attribite changes and so on. Its main goal is to allow transaparent > failover, so it has to be done for reading too. Your meaning of "transaction" confused me as well. It sounds like you just mean that the read/write operation is retried (asynchronously), and may be redirected at another server if need be. And that writes can be directed at multiple servers, waiting for an ack from both. Is that right? I my view the writeback metadata cache is definitely the most exciting part about this project. Is there a document that describes where the design ended up? I seem to remember a string of posts describing your experiements with client-side inode number assignment and how that is reconciled with the server. Keeping things consistent between clients is definitely the tricky part, although I suspect that even something with very coarse granularity (e.g., directory/subtree-based locking/leasing) will capture most of the performance benefits for most workloads. Cheers- sage -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/