From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Xen 4.3 + tmem = Xen BUG at domain_page.c:143 Date: Wed, 12 Jun 2013 18:26:44 +0100 Message-ID: References: <51B8B46A02000078000DDAAF@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51B8B46A02000078000DDAAF@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: George Dunlap , Konrad Rzeszutek Wilk , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 12/06/2013 16:48, "Jan Beulich" wrote: >> Why are we so tight on MAPCACHE_VCPU_ENTRIES? Why not say double that number >> and get rid of the accum and the 'replace a hash entry instead' logic >> instead? We never used to have it, and it's kind of extra complication and a >> bit gross. > > First of all, doubling the entries is not an argument for dropping > that code - the old 32-bit implementation really would have > needed this too from a theoretical perspective: The number of > readily available (garbage) entries is bounded by > MAPCACHE_VCPU_ENTRIES - MAPHASH_ENTRIES (because the > hash entries actively block getting treated as garbage). So? We have control over both MAPCACHE_VCPU_ENTRUES and MAPHASH_ENTRIES. We can make these somewhat arbitrary constants big