*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> nfile (5)              
Title
Content
Arch
Section
 

Contents


 nfile(5)                                                           nfile(5)
                          Tunable Kernel Parameters



 NAME    [Toc]    [Back]
      nfile - maximum number of open files (system-wide)

 VALUES    [Toc]    [Back]
    Failsafe
      16384

    Default    [Toc]    [Back]
      The default value is computed at runtime and depends on the amount of
      physical memory on the system.  For small memory systems (less than
      1GB), the default is 16384, or 16K.  For systems with more than 1GB of
      memory, the default is 65536, or 64K.

    Allowed values    [Toc]    [Back]
      The minimum value allowed is 2048.  The maximum value allowed is the
      maximum 32-bit signed integer value that can be represented in the
      system.  The value is further constrained in that it must be equal to
      or greater than two times the per-process open file hard limit:
      (nfile >= 2*maxfiles_lim).

      Specify a positive integer value.

 DESCRIPTION    [Toc]    [Back]
      The nfile tunable defines the maximum number of slots in the system
      open file table.  This number limits the cumulative number of open
      files by all processes in the system.  In addition to named files
      (regular files, directories, links, device files, etc.), other objects
      that consume slots in the system open file table include pipes, FIFOs,
      sockets, streams.  Be aware that the dup(2) and dup2(2) system calls,
      while they consume entries in the per-process file tables, they do not
      consume new slots in the system open file table.

    Who Is Expected to Change This Tunable?
      Anyone expecting to run applications with large numbers of open files.

    Restrictions on Changing    [Toc]    [Back]
      This tunable is dynamic (tuning will take effect immediately on the
      running system).  When the value of nfile is dynamically tuned it
      cannot be set to a value lower than the number of current open files
      in the running kernel.

    When Should the Value of This Tunable Be Raised?
      This tunable value should be increased when large numbers of files are
      expected to be open simultaneously by several processes.  Be generous
      with this number because the required memory is minimal, and not
      having enough slots restricts system processing capacity.

    What are the Side Effects of Raising the Value?
      There is no immediate side effect of raising nfile.  However, as the
      system file table is populated when files are opened additional memory
      will be consumed.  Raising the value of nfile implicitly allows the



 Hewlett-Packard Company            - 1 -      HP-UX 11i Version 2: Sep 2004






 nfile(5)                                                           nfile(5)
                          Tunable Kernel Parameters



      system file table to consume more memory.

    When Should the Value of This Tunable Be Lowered?
      The value of this tunable rarely needs to be lowered.  The value can
      be lowered to limit the number of open files on a system and this may
      reduce memory consumption.

    What are the Side Effects of Lowering the Value?
      Lowering the value of nfile may result on the kernel returning some
      memory back to the system pool.

    What Other Tunable Values Should Be Changed at the Same Time?
      nfile must be equal to or greater than two times the value of
      maxfiles_lim.  Kernel checks during tunable setting ensure this.

 WARNINGS    [Toc]    [Back]
      All HP-UX kernel tunable parameters are release specific.  This
      parameter may be removed or have its meaning changed in future
      releases of HP-UX.

      Installation of optional kernel software, from HP or other vendors,
      may cause changes to tunable parameter values.  After installation,
      some tunable parameters may no longer be at the default or recommended
      values.  For information about the effects of installation on tunable
      values, consult the documentation for the kernel software being
      installed. For information about optional kernel software that was
      factory installed on your system, see HP-UX Release Notes at
      http://docs.hp.com.

 AUTHOR    [Toc]    [Back]
      nfile was developed by HP.

 SEE ALSO    [Toc]    [Back]
      kctune(1M), sam(1M), gettune(2), settune(2), maxfiles(5),
      maxfiles_lim(5).


 Hewlett-Packard Company            - 2 -      HP-UX 11i Version 2: Sep 2004
[ Back ]
      
      
 Similar pages
Name OS Title
ncdnode HP-UX maximum number of open CDFS files (system-wide)
ninode HP-UX maximum number of HFS file system open inodes that can be in memory
msgmni HP-UX maximum number of system-wide System V IPC message queues (IDs) allowed
max_async_ports HP-UX maximum number of asynchronous disk ports that can be open at any time
msgtql HP-UX maximum number of System V IPC messages in the system at any time
semmsl HP-UX maximum number of System V IPC semaphores per identifier
semmnu HP-UX maximum number of System V IPC undo structures for processes
semume HP-UX maximum number of System V IPC undo entries per process
maxvgs HP-UX maximum number of LVM Volume Groups that can be created/activated on the system
msgmnb HP-UX maximum number of bytes on a single System V IPC message queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service