From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25796 invoked by alias); 24 Jun 2014 17:09:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32794 Received: (qmail 2999 invoked from network); 24 Jun 2014 17:09:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Tue, 24 Jun 2014 19:09:08 +0200 From: Thomas Klausner To: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: ulimit -a: -r vs -N [was Re: pkgsrc patches for zsh] Message-ID: <20140624170908.GK13765@danbala.tuwien.ac.at> References: <20120817081109.GU2428@danbala.tuwien.ac.at> <20120817103803.73f82242@pwslap01u.europe.root.pri> <20120817105019.GB2428@danbala.tuwien.ac.at> <20120817123535.62ab00a1@pwslap01u.europe.root.pri> <20120817121605.GD2428@danbala.tuwien.ac.at> <20140624143711.GG13765@danbala.tuwien.ac.at> <20140624160708.6bef4d2c@pwslap01u.europe.root.pri> <20140624161102.GJ13765@danbala.tuwien.ac.at> <20140624172642.61b422e0@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140624172642.61b422e0@pwslap01u.europe.root.pri> On Tue, Jun 24, 2014 at 05:26:42PM +0100, Peter Stephenson wrote: > On Tue, 24 Jun 2014 18:11:02 +0200 > Thomas Klausner wrote: > > thread (-r threads ) 160 > > > If I raise the threads limit here to 161, the value for "-N 11" in zsh > > is also 161, so it's the same limit. > > I'm presuming you don't have RTPRIO (so there's no clash)? What's the > name (enum or #defined) of the limit referred to as "threads", i.e. with > the value 11? Should be in something like /usr/include/sys/resource.h > or something included from there. > > gcc -E /usr/include/sys/resource.h | grep RLIMIT > > might be enough to answer both questions. The gcc statement, for some reason, doesn't work, but: ./sys/resource.h:#define RLIMIT_NTHR 11 /* number of threads */ # grep -r RTPRIO /usr/include # > I'm not sure we have an existing preprocessor test for NetBSD, so if we > need to disambiguate uses of -r we'll need that. "uname -s" is "NetBSD". Let me know what else I can provide to help here. Thanks, Thomas