• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ulimit settings for build & run ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ulimit settings for build & run ?


  • Subject: Re: ulimit settings for build & run ?
  • From: Derek Wyatt <email@hidden>
  • Date: Sat, 23 Dec 2006 13:08:24 -0500

David, I'm disappointed in you. You should know more than anyone that ulimits are a serious pain in the butt and that you don't have any "real" control over them. You can check out "man -s3 ulimit" for the C-lib call that will help you do it programatically, but if the hard limit is 256, you're SOL.

What's worse is that if the user is a "big dumb user" and the admin of the box has set it up with 256 as the hard limit, the user isn't going to be smart enough to change it (and, actually, I'm too much of a mac newb to know where the "system" level limits are).

I would use the lib call to inspect the limit, and reset it if you know it will work (that's what we do in that big product you support all day long). If there's nothing you can do about it, then you have to tell the user to up the limit and start again (shoving an appropriate answer in your FAQ on how it's done).

Regs,
Derek

On 23-Dec-06, at 12:20 PM, David Carpeneto wrote:

Hi all - Newbie-esque question - I'm opening up a *lot* of file
descriptors in something I'm doing, and quickly bang into the ulimit (-n
is by default 256).
Is there a simple way to jack up the ulimit for the thing I'm building ?
Or do I need to wrap the built product in a shell that sets the ulimit,
then launch my app (which is what I'm used to doing in Java) ?


Just looking to see if a 'better way' exists. Thanks for any insight you
may be able to provide - Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >ulimit settings for build & run ? (From: "David Carpeneto" <email@hidden>)

  • Prev by Date: ulimit settings for build & run ?
  • Next by Date: Re: ulimit settings for build & run ?
  • Previous by thread: ulimit settings for build & run ?
  • Next by thread: Re: ulimit settings for build & run ?
  • Index(es):
    • Date
    • Thread