From: Keir Fraser Subject: Re: xenstored misaccounting resource limits Date: Wed, 23 May 2007 09:20:59 +0100 Message-ID: References: <20070523024610.GA16190@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070523024610.GA16190@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon , xen-devel@lists.xensource.com Cc: max.zhen@sun.com List-Id: xen-devel@lists.xenproject.org On 23/5/07 03:46, "John Levon" wrote: > Currently xenstored does not account domain->nbentry when a transaction > is aborted (either intentionally or via EAGAIN). We hit this case when > adding a lot of disks to a domU: the limit is reached much earlier than > expected, as a number of clashing transactions cause incorrect inflation > of the value of ->nbentry. > > There's been a little discussion internally on the nicest way to fix > this. My current suggestion is along the lines of: The principle is clearly right, but domain_nbcount[] isn't a great idea since the domain-id space is 16 bits (even though we do tend to pack domain ids near zero where possible). Can we dynamically allocate the transaction counts, or assign guaranteed packed identifiers, or store the counts within the tdb file, or something like that? -- Keir