From owner-freebsd-current@FreeBSD.ORG Thu Feb 21 16:17:47 2008 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 5685E16A400 for ; Thu, 21 Feb 2008 16:17:47 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 0E58313C43E for ; Thu, 21 Feb 2008 16:17:46 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 67EF22088; Thu, 21 Feb 2008 17:17:43 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id D76D42087; Thu, 21 Feb 2008 17:17:42 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id B927D8448A; Thu, 21 Feb 2008 17:17:42 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Jason Evans References: <20080219151809.GF57366@rambler-co.ru> <47BB0D29.5080403@freebsd.org> Date: Thu, 21 Feb 2008 17:17:42 +0100 In-Reply-To: <47BB0D29.5080403@freebsd.org> (Jason Evans's message of "Tue\, 19 Feb 2008 09\:08\:57 -0800") Message-ID: <86zltu5lnd.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Igor Sysoev , freebsd-current@FreeBSD.ORG Subject: Re: malloc(3) ignores RLIMIT_DATA 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: Thu, 21 Feb 2008 16:17:47 -0000 Jason Evans writes: > Igor Sysoev writes: > > malloc(3) in FreeBSD 7 uses mmap() (then sbrk() on 32-bit platform) > > and ignores RLIMIT_DATA. FreeBSD 8's malloc() can be configured > > to use sbrk() only ("Dm"), but default setting is "DM". > I plan to merge these changes to RELENG_7 shortly after FreeBSD 7.0 is > released. FWIW, I would prefer if sbrk support were simply ripped back out of jemalloc, and the brk() and sbrk() prototypes removed from the system headers to make it impossible for new software to use them. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no