From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22138 invoked by alias); 24 Jun 2014 16:26:59 -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: 32793 Received: (qmail 19504 invoked from network); 24 Jun 2014 16:26:47 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7f626d000004b39-20-53a9a6c3e140 Date: Tue, 24 Jun 2014 17:26:42 +0100 From: Peter Stephenson To: Thomas Klausner , zsh-workers@zsh.org Subject: Re: ulimit -a: -r vs -N [was Re: pkgsrc patches for zsh] Message-id: <20140624172642.61b422e0@pwslap01u.europe.root.pri> In-reply-to: <20140624161102.GJ13765@danbala.tuwien.ac.at> References: <20120816142504.GO2428@danbala.tuwien.ac.at> <20120816201848.4b442246@pws-pc.ntlworld.com> <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> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t/xa7qHl60MNriwVdhi3uvFrBYHmx8y OTB59G7/we6x6uAHpgCmKC6blNSczLLUIn27BK6MPyvnMBecYq3o2zKbrYFxLUsXIyeHhICJ xM0jr5khbDGJC/fWs3UxcnEICSxllLi44juU088kMf/zCVaQKhYBVYmuFy8YQWw2AUOJqZtm g9kiAhYSMw5+B5skLOAoMWH9THYQm1fAXuLClWVgvZwCVhJzt75ighi6nkVi9cKXYEX8AvoS V/9+YoI4w15i5pUzjBDNghI/Jt8DO5VZQEti87YmVghbXmLzmrfMExgFZiEpm4WkbBaSsgWM zKsYRVNLkwuKk9JzjfSKE3OLS/PS9ZLzczcxQkLz6w7GpcesDjEKcDAq8fBW7FgRLMSaWFZc mXuIUYKDWUmE17R7ZbAQb0piZVVqUX58UWlOavEhRiYOTqkGRv++b/NvHxeYI7/2jI2K7o43 s/mvrVV5+u7/j4OHXbeEdLeL+vN6rKh9cObe2rV/gpa68QlG7NePYfgs+n/5lfqEJRFbuPJ2 XzTjtzj7qKX9539XjfOs6/tDFVxXXLXZcGuO41ElYd6+jAXzE/b+n/lK3tHnoEmcvOv2vR0b vs56c3txtpTv5kIlluKMREMt5qLiRADLZdwlKwIAAA== 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. 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. pws