From owner-freebsd-arch@FreeBSD.ORG Fri Apr 20 18:47:54 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEF3C106568A for ; Fri, 20 Apr 2012 18:47:54 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 666668FC0A for ; Fri, 20 Apr 2012 18:47:54 +0000 (UTC) Received: by yenl9 with SMTP id l9so6488208yen.13 for ; Fri, 20 Apr 2012 11:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nR9XIViT21QmCz5JFLbBnmcvW0UpVjCEpKN90/zaG4U=; b=KCEevkpld/u9APluOZJCyv4z99Y/rN4qqFMQS/D+qp5KNSC0zMH6PTYPWCz2MBIEHt BipOmhPLhxgG9FpUA+SvlY6wKOjgY3K8m/0I1kif0xJdCH2yHwy7vrEJRwWtrtP+yO4u /2BPR+TY4pG2Lkt78G/uxz4Qjux91LgwXJdocjIKChemBiFTfYTHjJCdj0MnP5AH8UBp Gt2RVsqU3vqXyctMHWn28DfnVQvlX00ldqjtrcuUOJJYig1t4QcvqpLPS7jWahJwLos7 +YtB8wM5FtuZ1Mv235kL7kj4Pj8HLa+bN7AYL/V7vT4wnQpV+h1IWPhpPIFoKPBqgEgg OxgQ== MIME-Version: 1.0 Received: by 10.50.202.100 with SMTP id kh4mr7393298igc.43.1334947665845; Fri, 20 Apr 2012 11:47:45 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.43.130.201 with HTTP; Fri, 20 Apr 2012 11:47:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 20:47:45 +0200 X-Google-Sender-Auth: fnpSYkIoav21Ei3wmj-lRFAH-IY Message-ID: From: Robert Millan To: Peter Wemm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arch@freebsd.org Subject: Re: Increase DFLDSIZ on amd64? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 18:47:54 -0000 Hi Peter, El 19 d=E2=80=99abril de 2012 0:23, Peter Wemm ha escrit: > Hmm. =C2=A0In login,conf, we have: > :datasize=3Dunlimited: > .. which causes the datasize limit to be pushed to 32G by default at > login/cron/sshd/etc. Well, Debian has a similar facility, but I don't think this solves the problem, as it only covers processes that descend from a login shell. What about daemons? > Also, malloc doesn't use this pool on amd64 - it comes straight out of > mmap MAP_ANON page blocks. =C2=A0The only that should be hitting it ever > would be things that call the old sbrk(3) interface directly. =C2=A0Mallo= c > shouldn't be hitting it. I hit trouble with the dynamic linker: # cat test.c char buf[1024*1024*1024]; int main () { } # gcc test.c -o test # ./test Abort trap: 6 Not sure about other things but IMHO it's a valid reason to increase the default to match with the one set by userland. --=20 Robert Millan