<?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 Windows: Strange behavior in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496725#M830478</link>
    <description>It looks like oracle uses a shared memory base address to reference memory, unless you change that, it will always start in effectively the same memory window. The considered opinion amongst my collegues is that memory windows neither work correctly or are supported for Oracle 7.x and we're not sure about Oracle 8.x</description>
    <pubDate>Thu, 22 Feb 2001 15:13:01 GMT</pubDate>
    <dc:creator>Jack Marshall</dc:creator>
    <dc:date>2001-02-22T15:13:01Z</dc:date>
    <item>
      <title>Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496719#M830472</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am testing out memory windows and I get some&lt;BR /&gt;strange results.&lt;BR /&gt;&lt;BR /&gt;I start three oracle instances with setmemwindow. The /etc/services.window looks like:&lt;BR /&gt;&lt;BR /&gt;BMP 5&lt;BR /&gt;INIT01 6&lt;BR /&gt;ROAM01 7&lt;BR /&gt;&lt;BR /&gt;I start the instances the following way from a shell script:&lt;BR /&gt;&lt;BR /&gt;WinID=$(getmemwindow $ORACLE_SID)&lt;BR /&gt;setmemwindow -i $WinId svrmgrl &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;connect internal&lt;BR /&gt;shutdown abort&lt;BR /&gt;startup pfile=$PFILE&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;The above statements are within a while loop&lt;BR /&gt;that goes through the rows in the /etc/oratab file.&lt;BR /&gt;&lt;BR /&gt;Everything described above works fine. But when I remove the setmemwindow command in the&lt;BR /&gt;above script to test what happens my instances still start in separate memory windows!! How is this possible ????!! I would be very glad if&lt;BR /&gt;someone could explain this to me.&lt;BR /&gt;&lt;BR /&gt;Then when I commented out all rows in /etc/services.window all instances used the common global memory window. &lt;BR /&gt;&lt;BR /&gt;I used the memwin_stats command to check which&lt;BR /&gt;memory windows where used. The mem window patch I have on my machine is PHCO_20443.&lt;BR /&gt;&lt;BR /&gt;/Robert Maretic&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2001 16:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496719#M830472</guid>
      <dc:creator>Robert Maretic</dc:creator>
      <dc:date>2001-02-21T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496720#M830473</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;The /etc/services.window file already associates the applications with memory windows.  The execution of setmemwindow in your script is redundant.&lt;BR /&gt;&lt;BR /&gt;See /usr/share/doc/mem_wndws.txt and the services.window manpage for more info.&lt;BR /&gt;&lt;BR /&gt;-sam</description>
      <pubDate>Wed, 21 Feb 2001 16:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496720#M830473</guid>
      <dc:creator>Sam Nicholls</dc:creator>
      <dc:date>2001-02-21T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496721#M830474</link>
      <description>Ooops, I was wrong.  Please disregard my previous reply.  /etc/services.window only maps keys to ids.  You still have to use setmemwindow to associate a process with a user-specified memory window.&lt;BR /&gt;-sam</description>
      <pubDate>Wed, 21 Feb 2001 17:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496721#M830474</guid>
      <dc:creator>Sam Nicholls</dc:creator>
      <dc:date>2001-02-21T17:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496722#M830475</link>
      <description>Hi again&lt;BR /&gt;&lt;BR /&gt;But does is not seem strange that the instances are started up in separate memory windows when executing the svrmgrl command&lt;BR /&gt;without using setmemwindow? This seems almost like&lt;BR /&gt;magic to me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is only when I comment out all entries in /etc/services.window that all instances are started in the same memory window.&lt;BR /&gt;&lt;BR /&gt;/Robert</description>
      <pubDate>Wed, 21 Feb 2001 17:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496722#M830475</guid>
      <dc:creator>Robert Maretic</dc:creator>
      <dc:date>2001-02-21T17:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496723#M830476</link>
      <description>Are you getting the behaviour you expect. My experience of memory windows led me to believe that Oracle would only allocate memory from the global pool (Q4). Mem wins are allocated out of the private quadrants Q2+Q3.&lt;BR /&gt;As an aside getmemwindow will pattern match on the window name (e.g. it will see INIT as being the same as INIT01, which is not ideal).&lt;BR /&gt;&lt;BR /&gt;An unsupported tool 'shminfo' is available from HP which may give you more information about where your memory is being allocated.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2001 09:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496723#M830476</guid>
      <dc:creator>Jack Marshall</dc:creator>
      <dc:date>2001-02-22T09:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496724#M830477</link>
      <description>Yes, partially. Because the sum of the SGA:s for the three&lt;BR /&gt;instances is larger than 1,75 Gb so when I use memory windows all my instances startup succesfully, but when I&lt;BR /&gt;do not use memory windows the last started instance cannot start because of insufficient memory. &lt;BR /&gt;&lt;BR /&gt;I am very curious how and why the instances are started in separate memory windows when I don't use the setmemwindow command in my start script. &lt;BR /&gt;&lt;BR /&gt;For me it seems like something is cached/stored somewhere. Somehow the HPUX recognises which process where started in certain memory windows as&lt;BR /&gt;long as there are entries in the /etc/services.window file.&lt;BR /&gt;&lt;BR /&gt;I have even tried to reboot the server to see if the instances still are started separate memory windows without the setmemwindow command. And the result was that as long as there is winid entries in the /etc/services.window file, the instances are started in separate memory windows.</description>
      <pubDate>Thu, 22 Feb 2001 10:16:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496724#M830477</guid>
      <dc:creator>Robert Maretic</dc:creator>
      <dc:date>2001-02-22T10:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496725#M830478</link>
      <description>It looks like oracle uses a shared memory base address to reference memory, unless you change that, it will always start in effectively the same memory window. The considered opinion amongst my collegues is that memory windows neither work correctly or are supported for Oracle 7.x and we're not sure about Oracle 8.x</description>
      <pubDate>Thu, 22 Feb 2001 15:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496725#M830478</guid>
      <dc:creator>Jack Marshall</dc:creator>
      <dc:date>2001-02-22T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496726#M830479</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;It looks like Oracle 8.0.6 and later automatically supports memory windows.  Apparently, svrmgr is smart enough to look for a key in /etc/services.window that matches $ORACLE_SID and automatically do the setmemwindow (or equivalent system call).&lt;BR /&gt;&lt;BR /&gt;Here is some info I found with a reference to 'Large SGA under HPUX 11' under the Oracle Metadata Technical forum.&lt;BR /&gt;&lt;BR /&gt;BTW, from my experience, memory windows works very well.  I know HP worked closely with Oracle to qualify running multiple instances in separate mem windows and get Oracle's endorsement of the feature.  Oracle would not support it if it didn't work.&lt;BR /&gt;&lt;BR /&gt;-sam&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------&amp;gt;&amp;gt;&amp;gt; snip &amp;lt;&amp;lt;&amp;lt;-------------------&lt;BR /&gt;To configure memory windows for Oracle:&lt;BR /&gt;&lt;BR /&gt;     1.  Ensure that the /etc/services.window file exists.&lt;BR /&gt;&lt;BR /&gt;     2.  Add an entry to the services.window file that contains&lt;BR /&gt;         the $ORACLE_SID  for every instance mapped to use a unique&lt;BR /&gt;         window ID.&lt;BR /&gt;&lt;BR /&gt;     Note: See 'Large SGA under HPUX 11' under the Oracle Metadata&lt;BR /&gt;           Technical forum.&lt;BR /&gt;&lt;BR /&gt;Per the Oracle web site, memory windows is supported for Oracle 8.06,&lt;BR /&gt;or later (although there may be a patch for 8.0.5).  Oracle 8.0.5 did&lt;BR /&gt;not attempt to control the memory window used, hence it could be forced&lt;BR /&gt;into a particular window ID by the setmemwindow command.&lt;BR /&gt;&lt;BR /&gt;As of version 8.0.6 and later, Oracle is aware of this feature and takes&lt;BR /&gt;control of the memory window.  Therefore, if there is no entry in the&lt;BR /&gt;/etc/services.window file, it explicitly uses the global window, and&lt;BR /&gt;setmemwindow has no effect.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2001 15:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496726#M830479</guid>
      <dc:creator>Sam Nicholls</dc:creator>
      <dc:date>2001-02-22T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496727#M830480</link>
      <description>Hi Robert,&lt;BR /&gt;One thing I noticed in your message&lt;BR /&gt;WinID=$(getmemwindow $ORACLE_SID)&lt;BR /&gt;is different from setmemwindow -i $WinId &lt;BR /&gt;$WinId is a different variable from $WinID under unix.&lt;BR /&gt;&lt;BR /&gt;One thing I found with memory windows is they last&lt;BR /&gt;as long as the unix server is up and I had the DBA 's create a new script that would do a setmemwindow -j (join) for restarting a DBMS  server &lt;BR /&gt;vs a setmemwindow -c (create) &lt;BR /&gt;&lt;BR /&gt;-John H</description>
      <pubDate>Fri, 23 Feb 2001 00:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496727#M830480</guid>
      <dc:creator>John Hoffmaster</dc:creator>
      <dc:date>2001-02-23T00:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Windows: Strange behavior</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496728#M830481</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Thank you all, for all your replies, specially&lt;BR /&gt;Sam. &lt;BR /&gt;&lt;BR /&gt;Sam your answer was a real ten pointer.&lt;BR /&gt;&lt;BR /&gt;/Robert&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Feb 2001 06:26:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-windows-strange-behavior/m-p/2496728#M830481</guid>
      <dc:creator>Robert Maretic</dc:creator>
      <dc:date>2001-02-23T06:26:21Z</dc:date>
    </item>
  </channel>
</rss>

