Re: Number of open files per process

From: Joel Reicher (joel_at_panacea.null.org)
Date: 10/05/04

  • Next message: Gregg C Levine: "mounting an ext2 formatted partitions using the NetBSD "Mount""
    Date: Mon, 04 Oct 2004 22:57:53 GMT
    
    

    Benjamin Walkenhorst <krylon@gmx.net> writes:

    > How do I change the maximum number of files a process can keep open?
    > Can I change this dynamically (e.g. via sysctl) or do I have to set it
    > statically in the kernel?

    The max number of file descriptors is a resource limit. Look up how
    your favourite shell sets them (csh uses `limit', sh uses
    `ulimit'). Increasing the soft limit might be enough for you. If you
    want to change the hard limit, you'll have to be root.

    Cheers,

            - Joel


  • Next message: Gregg C Levine: "mounting an ext2 formatted partitions using the NetBSD "Mount""

    Relevant Pages

    • Re: SYN Attacks - how i cant stop it
      ... root# sysctl net.inet.tcp.syncookies=1 ... If you don't have firewall support compiled in the kernel, kldload ipfw. ... To port 80, or 22, or to some any other open port. ...
      (FreeBSD-Security)
    • Re: SYN Attacks - how i cant stop it
      ... root# sysctl net.inet.tcp.syncookies=1 ... If you don't have firewall support compiled in the kernel, kldload ipfw. ... To port 80, or 22, or to some any other open port. ...
      (freebsd-questions)
    • Re: mm snapshot broken-out-2007-01-26-00-36.tar.gz uploaded
      ... out an appropriate error message. ... wasn't thinking so much about whether it was a sysctl or not. ... What's the current advice on what kernel interface to use for this scenario: ...
      (Linux-Kernel)
    • Re: Automatic Configuration of a Kernel
      ... This patch is pointless without other kernel magic to guarantee that ... Guess it's time to re-post my sysctl patch to provide a general-purpose ... the size of the user buffer ...
      (Linux-Kernel)
    • Re: Accessing sysctls from kernel
      ... On Thu, 26 Feb 2004, Bruce M Simpson wrote: ... >> me) to be intended for accessing sysctl values from kernel, ... the thread exists in the context of a sysctl for several reasons -- ... another is the credential authorizing the change. ...
      (freebsd-hackers)