- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Memory Windows: Strange behavior
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 08:23 AM
02-21-2001 08:23 AM
I am testing out memory windows and I get some
strange results.
I start three oracle instances with setmemwindow. The /etc/services.window looks like:
BMP 5
INIT01 6
ROAM01 7
I start the instances the following way from a shell script:
WinID=$(getmemwindow $ORACLE_SID)
setmemwindow -i $WinId svrmgrl <
shutdown abort
startup pfile=$PFILE
EOF
The above statements are within a while loop
that goes through the rows in the /etc/oratab file.
Everything described above works fine. But when I remove the setmemwindow command in the
above script to test what happens my instances still start in separate memory windows!! How is this possible ????!! I would be very glad if
someone could explain this to me.
Then when I commented out all rows in /etc/services.window all instances used the common global memory window.
I used the memwin_stats command to check which
memory windows where used. The mem window patch I have on my machine is PHCO_20443.
/Robert Maretic
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 08:49 AM
02-21-2001 08:49 AM
Re: Memory Windows: Strange behavior
The /etc/services.window file already associates the applications with memory windows. The execution of setmemwindow in your script is redundant.
See /usr/share/doc/mem_wndws.txt and the services.window manpage for more info.
-sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 09:01 AM
02-21-2001 09:01 AM
Re: Memory Windows: Strange behavior
-sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2001 09:17 AM
02-21-2001 09:17 AM
Re: Memory Windows: Strange behavior
But does is not seem strange that the instances are started up in separate memory windows when executing the svrmgrl command
without using setmemwindow? This seems almost like
magic to me.
It is only when I comment out all entries in /etc/services.window that all instances are started in the same memory window.
/Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 01:45 AM
02-22-2001 01:45 AM
Re: Memory Windows: Strange behavior
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).
An unsupported tool 'shminfo' is available from HP which may give you more information about where your memory is being allocated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 02:16 AM
02-22-2001 02:16 AM
Re: Memory Windows: Strange behavior
instances is larger than 1,75 Gb so when I use memory windows all my instances startup succesfully, but when I
do not use memory windows the last started instance cannot start because of insufficient memory.
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.
For me it seems like something is cached/stored somewhere. Somehow the HPUX recognises which process where started in certain memory windows as
long as there are entries in the /etc/services.window file.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 07:13 AM
02-22-2001 07:13 AM
Re: Memory Windows: Strange behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 07:55 AM
02-22-2001 07:55 AM
SolutionIt 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).
Here is some info I found with a reference to 'Large SGA under HPUX 11' under the Oracle Metadata Technical forum.
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.
-sam
------------------>>> snip <<<-------------------
To configure memory windows for Oracle:
1. Ensure that the /etc/services.window file exists.
2. Add an entry to the services.window file that contains
the $ORACLE_SID for every instance mapped to use a unique
window ID.
Note: See 'Large SGA under HPUX 11' under the Oracle Metadata
Technical forum.
Per the Oracle web site, memory windows is supported for Oracle 8.06,
or later (although there may be a patch for 8.0.5). Oracle 8.0.5 did
not attempt to control the memory window used, hence it could be forced
into a particular window ID by the setmemwindow command.
As of version 8.0.6 and later, Oracle is aware of this feature and takes
control of the memory window. Therefore, if there is no entry in the
/etc/services.window file, it explicitly uses the global window, and
setmemwindow has no effect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 04:14 PM
02-22-2001 04:14 PM
Re: Memory Windows: Strange behavior
One thing I noticed in your message
WinID=$(getmemwindow $ORACLE_SID)
is different from setmemwindow -i $WinId
$WinId is a different variable from $WinID under unix.
One thing I found with memory windows is they last
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
vs a setmemwindow -c (create)
-John H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2001 10:26 PM
02-22-2001 10:26 PM
Re: Memory Windows: Strange behavior
Thank you all, for all your replies, specially
Sam.
Sam your answer was a real ten pointer.
/Robert