<?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: Oracle shadow process memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950752#M893140</link>
    <description>What method are you using to measure how much memory is being taken up by the processes in question?  &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 14 Apr 2003 15:21:40 GMT</pubDate>
    <dc:creator>Gene Kornacki_3</dc:creator>
    <dc:date>2003-04-14T15:21:40Z</dc:date>
    <item>
      <title>Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950748#M893136</link>
      <description>We have an application that uses dedicated Oracle shadow processes.  Currently the application used Oracle 8.1.7.3.  I have built and run the same application code on Oracle 9.2.0.3 but I have noticed that the Oracle shadow processes use double the memory that they used at 8.1.7.3.  I have tried playing with pga_aggregate_target but this had made no difference.&lt;BR /&gt;I have logged a call with Oracle but wanted to know if anyone out there had seen the same thing.</description>
      <pubDate>Mon, 14 Apr 2003 13:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950748#M893136</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-04-14T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950749#M893137</link>
      <description>Wild guess...&lt;BR /&gt;&lt;BR /&gt;is the 8.1.7.3 a 32-bit app, and 9.2.0.3 a 64-bit app?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 13:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950749#M893137</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950750#M893138</link>
      <description>Duncan,&lt;BR /&gt;  although Oracle 9i is 64-bit only on HP-UX, the application I am using is still 32-bit and uses the Oracle 32 bit libraries in $ORACLE_HOME/lib32.&lt;BR /&gt;  Even if the application was 64-bit, would it really lead to an Oracle shadow that is twice the size?</description>
      <pubDate>Mon, 14 Apr 2003 13:56:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950750#M893138</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-04-14T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950751#M893139</link>
      <description>Ian,&lt;BR /&gt;&lt;BR /&gt;I don't know! Like I said I was just guessing... I'm sure a better mind than mine will be able to give you a better answer..&lt;BR /&gt;&lt;BR /&gt;Sorry&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Apr 2003 14:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950751#M893139</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2003-04-14T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950752#M893140</link>
      <description>What method are you using to measure how much memory is being taken up by the processes in question?  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2003 15:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950752#M893140</guid>
      <dc:creator>Gene Kornacki_3</dc:creator>
      <dc:date>2003-04-14T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950753#M893141</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can measurement these using v$sesstat to look up pga and uga memory. This will give you a better estimate of memory increases per session across versions. &lt;BR /&gt;&lt;BR /&gt;Its true that Oracle 8.1.7 needs more memory for the shadow processes. &lt;BR /&gt;In the case of an Oracle shadow process or foreground process the text segment will always be shared as it is the same program. The shadow process will have a shared segment, the SGA. This memory should only be counted for the first process. &lt;BR /&gt;&lt;BR /&gt;Using pmap utility (pmap is a Solaris utility only), you can determine the following: &lt;BR /&gt;&lt;BR /&gt;1)How much memory a process is using &lt;BR /&gt;&lt;BR /&gt;2)How much of that memory is shared &lt;BR /&gt;&lt;BR /&gt;You can also use the normal 'ps' utility. &lt;BR /&gt;This 'ps' utility will print out information about any process currently active on the system. Using 'ps' with the '-l' will cause 'ps' to print out the SZ field, which contains the virtual size of the process's non-text segments, measured in pages. While this figure is an accurate measure of the virtual memory being used by this process, it is not accurate if the process has attached a shared memory segment. This means that when sizing memory, you must subtract the size of the SGA from the virtual memory used by all of the Oracle background and shadow processes. &lt;BR /&gt;&lt;BR /&gt;By using PMAP you can also see that the SGA is always part of the shared memory of a shadow process. This is normal. To get the real amount of memory always subtract the SGA.  Determining the memory for the shadow processes of 8.1.7 this way will give you a good idea of your memory requirement.  Otherwise you can use the following query to determine the sum of PGA and UGA memory which will also give you some idea on your total memory requirement: &lt;BR /&gt;&lt;BR /&gt;compute sum of maxmem on report &lt;BR /&gt;break on report &lt;BR /&gt;&lt;BR /&gt;select se.sid,n.name, max(se.value) maxmem &lt;BR /&gt;from v$sesstat se,v$statname n &lt;BR /&gt;where n.statistic# = se.statistic# &lt;BR /&gt;and n.name in ('session pga memory','session pga memory max', &lt;BR /&gt;'session uga memory','session uga memory max') &lt;BR /&gt;group by n.name,se.sid &lt;BR /&gt;order by 3 &lt;BR /&gt;/ &lt;BR /&gt;&lt;BR /&gt;Further for reducing the memory required for the shadow processes you can use the init parameters SORT_AREA_SIZE and SORT_AREA_RETAINED_SIZE to some extent. These control the size of the UGA and PGA. &lt;BR /&gt;&lt;BR /&gt;If you find your available memory is not sufficient to run a dedicated server you can very well go for MTS but at the cost of reduced performance of the application due to increased wait times. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 06:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950753#M893141</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-04-15T06:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950754#M893142</link>
      <description>Ian, &lt;BR /&gt;&lt;BR /&gt;Overall, the answer you are looking for is, "Yes, 9i takes up twice as much memory as 8i".  This was also true in the change from 8.0 to 8i as well.  I wouldn't worry about it to much, as the "ps -elf" command will show you the total amount of memory that the process is taking up, but this aso includes the shared memory that Oracle takes up as well.  &lt;BR /&gt;&lt;BR /&gt;Overall, I wouldn't worry about it to much, and would just keep an eye on available memory.  Inrdu posted well on how to reduce the pga and sga as needed.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 15 Apr 2003 16:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950754#M893142</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-04-15T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950755#M893143</link>
      <description>Oracle 9i documentation says:&lt;BR /&gt;&lt;BR /&gt;With PGA_AGGREGATE_TARGET, sizing of work areas for all dedicated sessions is automatic and all *_AREA_SIZE parameters are ignored for these sessions.&lt;BR /&gt;&lt;BR /&gt;I have moved from Oracle 7 to 9i and it needs 2-3 times more Memory.</description>
      <pubDate>Fri, 19 Mar 2004 05:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950755#M893143</guid>
      <dc:creator>Yildiz_1</dc:creator>
      <dc:date>2004-03-19T05:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950756#M893144</link>
      <description>Look at metalink Note:174555.1 &lt;BR /&gt;UNIX: Determining the Size of an Oracle Process&lt;BR /&gt;&lt;BR /&gt;As for the PGA_AGGREGATE_TARGET, Oracle will allocate min(5% PGA_AGGREGATE_TARGET, 100MB) to each process.&lt;BR /&gt;&lt;BR /&gt;This rule is not enforced drasticaly, we've seen pga consumption per process far more than 100 Mo.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2004 07:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950756#M893144</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-19T07:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950757#M893145</link>
      <description>Just a note on using ps to examin process memory. ps -efl shows memory usage in pages (4k) which is not the most useful unit of measure for a sysadmin. Try this:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -u oracle -o vsz,pid,args | sort -rn&lt;BR /&gt; &lt;BR /&gt;That shows the amount of memory used in Kbytes. To look at everything sorted by memory usage:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -eo vsz,pid,args | sort -rn | more&lt;BR /&gt; &lt;BR /&gt;As mentioned, SGA (shared memory) is not counted because it really isn't counted for any single process.</description>
      <pubDate>Fri, 19 Mar 2004 08:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950757#M893145</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-03-19T08:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950758#M893146</link>
      <description>Ian&lt;BR /&gt;&lt;BR /&gt;Upgrading from 8.0.6.3 to 9.0.2.3, I saw exactly the same thing.&lt;BR /&gt;We are busy looking at SGA settings to see if we can reduce this usage, but it would appear that the background/shadow processes simply load more code into their stacks.</description>
      <pubDate>Fri, 19 Mar 2004 08:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950758#M893146</guid>
      <dc:creator>Jakes Louw</dc:creator>
      <dc:date>2004-03-19T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle shadow process memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950759#M893147</link>
      <description>Nitpicking...&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;Ian Lochray   Apr 14, 2003 18:56:07 GMT   &lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; Even if the application was 64-bit, would it really lead to an Oracle shadow that is twice the size?  &lt;BR /&gt;&lt;BR /&gt;The the shadow (server code) is running the Oracle executable and will be 64 bit. It will be independend of whether the application (client code) is 32 bit or not. They are seperated/connected by SQL*net.&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Fri, 19 Mar 2004 09:31:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-shadow-process-memory/m-p/2950759#M893147</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-19T09:31:19Z</dc:date>
    </item>
  </channel>
</rss>

