<?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: Per process memory limit? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045131#M303591</link>
    <description>memory leak you can observe through the kmeminfo tool.Collect an output every day and see whihc value is increasing.&lt;BR /&gt;&lt;BR /&gt;In HP-UX 11.11 i had oberved the kernel arena ALLOCB_MBLK_SM is taking 15GB of memory and it is increasing everyday..</description>
    <pubDate>Tue, 31 Jul 2007 11:17:21 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2007-07-31T11:17:21Z</dc:date>
    <item>
      <title>Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045117#M303577</link>
      <description>&lt;BR /&gt;I need to find out the process memory limit between two different systems. &lt;BR /&gt;&lt;BR /&gt;One is a A500 running 11.00 and the other one is rx2620 running 11.23.&lt;BR /&gt;&lt;BR /&gt;Also how do I trace the process memory usage?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 08:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045117#M303577</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-27T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045118#M303578</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Check out this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1012226" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1012226&lt;/A&gt;</description>
      <pubDate>Fri, 27 Jul 2007 08:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045118#M303578</guid>
      <dc:creator>RobinKing</dc:creator>
      <dc:date>2007-07-27T08:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045119#M303579</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Process memory limit of what?  Do you mean the data size, sstack size, shared memory limit?  Is it a 32-bit or 64-bit process?&lt;BR /&gt;&lt;BR /&gt;If so, examine the appropriate kernel parameters by comparing the output of 'kmtune' (on 11.0) and 'kctune' on 11.23.  See the manpages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Jul 2007 09:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045119#M303579</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-27T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045120#M303580</link>
      <description>I got the output of kctune and kmtune, but which kernel variables do I look at?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045120#M303580</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-27T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045121#M303581</link>
      <description>The following kernel tunables would help in determining that:&lt;BR /&gt;&lt;BR /&gt;maxdsiz - size of the process data segment&lt;BR /&gt;maxssiz - size of the process stack segment&lt;BR /&gt;maxtsiz - size of the process text segment</description>
      <pubDate>Fri, 27 Jul 2007 11:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045121#M303581</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-27T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045122#M303582</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You should primarily look at:&lt;BR /&gt;&lt;BR /&gt;. maxdsiz &amp;amp; maxdsiz_64bit -&amp;gt; for the maximum data (heap) size&lt;BR /&gt;&lt;BR /&gt;. maxssiz, maxssiz_64bit -&amp;gt; for the maximum stack size&lt;BR /&gt;&lt;BR /&gt;. shmseg -&amp;gt; maximum number of shared memory segments per process&lt;BR /&gt;&lt;BR /&gt;Calculating the shared memory components of a process leads immediately to an accounting dilemma --- which process or which processes get "charged".  Examine the manpages for 'shmseg' to better understand what the number of segments means to the system and what controls the size of any segment.&lt;BR /&gt;&lt;BR /&gt;If you really want to begin to understand memory at a process-level you need to look at :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5965-4642/ch01s03.html" target="_blank"&gt;http://docs.hp.com/en/5965-4642/ch01s03.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60105/chatr_pa.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60105/chatr_pa.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60105/chatr_ia.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60105/chatr_ia.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Jul 2007 11:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045122#M303582</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-27T11:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045123#M303583</link>
      <description>&lt;BR /&gt;I couldn't get the bottom 3 links to work but the first one is real good stuff, thanks.</description>
      <pubDate>Mon, 30 Jul 2007 09:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045123#M303583</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-30T09:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045124#M303584</link>
      <description>&lt;!--!*#--&gt;I had a ProC program crash again today. The memory usage got as high as 18892 in 1K blocks. Then it crashed. After restart, it's growing again.  What are its normal parameters? Is 18892 definitely out of bounds?&lt;BR /&gt;&lt;BR /&gt;Is there a kernel variable I can tune, or is this strictly a code issue?  A memory leak has been suspected.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mon Jul 30 10:47:04 EDT 2007&lt;BR /&gt;&lt;BR /&gt;  18892 14395 /apps/qms/bin/qms108a /bin/ON1108 /apps/qms/fims/upload /data/hnstest&lt;BR /&gt;   1860 14016 /apps/qms/bin/qms108wrc /bin/ON1108wrc /data/hnswrc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mon Jul 30 10:47:34 EDT 2007&lt;BR /&gt;&lt;BR /&gt;   1860 14016 /apps/qms/bin/qms108wrc /bin/ON1108wrc /data/hnswrc&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:58:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045124#M303584</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-30T10:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045125#M303585</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;See my last response in your ProC thread.  You can view your kernel settings with 'kctune' on 11.23 and 'fmtune' on 11.0.  See the manpages for the various options.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 30 Jul 2007 11:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045125#M303585</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-30T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045126#M303586</link>
      <description>&lt;!--!*#--&gt;I got the settings, but not sure if they are sufficient or not:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Maximum data (heap) size &lt;BR /&gt;&lt;BR /&gt;maxdsiz                   1073741824  1073741824     Immed&lt;BR /&gt;maxdsiz_64bit             2147483648  2147483648     Immed&lt;BR /&gt;&lt;BR /&gt;Maximum stack size &lt;BR /&gt;&lt;BR /&gt;maxssiz                    134217728  134217728      Immed&lt;BR /&gt;maxssiz_64bit             1073741824  1073741824     Immed&lt;BR /&gt;&lt;BR /&gt;Process text segment size&lt;BR /&gt;&lt;BR /&gt;maxtsiz                    100663296  Default        Immed&lt;BR /&gt;maxtsiz_64bit             1073741824  Default        Immed&lt;BR /&gt;&lt;BR /&gt;Maximum number of shared memory segments per process    &lt;BR /&gt;&lt;BR /&gt;shmseg                           120  120            Immed&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 14:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045126#M303586</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-30T14:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045127#M303587</link>
      <description>&amp;gt;  I got the settings, but not sure if they are sufficient or not:&lt;BR /&gt; &lt;BR /&gt;The question is hard to answer because it depends on the requirements of the program. Unfortunately, the majority of programmers never handle memory allocation requests properly. The programs simply ask for RAM and start using it without the slightest check as to success. So the program uses the non-existent memory and HP-UX kills the program.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; 18892 in 1K blocks &lt;BR /&gt; &lt;BR /&gt;18 megs? That is nothing in terms of local data area. Your kernel limit is 1000 megs for 32bit programs and 2000 megs for 64bit programs. But these are nothing more than arbitrary fences. Run SAM and change the limits (maxdsiz and maxdsiz_64) to 2000 megs and 8000 megs, then try the program again.&lt;BR /&gt; &lt;BR /&gt;I am ASSUMING that the environment ProC runs in has ulimit -m set to unlimited. I am also assuming that you are NOT seeing error messages on the console or in syslog that say you are out of swap space. You can run processes that use a lot more memory than you have RAM due to virtual memory (the swap area). Naturally, processes that are too big to fit will constantly swap in and out (but not crash) creating enormous performance delays.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 20:29:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045127#M303587</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-07-30T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045128#M303588</link>
      <description>kmtune|grep -i shmmax&lt;BR /&gt;&lt;BR /&gt;shmmax limits the maximum amount of memory whihc an be occupied by a single process.&lt;BR /&gt;&lt;BR /&gt;Example in a system with 8GB  physcial memory setting to shmmax to 6GB is not recommended.In this case a single process takes that memory and only 2GB is left out for the entire other process.Also depends on requierment of app/db/etc...</description>
      <pubDate>Mon, 30 Jul 2007 23:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045128#M303588</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-07-30T23:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045129#M303589</link>
      <description>I ran that UNIX95 command in a script writing to a log file.&lt;BR /&gt;&lt;BR /&gt;The program crashed twice again and both times the memory had increased to 18892K just prior to crashing. &lt;BR /&gt;&lt;BR /&gt;Which kernel variable would you recommend tuning based on this?&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jul 2007 10:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045129#M303589</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-31T10:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045130#M303590</link>
      <description>This seems to be related to your diropen() problem WHICH IS NOT A CRASH and should not be referred to as a CRASH. You only confuse the issue when you use that word. The correct terminology is that diropen() returned a NULL pointer and errno was set to xxx. Your memory usage so far has been trivial and I have yet to see errno set to ENOMEM. This memory wild goose chase is probably my fault because I simply mentioned that diropen() could return a NULL result for many reasons and that one of the possible reasons was that malloc() could not allocate additional memory --- that is certainly not the only reason. You have been told to capture errno immediately and you fail to do that. Bear in mind, that something as seemingly trivial as trying to output the value of errno could cause a system call to fail and give you the wrong results. I don't even like to use the function strerror() because I would much rather have the integer value. &lt;BR /&gt;&lt;BR /&gt;In the example I supplied, I showed the use of on assign_errno() macro.  You will note that as soon as diropen() returned a NULL pointer, I used this macro to copy errno to a local variable so that that value would not be altered by subsequent calls. This is the approach you need to take.</description>
      <pubDate>Tue, 31 Jul 2007 10:45:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045130#M303590</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-31T10:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045131#M303591</link>
      <description>memory leak you can observe through the kmeminfo tool.Collect an output every day and see whihc value is increasing.&lt;BR /&gt;&lt;BR /&gt;In HP-UX 11.11 i had oberved the kernel arena ALLOCB_MBLK_SM is taking 15GB of memory and it is increasing everyday..</description>
      <pubDate>Tue, 31 Jul 2007 11:17:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045131#M303591</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-07-31T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Per process memory limit?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045132#M303592</link>
      <description>The issue is finally resolved.&lt;BR /&gt;&lt;BR /&gt;The issue was that a file was being opened and not closed. &lt;BR /&gt;&lt;BR /&gt;Thanks for all input.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/per-process-memory-limit/m-p/4045132#M303592</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-08-02T13:12:20Z</dc:date>
    </item>
  </channel>
</rss>

