Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S972423AbXHMNEt (ORCPT ); Mon, 13 Aug 2007 09:04:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966112AbXHMIPX (ORCPT ); Mon, 13 Aug 2007 04:15:23 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:42789 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967511AbXHMIPR (ORCPT ); Mon, 13 Aug 2007 04:15:17 -0400 Date: Mon, 13 Aug 2007 12:14:41 +0400 From: Evgeniy Polyakov To: Daniel Phillips Cc: Jens Axboe , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Peter Zijlstra Subject: Re: Block device throttling [Re: Distributed storage.] Message-ID: <20070813081441.GA30089@2ka.mipt.ru> References: <20070731171347.GA14267@2ka.mipt.ru> <20070808095448.GA3440@2ka.mipt.ru> <200708122236.24096.phillips@phunq.net> <200708122344.00343.phillips@phunq.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708122344.00343.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: 1085 Lines: 26 On Sun, Aug 12, 2007 at 11:44:00PM -0700, Daniel Phillips (phillips@phunq.net) wrote: > On Sunday 12 August 2007 22:36, I wrote: > > Note! There are two more issues I forgot to mention earlier. > > Oops, and there is also: > > 3) The bio throttle, which is supposed to prevent deadlock, can itself > deadlock. Let me see if I can remember how it goes. > > * generic_make_request puts a bio in flight > * the bio gets past the throttle and initiates network IO > * net calls sk_alloc->alloc_pages->shrink_caches > * shrink_caches submits a bio recursively to our block device > * this bio blocks on the throttle > * net may never get the memory it needs, and we are wedged If system is in such condition, it is already broken - throttle limit must be lowered (next time) not to allow such situation. -- 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/