<?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 Memory resource analysis - ideas please? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549194#M27832</link>
    <description>Hi - Wondering if anybody can help with a problem I have. I'm trying to quantify the amount of memory used by a dormant Oracle sql-net session. &lt;BR /&gt;&lt;BR /&gt;i.e when a client logs into an Oracle database a stub processexists on the host to handle traffic to that client. What I'm trying to establish is the impact one stub has in terms of memory only, with a view to predicting a volume of users at which point the machine will experience problems.&lt;BR /&gt;&lt;BR /&gt;I've can identify a dormant stub easily enough by watching it's cpu utilisation. I have then tried using glance, top &amp;amp; ps to determine the memory usage, but I'm getting very different figures from each tool.&lt;BR /&gt;&lt;BR /&gt;I think I understand the difference between data, text &amp;amp; stack. &amp;amp; I've grasped RSS &amp;amp; VSS. It would also be useful if I could determine the page size this machine is using, I know in 11.00 this is a kernel parameter, but I'm running 10.20.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest anything based on experience? If I can reach a final verdict over the amount of memory used, what borderline do I use to extrapolate my user limits? Is it reserved memory?&lt;BR /&gt;&lt;BR /&gt;If you can help I'd be grateful - thanks&lt;BR /&gt;&lt;BR /&gt;Phil C</description>
    <pubDate>Thu, 05 Jul 2001 16:24:52 GMT</pubDate>
    <dc:creator>phil cook</dc:creator>
    <dc:date>2001-07-05T16:24:52Z</dc:date>
    <item>
      <title>Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549194#M27832</link>
      <description>Hi - Wondering if anybody can help with a problem I have. I'm trying to quantify the amount of memory used by a dormant Oracle sql-net session. &lt;BR /&gt;&lt;BR /&gt;i.e when a client logs into an Oracle database a stub processexists on the host to handle traffic to that client. What I'm trying to establish is the impact one stub has in terms of memory only, with a view to predicting a volume of users at which point the machine will experience problems.&lt;BR /&gt;&lt;BR /&gt;I've can identify a dormant stub easily enough by watching it's cpu utilisation. I have then tried using glance, top &amp;amp; ps to determine the memory usage, but I'm getting very different figures from each tool.&lt;BR /&gt;&lt;BR /&gt;I think I understand the difference between data, text &amp;amp; stack. &amp;amp; I've grasped RSS &amp;amp; VSS. It would also be useful if I could determine the page size this machine is using, I know in 11.00 this is a kernel parameter, but I'm running 10.20.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest anything based on experience? If I can reach a final verdict over the amount of memory used, what borderline do I use to extrapolate my user limits? Is it reserved memory?&lt;BR /&gt;&lt;BR /&gt;If you can help I'd be grateful - thanks&lt;BR /&gt;&lt;BR /&gt;Phil C</description>
      <pubDate>Thu, 05 Jul 2001 16:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549194#M27832</guid>
      <dc:creator>phil cook</dc:creator>
      <dc:date>2001-07-05T16:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549195#M27833</link>
      <description>Hi Phil&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The simple way is to give the command ( i got this from the forums itself ):&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2 | grep to the procees you want to check.&lt;BR /&gt;&lt;BR /&gt;You can add the memory used by each user processes and since it is directly from the ps it is on the fly.&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2001 16:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549195#M27833</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-07-05T16:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549196#M27834</link>
      <description>Phil,&lt;BR /&gt;&lt;BR /&gt;Similar in form and function to the previous answer:&lt;BR /&gt;&lt;BR /&gt;ps -elf | sort -rn -k10 | more&lt;BR /&gt;&lt;BR /&gt;Column 10 will indicate each proc's memory usage in 4k pages.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Jim</description>
      <pubDate>Thu, 05 Jul 2001 16:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549196#M27834</guid>
      <dc:creator>Jim Turner</dc:creator>
      <dc:date>2001-07-05T16:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549197#M27835</link>
      <description>Thanks for your help. I have used ps in the end, bit confusd by all the different readings, but eventually got a grip looking at the M page in glance (process memory usage). &lt;BR /&gt;&lt;BR /&gt;Used ps to repeatedly sample to get hold of my dormant processes, then glance.&lt;BR /&gt;&lt;BR /&gt;Basing my final calculation on an as yet unknown figure for maximum recommended reserved swap. Also need to know the recommended ratio of memory/swap. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Fri, 06 Jul 2001 00:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549197#M27835</guid>
      <dc:creator>phil cook</dc:creator>
      <dc:date>2001-07-06T00:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549198#M27836</link>
      <description>hi... why don't you use the "top" system call? there are many options supported by this command and i think you can view all the necessary resources you need to know... hope this might help... more power...</description>
      <pubDate>Fri, 06 Jul 2001 00:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549198#M27836</guid>
      <dc:creator>Ronald Bolante</dc:creator>
      <dc:date>2001-07-06T00:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549199#M27837</link>
      <description>hi,&lt;BR /&gt;the memory to swap ratio is mainly depends on the application, and the physical memory u r having. its better to keep a swap of double the size of physical memory.&lt;BR /&gt;regards&lt;BR /&gt;jayamohan</description>
      <pubDate>Fri, 06 Jul 2001 05:34:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549199#M27837</guid>
      <dc:creator>JAYAMOHAN.V.D</dc:creator>
      <dc:date>2001-07-06T05:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549200#M27838</link>
      <description>Hi Phil:&lt;BR /&gt;&lt;BR /&gt;The memory reported by 'top', 'glance', ps' and 'vmstat' require some interpretation before you can compare their values.&lt;BR /&gt;&lt;BR /&gt;Take a look at Technical Knowledge Base document #A4678152 ("Comparing page size for vmstat, top, glance, ps -el"). &lt;BR /&gt;&lt;BR /&gt;/begin_quote/ &lt;BR /&gt;&lt;BR /&gt;1. Top reports free memory in 1kb chunks so to get them to match you must divide tops free amount by 4 to get the true number of 4kb pages free and have it match vmstat. In other words, top reports in 1kb pages so these numbers must be multiplied by 4 to get 4kb kernel pages numbers. &lt;BR /&gt;&lt;BR /&gt;2. For vmstat, avm (active virtual pages) and free (size of the free list) memory are reported in 4kb pages sizes. &lt;BR /&gt;&lt;BR /&gt;3. Glance reports 1kb page sizes. This number will often be significantly different from ps -el since glance reports usage of shared memory also. &lt;BR /&gt;&lt;BR /&gt;From the Glance help window for RSS (* PROC_MEM_RES): The number of KB of resident memory for the process. This consists of text, data, stack, as well as the process' portion of shared memory. This value is similar to the SZ field of the ps -el command, except that the ps command shows only data, stack, and text areas, and it reports their sizes in page units rather than KB. On some systems ps reports the virtual rather than &lt;BR /&gt;resident size. &lt;BR /&gt;&lt;BR /&gt;4. ps -el reports in 4kb kernel page sizes. &lt;BR /&gt;&lt;BR /&gt;/end_quote/ &lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 06 Jul 2001 22:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549200#M27838</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-06T22:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549201#M27839</link>
      <description>Swap space is very simple to calculate, and no, it has nothing to do with a ratio between RAM and swap.  Since HP-UX is a virtual memory system, the maximum amount of programs that can run at the same time is defined by swap space.  There is a kernel parameter that can append up to 7/8 of RAM to the swap total, which effectively extends this maximum virtual memory.&lt;BR /&gt;&lt;BR /&gt;The parameter is swapmem_on and when set to zero, swap space solely defines the amount of processes that can be run at the same time. If swapmem_on=1, then 7/8 RAM + swap defines the maximum value.&lt;BR /&gt;&lt;BR /&gt;Now being able to run 50 Gbytes of processes at the same time is a feature of HP-UX but it comes with an obvious penalty: paging out and back. So the decision is easy--total the maximum number of processes times amount of RAM needed, then make sure you have enough virtual memory to hold it all.&lt;BR /&gt;&lt;BR /&gt;Performance is simple: if all the processes that must run quickly will fit in RAM at the same time, all is well.  If not, buy more RAM. This is not a run/not-run question.  All those processes will run at the same time, but perhaps incredibly slow.  So when the system starts to slow down, wmstat or Glance will show page outs.  Buy RAM as neeed.</description>
      <pubDate>Sun, 08 Jul 2001 02:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549201#M27839</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-07-08T02:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Memory resource analysis - ideas please?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549202#M27840</link>
      <description>Thanks to everyone for their advice - been a useful exercise for me!&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 09 Jul 2001 14:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-resource-analysis-ideas-please/m-p/2549202#M27840</guid>
      <dc:creator>phil cook</dc:creator>
      <dc:date>2001-07-09T14:37:16Z</dc:date>
    </item>
  </channel>
</rss>

