Received: from eggs.gnu.org ([2001:4830:134:3::10]:60446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBkAj-0006hx-Bu for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:18:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBkAf-0004MR-9e for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:18:17 -0500 Received: from [2a01:4f8:140:52e5::2] (port=41215 helo=latin.grep.be) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBkAf-0004Ly-3O for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:18:13 -0500 Date: Tue, 29 Nov 2016 16:17:31 +0100 From: Wouter Verhelst Message-ID: <20161129151731.bigh2lu2fyxdca5y@grep.be> References: <1480073296-6931-1-git-send-email-vsementsov@virtuozzo.com> <11F2E6BC-D538-466B-9D80-541D146EF2A0@alex.org.uk> <6e26729f-26e2-5203-e849-514c2271f8b8@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6e26729f-26e2-5203-e849-514c2271f8b8@virtuozzo.com> Subject: Re: [Qemu-devel] [Nbd] [PATCH v3] doc: Add NBD_CMD_BLOCK_STATUS extension List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy Cc: Alex Bligh , "nbd-general@lists.sourceforge.net" , Kevin Wolf , "qemu-devel@nongnu.org" , mpa@pengutronix.de, Pavel Borzenkov , "Stefan stefanha@redhat. com" , "Denis V. Lunev" , Paolo Bonzini On Tue, Nov 29, 2016 at 06:07:56PM +0300, Vladimir Sementsov-Ogievskiy wrote: > 29.11.2016 17:52, Alex Bligh wrote: > > Vladimir, > >> if the bitmap is 010101010101 we will have too many descriptors. > >> For example, 16tb disk, 64k granularity -> 2G of descriptors > >> payload. > > Yep. And the cost of consuming and retrying is quite high. One > > option would be for the client to realise this is a possibility, and > > not request the entire extent map for a 16TB disk, as it might be > > very large! Even if the client worked at e.g. a 64MB level (where > > they'd get a maximum of 1024 extents per reply), this isn't going to > > noticeably increase the round trip timing. One issue here is that to > > determine a 'reasonable' size, the client needs to know the minimum > > length of any extent. > > and with this approach we will in turn have overhead of too many > requests for 00000000 or 11111111 bitmaps. This is why my proposal suggests the server may abort the sent extents after X extents (sixteen, but that number can certainly change) have been sent. After all, the server will have a better view on what's going to be costly in terms of "number of extents". > > I think the answer is probably a 'maximum number of extents' in the request packet. > > > > Of course with statuses in extent, the final extent could be > > represented as 'I don't know, break this bit into a separate > > request' status. > > > > With such predefined status, we can postpone creating extended requests, > have number of extents restricted by server and have sum of extents > lengths be equal to request length. -- < ron> I mean, the main *practical* problem with C++, is there's like a dozen people in the world who think they really understand all of its rules, and pretty much all of them are just lying to themselves too. -- #debian-devel, OFTC, 2016-02-12