From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 21 20:43:52 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D18D777 for ; Sun, 21 Sep 2014 20:43:52 +0000 (UTC) Received: from mail-vc0-x22d.google.com (mail-vc0-x22d.google.com [IPv6:2607:f8b0:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49AE36EE for ; Sun, 21 Sep 2014 20:43:52 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id le20so3615564vcb.32 for ; Sun, 21 Sep 2014 13:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/ZCPVC5m6TI+H/Wxi+DWL2toL9qfIZDl2CMjYhOVAtg=; b=refif8tfSNW45CtrGj+0oF+SbMNjuhzyoSKCr6y4ah6kZWYuIY7FG+5QhU2Kxt0YG/ 3ACu11MMO5KqFc7BhfMmQhMUeN5/E7I3HHfYKGYc1gs99hHaAmR8IeAGGwlk7j54FlOh IbWvluj8UByI2YLU0+3Kb/D3xUvFvtV9Dj9N7nKLI1j/9ajWqsvYPJZZBeCSTjNC724n xtFHPvzdwbeVLpaqsqjlIj6ieX6eXmVRzf9tJy5ip4iv7gNRlc1RjanALYGEGLp9Jv+1 18B5Rk4hOBP/iYrAh5YsDi8RJsv6GU/xb8Z0tkfLM8kNB3AFtPgsk5Bth5ibr5o1R+Be daIA== MIME-Version: 1.0 X-Received: by 10.220.251.200 with SMTP id mt8mr7497133vcb.24.1411332231198; Sun, 21 Sep 2014 13:43:51 -0700 (PDT) Received: by 10.221.22.130 with HTTP; Sun, 21 Sep 2014 13:43:51 -0700 (PDT) In-Reply-To: <20140921203410.GM2210@kib.kiev.ua> References: <20140921195943.GK2210@kib.kiev.ua> <20140921203410.GM2210@kib.kiev.ua> Date: Sun, 21 Sep 2014 16:43:51 -0400 Message-ID: Subject: Re: stack size rlimit From: suresh gumpula To: Konstantin Belousov X-Mailman-Approved-At: Sun, 21 Sep 2014 21:09:38 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 20:43:52 -0000 Yes, we may not really need this big stack space for a process. I am just experimenting RLIMIT_INFINITY on BSD and linux. On BSD we are limiting to kern.maxssiz it seems. And the address map layout which described in the design book , is not what we are doing as you said. Thank you! On Sun, Sep 21, 2014 at 4:34 PM, Konstantin Belousov wrote: > On Sun, Sep 21, 2014 at 04:19:38PM -0400, suresh gumpula wrote: > > Thank you ! . So we cannot have the stack size beyond 512M . correct ? > You have to adjust kern.maxssiz to be able to bump RLIMIT_STACK beyond > 512M (on amd64). > > Just curious, why do you need this ? > > > > > % sudo ./test_stack > > Current limit value is : 8M > > max limit value is : 512M > > > > Changing the limits to infinity... > > > > Current limit value now is : 512M > > max limit value now is : 512M >