From owner-freebsd-current@FreeBSD.ORG Mon Mar 16 21:24:45 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64CEC1065670 for ; Mon, 16 Mar 2009 21:24:45 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by mx1.freebsd.org (Postfix) with ESMTP id 003B18FC1C for ; Mon, 16 Mar 2009 21:24:44 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1163228tib.3 for ; Mon, 16 Mar 2009 14:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=EhyB34/nIz1cxYzE+0/KwhKxBcbuIA5p3Tl5jKnWjms=; b=xqhbyltvVqv9rb37V5ip20uHfG+NnqJbKfXCepLyW6H1Kory4yB1XI7iyuxjIvq/h5 auUjv1vGRd51GnVkS3QMbahtzRfSvYm6WFr1MY2qgG8nhLMG59n+YZB5OJj/24IOvjeK tki2G94ahhwEVQ2KJAbm6o7+1w/rp92ACvXy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=Iynzzn15X0HxfDsyHytI3PFKd2BqCQ9Zfl5WMiqAVIlYuojw0qraKynZNJXZH3KgaR 4jjxNnV2xovP3tOE9vgacdlgm8FQPD9j7dmVESTlPJR7AMEVbNa/UIBZ6rqj25+4jOyl lU7M9hXQ9zalEzIj0YWLwcgKxqGfZ4FTmCp7I= Received: by 10.110.92.8 with SMTP id p8mr65757tib.56.1237238683710; Mon, 16 Mar 2009 14:24:43 -0700 (PDT) Received: from localhost (95-24-69-29.broadband.corbina.ru [95.24.69.29]) by mx.google.com with ESMTPS id j5sm1919571tid.1.2009.03.16.14.24.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Mar 2009 14:24:42 -0700 (PDT) From: Anonymous To: Kostik Belousov References: <864oxtuzct.fsf@gmail.com> <20090316194541.GO41617@deviant.kiev.zoral.com.ua> Date: Tue, 17 Mar 2009 00:24:03 +0300 Message-ID: <86ljr5p3f0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: Re: lang/sbcl consumes all available memory and dies X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 21:24:45 -0000 Kostik Belousov writes: > On Mon, Mar 16, 2009 at 08:55:14PM +0300, Anonymous wrote: >> I noticed that after commit r189771 (ELF: .note.ABI-tag) sbcl >> starts to eat all memory until it dies from bus error never reaching >> REPL. The process is unkillable, too. >> >> $ sbcl >> This is SBCL 1.0.25, an implementation of ANSI Common Lisp. >> More information about SBCL is available at . >> >> SBCL is free software, provided as is, with absolutely no warranty. >> It is mostly in the public domain; some portions are provided under >> BSD-style licenses. See the CREDITS and COPYING files in the >> distribution for more information. >> load: 0.06 cmd: sbcl 1926 [running] 0.01u 0.44s 3% 189432k >> load: 0.06 cmd: sbcl 1926 [tx->tx_quiesce_done_cv)] 0.01u 0.72s 5% 367124k >> load: 0.78 cmd: sbcl 1926 [running] 0.01u 2.91s 14% 1763028k >> load: 0.72 cmd: sbcl 1926 [tx->tx_quiesce_done_cv)] 0.01u 3.65s 14% 2237272k >> load: 0.74 cmd: sbcl 1926 [*vm page queue mutex] 0.01u 5.78s 9% 3482892k >> zsh: bus error (core dumped) sbcl >> >> This is amd64, r189876M, zfs, 4g mem, 4g swap, sbcl 1.0.17, sbcl-1.0.25, >> 1.0.26.3. I can reproduce it under qemu with clean environment as well. >> >> Can somebody confirm it on i386? Just run `sbcl' and exit from REPL by >> either `^D' or `(quit)'. >> >> The workaround is to reverse-apply diff from r189771. > > I think the D-state is due to quite large vm address space of the lisp, > that takes a long time to dump. > For the start, can you confirm that setting sysctl > machdep.prot_fault_translation to 2 solves your problem ? Yep, machdep.prot_fault_translation=2 solves it on my main amd64 box and in qemu-amd64. Anything else?