WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] hg 0.7 released

To: Matt Mackall <mpm@xxxxxxxxxxx>
Subject: Re: [Xen-devel] hg 0.7 released
From: Kip Macy <kip.macy@xxxxxxxxx>
Date: Tue, 20 Sep 2005 18:19:57 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, mercurial@xxxxxxxxxxx, Hollis Blanchard <hollisb@xxxxxxxxxx>
Delivery-date: Wed, 21 Sep 2005 01:17:40 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=lRFLZ84yD0ljbsapK9ELQ4eJxk6fxP8El6UyF3kuemgbID6yuFbs+9Fx5QUy65NqtKkcimT6mEPxqqRq8u428s380P8IQcITMLQnbNbyLIEiS8syDlWqXEuDxY747qUp8tCTGB0YD750PcQ2r2i2dE8mzk+iKvvtoa5fzToHkT4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050921011435.GA21777@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <200509161628.35324.hollisb@xxxxxxxxxx> <b1fa29170509201807329d3156@xxxxxxxxxxxxxx> <20050921011435.GA21777@xxxxxxxxx>
Reply-to: kip.macy@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hmm -
What are you doing differently in 0.7 that is causing the server to use more memory?

      -Kip

On 9/20/05, Matt Mackall <mpm@xxxxxxxxxxx> wrote:
On Tue, Sep 20, 2005 at 06:07:34PM -0700, Kip Macy wrote:
> nifty - but 0.7 is not backward compatible with 0.6b:
> %hg clone http://xenbits.xensource.com/xen-unstable.hg
> requesting all changes
> adding changesets
> adding manifests
> adding file changes
> added 6917 changesets with 0 changes to 0 files
> ** unknown exception encountered, details follow
> ** report bug details to mercurial@xxxxxxxxxxx

Not so hasty. The bug is in fact that xenbits is sometimes running out
of memory. Other times it works just fine. Here are the relevant bits
from my diagnosis this morning:

----

And then I added exception handling to the pull code, so that it now
does this:

abort: premature EOF reading chunk (got 75478 bytes, expected
1651992944)!

That expected number says there's probably something else in the
stream. Firing up Ethereal and tracing a connection shows:

<!-- The above is a description of an error in a Python program,
formatted
     for a Web browser because the 'cgitb' module was enabled.  In
     case you
     are not reading this in a Web browser, here is the original
     traceback:

Traceback (most recent call last):
  File "/var/www/html/xen- unstable.hg", line 9, in ?
    h.run()
  File "/usr/local/hg-0.6c/lib/python/mercurial/hgweb.py", line 701,
  in run
    chunk = f.read(4096)
  File "/usr/local/hg-0.6c/lib/python/mercurial/hg.py", line 1442, in
  read
    self.buf += self.g.next()
  File "/usr/local/hg-0.6c/lib/python/mercurial/hg.py", line 1469, in
  gengroup
    for y in self.manifest.group(linkmap): yield y
  File "/usr/local/hg- 0.6c/lib/python/mercurial/revlog.py", line 433,
  in group
    chunks[r] = decompress(data[pos: pos + l])
  File "/usr/local/hg-0.6c/lib/python/mercurial/revlog.py", line 33,
  in decompress
    if t == 'x': return zlib.decompress(bin)
MemoryError

-->

So the server ran out of memory trying to decompress a manifest.

--
Mathematics is the supreme nostalgia of our time.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>