[haiku-development] Re: How to increase files limit?

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 24 Apr 2010 16:37:08 +0200

Hello Andreas,

2010/4/24 Andreas Färber <andreas.faerber@xxxxxx>:
> On Linux it would be possible to do something like `echo 1024 >
> /proc/sys/kernel/file-max` or `ulimit -n 1024`. On Haiku the latter results
> in:
> sh: ulimit: cannot modify limit: Operation not allowed
> How can we achieve the equivalent on Haiku? Is there something like NR_FILE
> defined in the kernel?

ulimit has a soft value and a hard value. On Haiku, the hard limit is
8192 and fixed, hence the Operation not allowed message.
You can however set the soft value with `ulimit -Sn 1024`.

Bye,
Jérôme

Other related posts: