From xemacs-m  Fri Jan 10 17:38:58 1997
Received: from mhost.mri.com (mri-gw.mri.com [149.147.4.1])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id RAA25685 for <xemacs-beta@xemacs.org>; Fri, 10 Jan 1997 17:38:56 -0600 (CST)
Received: from mri.com (mailhost.mri.com [192.9.201.130]) by mhost.mri.com (8.8.4/8.7.3) with ESMTP id PAA11969 for <xemacs-beta@xemacs.org>; Fri, 10 Jan 1997 15:38:56 -0800 (PST)
Received: from lungo by mri.com (8.6.12/SMI-4.1-1.16)
        id PAA14074; Fri, 10 Jan 1997 15:38:55 -0800
Received: from lungo.mri.com by lungo (SMI-8.6) id PAA24760; Fri, 10 Jan 1997 15:38:54 -0800
Message-Id: <199701102338.PAA24760@lungo>
To: xemacs-beta@xemacs.org
Subject: "Memory exhausted" with xemacs-19.15-b3
Reply-To: Vladimir.Ivanovic@mri.com
Date: Fri, 10 Jan 1997 15:38:53 -0800
From: Vladimir Ivanovic <Vladimir.Ivanovic@mri.com>

With xemacs-19.15-b3 (I've since upgraded to b7) I had in a buffer
the output of `make -d' -- 400,000 lines (32 MB).  Top told me that
XEmacs had a virtual size of 81 MB and a resident size of 41 MB.  Fine
so far, although my SS5 was a little sluggish.

Now, to help things, I wanted to shrink the amount of buffer space being
used.  So I did a `mark-whole-buffer' to select the entire buffer (`make'
was still running) and then deleted it with `kill-region'.  No change in
the virtual size, but the resident size went down by 10 MB after a while.

Of course, the text killed is kept in the kill-ring.  I suppose I should
have used `delete-region' instead, but when I tried to yank the text
back, I got 

    Signaling: (error "Memory exhausted")
    yank(nil)
    call-interactively(yank)

-- Vladimir

P.S
;; After the failed yank ...
(mmap-allocator-status) ==>
    ((mmap-times-mapped . 89) 
     (mmap-pages-mapped . 89) 
     (mmap-times-unmapped . 69) 
     (mmap-times-remapped . 195) 
     (mmap-didnt-copy . 68) 
     (mmap-pages-copied . 72221) 
     (mmap-average-bumpval . 205088) 
     (mmap-wastage . 40036) 
     (mmap-live-pages . 9056) 
     (mmap-had-to-look-up-address . 267) 
     (mmap-hash-table-worked . 262) 
     (mmap-addrlist-size . 0))

------- End of Forwarded Message

