<?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: ulimit options in plain English in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412052#M61368</link>
    <description>During our oracle install in Red Hat. this is the way I set up for oracle user&lt;BR /&gt;&lt;BR /&gt;To make these changes, run the following as root:&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt;&amp;gt; /etc/security/limits.conf &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;oracle soft nproc 2047&lt;BR /&gt;oracle hard nproc 16384&lt;BR /&gt;oracle soft nofile 1024&lt;BR /&gt;oracle hard nofile 65536&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt;&amp;gt; /etc/pam.d/login &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;session required /lib/security/pam_limits.so&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Update the default shell startup file for the "oracle" UNIX account.&lt;BR /&gt;&lt;BR /&gt;    * For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file by running the following command:&lt;BR /&gt;&lt;BR /&gt;      cat &amp;gt;&amp;gt; /etc/profile &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;      if [ \$USER = "oracle" ]; then &lt;BR /&gt;       if [ \$SHELL = "/bin/ksh" ]; then&lt;BR /&gt;       ulimit -p 16384&lt;BR /&gt;       ulimit -n 65536&lt;BR /&gt;       else&lt;BR /&gt;       ulimit -u 16384 -n 65536&lt;BR /&gt;       fi&lt;BR /&gt;       umask 022&lt;BR /&gt;      fi&lt;BR /&gt;      EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 04 May 2009 05:31:59 GMT</pubDate>
    <dc:creator>Basheer_2</dc:creator>
    <dc:date>2009-05-04T05:31:59Z</dc:date>
    <item>
      <title>ulimit options in plain English</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412051#M61367</link>
      <description>ulimit &lt;BR /&gt;-c     The maximum size of core files created&lt;BR /&gt;-m     The maximum resident set size&lt;BR /&gt;-n     The maximum number of open file descriptors (most systems do not allow this value to be set)&lt;BR /&gt;&lt;BR /&gt;I want to understand the above ulimit options in plain English, esp the last one (-n)&lt;BR /&gt;&lt;BR /&gt;the IBM domino server, runs via an ordinary user 'notes', so before become 'notes' &lt;BR /&gt;# ulimit -n 40000&lt;BR /&gt;# su - notes&lt;BR /&gt;and then run the domino server.&lt;BR /&gt;&lt;BR /&gt;Ok, one more thing &lt;BR /&gt;# ulimit -n&lt;BR /&gt;1024&lt;BR /&gt;&lt;BR /&gt;while &lt;BR /&gt;&lt;BR /&gt;# cat /proc/sys/fs/file-max&lt;BR /&gt;205044&lt;BR /&gt;&lt;BR /&gt;why the difference ? which one is wrong ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sun, 03 May 2009 17:53:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412051#M61367</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-05-03T17:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit options in plain English</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412052#M61368</link>
      <description>During our oracle install in Red Hat. this is the way I set up for oracle user&lt;BR /&gt;&lt;BR /&gt;To make these changes, run the following as root:&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt;&amp;gt; /etc/security/limits.conf &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;oracle soft nproc 2047&lt;BR /&gt;oracle hard nproc 16384&lt;BR /&gt;oracle soft nofile 1024&lt;BR /&gt;oracle hard nofile 65536&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt;&amp;gt; /etc/pam.d/login &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;session required /lib/security/pam_limits.so&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Update the default shell startup file for the "oracle" UNIX account.&lt;BR /&gt;&lt;BR /&gt;    * For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file by running the following command:&lt;BR /&gt;&lt;BR /&gt;      cat &amp;gt;&amp;gt; /etc/profile &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;      if [ \$USER = "oracle" ]; then &lt;BR /&gt;       if [ \$SHELL = "/bin/ksh" ]; then&lt;BR /&gt;       ulimit -p 16384&lt;BR /&gt;       ulimit -n 65536&lt;BR /&gt;       else&lt;BR /&gt;       ulimit -u 16384 -n 65536&lt;BR /&gt;       fi&lt;BR /&gt;       umask 022&lt;BR /&gt;      fi&lt;BR /&gt;      EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 May 2009 05:31:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412052#M61368</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2009-05-04T05:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit options in plain English</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412053#M61369</link>
      <description>ulimit and /etc/security/limits.conf control per-session limits. The things under /proc are mostly system-wide limits.&lt;BR /&gt;&lt;BR /&gt;-c is the maximum size for core dumps. The most common settings I've seen are "0" to disable core dumps and "unlimited" because truncated core dumps are probably not useful.&lt;BR /&gt;&lt;BR /&gt;-m is a limit on resident memory size, but I'm not sure if that specific ulimit is honored on Linux or if the option is just there for compatibility.&lt;BR /&gt;&lt;BR /&gt;-n is a limit on open file descriptors. Open files, network connections, and some IPCs all use file descriptors.&lt;BR /&gt;&lt;BR /&gt;Off the top of my head I don't remember if -m and -n set the limits for each process or for the entire session, but most proper UNIX daemons end up with their own sessions anyway.</description>
      <pubDate>Mon, 04 May 2009 21:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit-options-in-plain-english/m-p/4412053#M61369</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-05-04T21:45:40Z</dc:date>
    </item>
  </channel>
</rss>

