[cl-debian] Bug#282716: marked as done (cmucl: Excessive memory usage)

Debian Bug Tracking System owner at bugs.debian.org
Sun Aug 14 20:18:17 UTC 2005


Your message dated Sun, 14 Aug 2005 22:14:46 +0200
with message-id <42FFA636.8050802 at debian.org>
and subject line closing old non-relevant bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Nov 2004 22:52:57 +0000
>From roger at whinlatter.ukfsn.org Tue Nov 23 14:52:57 2004
Return-path: <roger at whinlatter.ukfsn.org>
Received: from s2.ukfsn.org (mail.ukfsn.org) [217.158.120.143] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CWjWr-0005dt-00; Tue, 23 Nov 2004 14:52:57 -0800
Received: from localhost (lucy.ukfsn.org [127.0.0.1])
	by mail.ukfsn.org (Postfix) with ESMTP
	id D39CFE6A8F; Tue, 23 Nov 2004 22:50:14 +0000 (GMT)
Received: from mail.ukfsn.org ([127.0.0.1])
 by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 04937-11; Tue, 23 Nov 2004 22:50:14 +0000 (GMT)
Received: from whinlatter.whinlatter.ukfsn.org (unknown [80.41.120.178])
	by mail.ukfsn.org (Postfix) with ESMTP
	id 1A3EBE6A8C; Tue, 23 Nov 2004 22:50:14 +0000 (GMT)
Received: from roger by whinlatter.whinlatter.ukfsn.org with local (Exim 4.34)
	id 1CWjWj-0003AT-51; Tue, 23 Nov 2004 22:52:49 +0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Roger Leigh <rleigh at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: cmucl: Excessive memory usage
X-Mailer: reportbug 3.2
Date: Tue, 23 Nov 2004 22:52:48 +0000
Message-Id: <E1CWjWj-0003AT-51 at whinlatter.whinlatter.ukfsn.org>
Sender: Roger Leigh <roger at whinlatter.ukfsn.org>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: cmucl
Version: 19a-release-20040728-9
Severity: normal

cmucl uses a lot of virtual memory.  For example, running /usr/bin/cmucl
on my system with no arguments gives this line with top:

  PID USER      PR  NI  VIRT  RES  SHR S #C %CPU %MEM   TIME COMMAND
10620 roger     15  -1 1284m 5044  24m S  0  0.8  1.0   0:00 cmucl

It's using over 1 gigabyte of virtual memory!  The system has 512 MiB of
core memory and an extra 8 GiB swap space, giving 8.5 GiB total virtual
memory.  By default, the system has some resource limits specified in
/etc/security/limits.conf

*               soft    nproc           150
*               hard    nproc           200
*               soft    core            0
*               hard    core            20480
*               hard    maxlogins       15
*               hard    rss             100000
*               soft    priority        5
*               soft    stack           8192
*               hard    stack           8192
*               soft    as              524288

With the last "as" limit in place, cmucl won't run at all:

$ cmucl
mmap: Cannot allocate memory
ensure_space: Failed to validate 268431360 bytes at 0x28000000

If the "as" limit is removed, cmucl will run just fine.


So it seems the default value for allocation is way too large.  If this
is calculated at runtime, perhaps the calculation is broken?

[I tried removing 6 GiB of swap and reinstalling to regenerate the
core/memory dumps; this had no effect.]

I'm afraid I'm not too familiar with Lisp: I installed cmucl to learn
the language.  I'll be more than happy to do any further testing,
though.

Regards,
Roger


# cat /proc/meminfo
MemTotal:       515652 kB
MemFree:         14332 kB
Buffers:         32224 kB
Cached:         210888 kB
SwapCached:         28 kB
Active:         368644 kB
Inactive:        87892 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       515652 kB
LowFree:         14332 kB
SwapTotal:     8388544 kB
SwapFree:      8388516 kB
Dirty:             644 kB
Writeback:           0 kB
Mapped:         265688 kB
Slab:            20260 kB
Committed_AS:   836280 kB
PageTables:       2544 kB
VmallocTotal:   516040 kB
VmallocUsed:     48388 kB
VmallocChunk:   466884 kB


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=UTF-8) (ignored: LC_ALL set to en_GB)

Versions of packages cmucl depends on:
ii  common-lisp-controller        4.12       This is a Common Lisp source and c
ii  debconf                       1.4.40     Debian configuration management sy

-- debconf information:
  cmucl/upgradeproblems:

---------------------------------------
Received: (at 282716-done) by bugs.debian.org; 14 Aug 2005 20:14:49 +0000
>From pvaneynd at debian.org Sun Aug 14 13:14:49 2005
Return-path: <pvaneynd at debian.org>
Received: from out2.smtp.messagingengine.com [66.111.4.26] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E4Osb-0007E9-00; Sun, 14 Aug 2005 13:14:49 -0700
Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151])
	by frontend1.messagingengine.com (Postfix) with ESMTP id DACE7CC9EE8;
	Sun, 14 Aug 2005 16:14:47 -0400 (EDT)
X-Sasl-enc: OZlkM6vpCDYfS282b9fScaMkqkCNR+RKODJi/n1KIsiy 1124050486
Received: from [127.0.0.1] (57.165-136-217.adsl.skynet.be [217.136.165.57])
	by frontend2.messagingengine.com (Postfix) with ESMTP id 2528856F785;
	Sun, 14 Aug 2005 16:14:45 -0400 (EDT)
Message-ID: <42FFA636.8050802 at debian.org>
Date: Sun, 14 Aug 2005 22:14:46 +0200
From: Peter Van Eynde <pvaneynd at debian.org>
User-Agent: Debian Thunderbird 1.0.6 (X11/20050802)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: 220797-done at bugs.debian.org,  212018-done at bugs.debian.org, 
 278137-done at bugs.debian.org,  282716-done at bugs.debian.org, 
 319427-done at bugs.debian.org
Subject: closing old non-relevant bugs
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: 282716-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 4

Hello,

I'm closing older bugs that litter the bts at the moment.

220797 is non-relevant because we don't do lispworks anymore ;-)
212018 is fixed in sarge
278137 I don't want to fix because the generation is brittle and depends
        on latex2html (a non-free package)
282716 because the memory system is unlikely to change any time soon
319427 because it is a ubuntu bug and should be fixed if you use the
        people.debian.org/~pvaneynd repository

If you think this is unfair, please reopen and yell at me :-)

Groetjes, Peter


-- 
signature -at- pvaneynd.mailworks.org
http://www.livejournal.com/users/pvaneynd/
"God, root, what is difference?" Pitr | "God is more forgiving." Dave 
Aronson|




More information about the Cl-debian mailing list