<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Maximum number of file descriptors per process? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435003#M4572</link>
    <description>There are 2 parameters.&lt;BR /&gt;&lt;BR /&gt;maxfiles and maxfiles_lim&lt;BR /&gt;&lt;BR /&gt;The defaults are 60 and 1024 and the max is 2048 for both.</description>
    <pubDate>Mon, 07 Aug 2000 07:23:18 GMT</pubDate>
    <dc:creator>Andy Monks</dc:creator>
    <dc:date>2000-08-07T07:23:18Z</dc:date>
    <item>
      <title>Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435002#M4571</link>
      <description>Hello all!&lt;BR /&gt;&lt;BR /&gt;Is there a way to increase the maximum number of open file descriptor limit&lt;BR /&gt;in HPUX 11.0?  On a related note, how high can this number be adjusted?&lt;BR /&gt;&lt;BR /&gt;I've got a HP 9000 700 series machine with 1Gbyte of RAM.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 07 Aug 2000 07:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435002#M4571</guid>
      <dc:creator>Andrew Caballes</dc:creator>
      <dc:date>2000-08-07T07:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435003#M4572</link>
      <description>There are 2 parameters.&lt;BR /&gt;&lt;BR /&gt;maxfiles and maxfiles_lim&lt;BR /&gt;&lt;BR /&gt;The defaults are 60 and 1024 and the max is 2048 for both.</description>
      <pubDate>Mon, 07 Aug 2000 07:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435003#M4572</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-07T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435004#M4573</link>
      <description>Don't forget about nfile(maximum file descriptors per system) parameter too....&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2000 07:45:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435004#M4573</guid>
      <dc:creator>Vladislav Demidov</dc:creator>
      <dc:date>2000-08-07T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435005#M4574</link>
      <description>Run sysdef to know the limits.</description>
      <pubDate>Mon, 07 Aug 2000 07:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435005#M4574</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-07T07:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435006#M4575</link>
      <description>Thanks! &lt;BR /&gt;&lt;BR /&gt;Another related question: &lt;BR /&gt;Can this number be bumped up to around &lt;BR /&gt;10,000 file descriptors per process?</description>
      <pubDate>Mon, 07 Aug 2000 07:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435006#M4575</guid>
      <dc:creator>Andrew Caballes</dc:creator>
      <dc:date>2000-08-07T07:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435007#M4576</link>
      <description>You cann't increase this parameter up to 10,000 per one process. you have to rewrite you application to use 5 processes.</description>
      <pubDate>Mon, 07 Aug 2000 08:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435007#M4576</guid>
      <dc:creator>Vladislav Demidov</dc:creator>
      <dc:date>2000-08-07T08:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435008#M4577</link>
      <description>as the limit is 2048, then the answer is no!. Why would any application need to have 10,000 files open at the same time?</description>
      <pubDate>Mon, 07 Aug 2000 09:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435008#M4577</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-07T09:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435009#M4578</link>
      <description>Increasing the 'nfile' parameter will increase the number of files that can be opened. Increasing 'nproc' parameter will increase the number of open processes.  Both of these can be modified in SAM via /kernel/configurable parameters.&lt;BR /&gt;Once you change nproc you will notice that it will change (as needed) other parameters to account for the adjustment.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2000 11:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435009#M4578</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-08-07T11:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435010#M4579</link>
      <description>Andrew, maxfiles/maxfiles_lim are per-process limits. nfile is a system wide limit. nfile is limited by physical memory.</description>
      <pubDate>Mon, 07 Aug 2000 11:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435010#M4579</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-07T11:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435011#M4580</link>
      <description>Andy, nfile parameters should be bigger then 2048 or seral times 2048 otherwise several processes will not be able to seize 2048 file descriptors each.</description>
      <pubDate>Mon, 07 Aug 2000 11:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435011#M4580</guid>
      <dc:creator>Vladislav Demidov</dc:creator>
      <dc:date>2000-08-07T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435012#M4581</link>
      <description>The 2048 value is a hard limit in the kernel (maxfiles_lim). WHile a program can change the maxfiles value with a call to setrlimit(2), it cannot be increased beyond 2048.&lt;BR /&gt;&lt;BR /&gt;Also, the default POSIX shell offers ulimit as a user interface to several 'soft' parameters such as maxfiles, core file limit, memory usage, processor time, etc. ulimit -a will listt the values that can changed. Once changed, all child proceses inherit the shell settings.&lt;BR /&gt;&lt;BR /&gt;As an aside, one has to question the need to open 10,000 files at the same time.  Even the Universe database program (which can use thousands of unique files) uses a file descriptor pool to limit simultaneous open files to a few hundred. As mentioned in a previous reply, if 20 copies of the same program were to open 10,000 files (the same 10,000 files), you would need nfile set to 200,000, a huge number indeed.</description>
      <pubDate>Mon, 07 Aug 2000 12:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435012#M4581</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-08-07T12:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435013#M4582</link>
      <description>Thank you all for your responses, they have been very helpful.&lt;BR /&gt;&lt;BR /&gt;As for the 10,000 file descriptors, I was hoping to be able to &lt;BR /&gt;open that number of sockets, not files per se.   &lt;BR /&gt;&lt;BR /&gt;Again, my thanks.</description>
      <pubDate>Mon, 07 Aug 2000 22:31:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435013#M4582</guid>
      <dc:creator>Andrew Caballes</dc:creator>
      <dc:date>2000-08-07T22:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum number of file descriptors per process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435014#M4583</link>
      <description>The answer for your question is this:&lt;BR /&gt;edit the file containig the limits for kernel parameters:&lt;BR /&gt;&lt;BR /&gt;vi  /usr/conf/master.d/core-hpux&lt;BR /&gt;&lt;BR /&gt;search the maxfiles and maxfiles_lim and modify the &lt;BR /&gt;range values (minimum , maximum) according to your &lt;BR /&gt;needs, then save file and make sam to recognize them&lt;BR /&gt;executing:&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/getkinfo -b&lt;BR /&gt;&lt;BR /&gt;Now the maximum and minimun range for the parameter &lt;BR /&gt;is set, and you can modify maxfile and maxfiles_lim &lt;BR /&gt;up to 10000 or whatever.&lt;BR /&gt;You can have your application runnig with many sockets&lt;BR /&gt;as you need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2000 09:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-number-of-file-descriptors-per-process/m-p/2435014#M4583</guid>
      <dc:creator>Miguel Angel Ortega</dc:creator>
      <dc:date>2000-10-05T09:33:08Z</dc:date>
    </item>
  </channel>
</rss>

