<?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: memory allocation for programs in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466941#M12129</link>
    <description>Oh, RSS could be the column header for display purposes, and rss the option field.&lt;BR /&gt;Just use 'man ps' and '/RSS'&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Jan 2005 12:31:22 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2005-01-20T12:31:22Z</dc:date>
    <item>
      <title>memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466930#M12118</link>
      <description>I am wondering how the loader part of an executable calculates the&lt;BR /&gt;amount of memory to set aside for each program a user runs in his&lt;BR /&gt;environment. That is when a user types in a programs name at the prompt&lt;BR /&gt;and hits "Enter" How does the loader figure out how much memory to set&lt;BR /&gt;aside for it to run. I think it needs some for code, some for stack&lt;BR /&gt;space, and some for data.&lt;BR /&gt;&lt;BR /&gt;We have identical programs, running on different servers, that are&lt;BR /&gt;grabbing two different amounts of memory when they are run.&lt;BR /&gt;The two different servers are as follows -&lt;BR /&gt;1. Alpha 4100 running V4.0F PK7 - has 3GB RAM&lt;BR /&gt;2. Alpha ES40 running V5.1b PK4 - has 8GB RAM&lt;BR /&gt;&lt;BR /&gt;On the ES40 the program grabs 10x the amount of memory that it does on&lt;BR /&gt;the 4100.&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Wed, 19 Jan 2005 16:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466930#M12118</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-19T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466931#M12119</link>
      <description>What do you use to tell the size?&lt;BR /&gt;ps -o RSS,VSZ ?&lt;BR /&gt;&lt;BR /&gt;RSS  is  Real memory (resident set)&lt;BR /&gt;VSZ  is  Process virtual address size ... the program may or might not touch that all.&lt;BR /&gt;I suspect that RSS is similar, VSZ different.&lt;BR /&gt;&lt;BR /&gt;I would also compare output for sysconfig -q proc &lt;BR /&gt;&lt;BR /&gt;And check: ulimit -a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this help some,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Jan 2005 21:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466931#M12119</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-19T21:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466932#M12120</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;can you post output of "ulimit -a" on both machines</description>
      <pubDate>Thu, 20 Jan 2005 01:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466932#M12120</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-01-20T01:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466933#M12121</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the two machines have a substantial difference in built in memory. There is a parameter that tells tru unix how much of a programme to hold in memory. With almost three times the memory size the es40 can hold more in memory.&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 04:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466933#M12121</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-20T04:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466934#M12122</link>
      <description>We are using RSS to compare. Attached is a text file(MS) with the ulimit -a from both machines.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Thu, 20 Jan 2005 09:46:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466934#M12122</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-20T09:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466935#M12123</link>
      <description>&lt;BR /&gt;Your STACK size seems unreasonable:&lt;BR /&gt;&lt;BR /&gt;ES40 ulimit -a&lt;BR /&gt;:&lt;BR /&gt;stack(kbytes)        4,194,304&lt;BR /&gt;&lt;BR /&gt;That's 4 GB of stack, where you used 2MB before. The app worked with the 2MB right? So it shoudl still work with that.&lt;BR /&gt;4GB of stack is a whole bunch of pagetable pages also!&lt;BR /&gt;If you do not have a very good reason for to have set it that high, then just fix the sysconfig proc entry for the stack and be happy.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 10:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466935#M12123</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-20T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466936#M12124</link>
      <description>We decided yesterday to do as you suggested. But we are going to adjust the data setting also. Why did you focus in on the stack only? Also does the loader use these values to calculate how much memory to set aside when loaded into memory?&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Thu, 20 Jan 2005 10:13:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466936#M12124</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-20T10:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466937#M12125</link>
      <description>&amp;gt;&amp;gt; Why did you focus in on the stack only? &lt;BR /&gt;&lt;BR /&gt;a) Because I am in a BEA training with limited downtime :-).&lt;BR /&gt;&lt;BR /&gt;b) Because that value is so clearly wrong (assuming you had a working system).&lt;BR /&gt;Typical sizes are 32M or so. If you need more (lots of local variables) then you wouls probably know.&lt;BR /&gt;&lt;BR /&gt;c) I could imagine stack being different, as pages on either end will actually be touched.&lt;BR /&gt;'data' is just a fence. Just telling the system how far it can go, but you probably will not go there, so it does not matter if it is too far. However... if an application loses control, then it will not be stopped by this clean fence, but by some nasty resource depletion which my hurt other applications.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; also does the loader use these values to calculate how much memory to set aside when loaded into memory.&lt;BR /&gt;&lt;BR /&gt;Yes... but that is all 'virtual'. Just address ranges.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 11:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466937#M12125</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-20T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466938#M12126</link>
      <description>We changed the setting - per_proc_stack_size and restarted the server and started one of the programs and it was the same saize as before the change. We recompiled the program and restarted it no change.&lt;BR /&gt;&lt;BR /&gt;The ulimit list of stack size did not change either.&lt;BR /&gt;&lt;BR /&gt;What kernel variable should I be changing?&lt;BR /&gt;&lt;BR /&gt;Tom Wallin&lt;BR /&gt;&lt;BR /&gt;ps Thanks for your time.</description>
      <pubDate>Thu, 20 Jan 2005 11:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466938#M12126</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-20T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466939#M12127</link>
      <description>Tom,&lt;BR /&gt;&lt;BR /&gt;could you post the output of the ps as Hein first suggested from both machines?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 11:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466939#M12127</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-20T11:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466940#M12128</link>
      <description>Michael,&lt;BR /&gt;I tried the ps -o but the ps cmd did not like the RSS or VSZ. It gives the msg - "ps: unknown variable in format: RSS".&lt;BR /&gt;&lt;BR /&gt;I was wrong about the stack size not changing in my previous msg. The size did change.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 12:26:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466940#M12128</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-20T12:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466941#M12129</link>
      <description>Oh, RSS could be the column header for display purposes, and rss the option field.&lt;BR /&gt;Just use 'man ps' and '/RSS'&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 12:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466941#M12129</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-20T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466942#M12130</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;ps -eo pid,rssize,vsize,command&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 12:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466942#M12130</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-01-20T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466943#M12131</link>
      <description>I got the ps -O thing now. Attached is the ps cmd from each server as a MS text file.&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Thu, 20 Jan 2005 12:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466943#M12131</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-20T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466944#M12132</link>
      <description>I have tried tha things suggested. We are still stuck with the same problem. I have moved the question to the "General" part of the forum.&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Mon, 24 Jan 2005 10:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466944#M12132</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-01-24T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocation for programs</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466945#M12133</link>
      <description>I wanted to update this thread with the final fixes. Both were settings in sysconfigtab. One in the vm: section - vm_segmentation and one in the rt: section aio_task_max_num.&lt;BR /&gt;We started with a program that was taking 10MB of RSS per user. It turns out that the program itself takes 1.8MB of RSS. Another 3.6MB was taken when vm_segmentation was set to 1. This setting causes all libraries referenced by the program to be loaded with it into memory. This was for security purposes.&lt;BR /&gt;And the last amount of RSS 4.6MB was taken because we had the aio_task_max_num set to 60108. This setting causes the initialization routines in libaio to allocate 60108 aio result blocks. These are used to contain context for outstanding aio requests. At 80 bytes per result block the resulting memory allocation is 587 pages (4.6 Mbytes).&lt;BR /&gt;We think that the 60108 was set for Database purposes. But we are unsure why. We did not need the setting for Informix.&lt;BR /&gt;&lt;BR /&gt;Tom Wallin</description>
      <pubDate>Mon, 28 Feb 2005 11:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/memory-allocation-for-programs/m-p/3466945#M12133</guid>
      <dc:creator>Tom Wallin_1</dc:creator>
      <dc:date>2005-02-28T11:07:51Z</dc:date>
    </item>
  </channel>
</rss>

