Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761989AbXHFI2m (ORCPT ); Mon, 6 Aug 2007 04:28:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758480AbXHFI2b (ORCPT ); Mon, 6 Aug 2007 04:28:31 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:51028 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755778AbXHFI23 (ORCPT ); Mon, 6 Aug 2007 04:28:29 -0400 Date: Mon, 6 Aug 2007 12:28:12 +0400 From: Evgeniy Polyakov To: Daniel Phillips Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: Distributed storage. Message-ID: <20070806082812.GC21909@2ka.mipt.ru> References: <20070731171347.GA14267@2ka.mipt.ru> <200708050106.58383.phillips@phunq.net> <20070805150154.GA32132@2ka.mipt.ru> <200708051435.04542.phillips@phunq.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708051435.04542.phillips@phunq.net> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 32 On Sun, Aug 05, 2007 at 02:35:04PM -0700, Daniel Phillips (phillips@phunq.net) wrote: > On Sunday 05 August 2007 08:01, Evgeniy Polyakov wrote: > > On Sun, Aug 05, 2007 at 01:06:58AM -0700, Daniel Phillips wrote: > > > > DST original code worked as device mapper plugin too, but its two > > > > additional allocations (io and clone) per block request ended up > > > > for me as a show stopper. > > > > > > Ah, sorry, I misread. A show stopper in terms of efficiency, or in > > > terms of deadlock? > > > > At least as in terms of efficiency. Device mapper lives in happy > > world where memory does not end and allocations are fast. > > Are you saying that things are different for a network block device > because it needs to do GFP_ATOMIC allocations? If so then that is just > a misunderstanding. The global page reserve Peter and I use is > available in interrupt context just like GFP_ATOMIC. No, neither device needs atomic allocations, I just said that device mapper is too expensive, since it performs alot of additional allocations in the fast path and is not designed to cases when allocation fails, since there is no recovery path and (maybe because of this) mempool allocation waits forever until there is free memory and can not fail. -- Evgeniy Polyakov - 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/