- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Outflow of memory
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-07-2003 03:39 AM
02-07-2003 03:39 AM
Outflow of memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:45 AM
02-07-2003 03:45 AM
Re: Outflow of memory
How did you shut Oracle down? Normal shutdown routines will remove shared memory, killing the Oracle processes won't.
Some more information would be useful.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:48 AM
02-07-2003 03:48 AM
Re: Outflow of memory
ipcs -m | grep oracle
show ? it lists shared memory used by oracle instances/databases. Normally on a db shutdown these are freed up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 05:07 AM
02-07-2003 05:07 AM
Re: Outflow of memory
IPC status from /dev/kmem as of Fri Feb 7 14:05:55 2003
T ID KEY MODE OWNER GROUP
Shared Memory:
m 0 0x411c061a --rw-rw-rw- root root
m 1 0x4e0c0002 --rw-rw-rw- root root
m 2 0x41200379 --rw-rw-rw- root root
m 6659 0x0c6629c9 --rw-r----- root root
m 4 0x06347849 --rw-rw-rw- root root
m 1029 0xffffffff --rw-r--rw- root root
m 29191 0x00280267 --rw-r--r-- root root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 05:47 AM
02-07-2003 05:47 AM
Re: Outflow of memory
I think you should be more precise, what you mean by "Memory is exempted only in part". What metric are you watching?
When you look at "free memory", as reportet by Glance, top or vmstat, then you should note thaz this is free physical memory.
When you shutdown your database then you can expect that your swapspace recovers to the original amount (swapinfo -t, watch the "total" summary).
But you cannot expect that freemem returns. It's the kernel's decision how to utilize physical memory. Remember that parts of physmem are used for caching, so they are only freed when it's really needed.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 06:06 AM
02-07-2003 06:06 AM
Re: Outflow of memory
I have found looking at snapshots much less useful than a long, careful data collection.
If you have a memory leak, these tools will help you spot the trend.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 06:23 AM
02-07-2003 06:23 AM
Re: Outflow of memory
top
....
Memory: 101900K (65352K) real, 86196K (57076K) virtual, 1765960K free Page# 1/7
.......
adb -k /stand/vmunix /dev/kmem (With the subsequent processing)
Memory = 1689 megs
dmesg
..........
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 3145728 Kbytes, lockable: 2666372 Kbytes, available: 2737124 Kbytes
........
swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
dev 2621440 0 2621440 0% 0 - 1 /dev/vg03/lvol9
dev 2621440 0 2621440 0% 0 - 1 /dev/vg04/lvol10
reserve - 4093128 -4093128
memory 2385144 369148 2015996 15%
total 8676600 4462276 4214324 51% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 06:32 AM
02-07-2003 06:32 AM
Re: Outflow of memory
The dmesg output is right.
you can also use
echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
to get the same results.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 06:39 AM
02-07-2003 06:39 AM
Re: Outflow of memory
top(1) does not say what you *think* it says. Read the manual page to interpret what it is saying. And use top(1) for its primary purpose, which is to report *CPU* usage, not memory usage.
adb(1): I do not know which "Memory" you are taking about, so I can not comment.
dmesg(1M) reports only the *static*, not dynamic, information *at bootup*.
swapinfo(1M): The "memory" line does *not* report memory usage, it just reports how much memory is included in the *calculation* of *swap* space, hence the name swapinfo, not memoryinfo or some such.
Bottom line: Tell us what you want to know and why and we can give suggestions. If you have the Glance tool, then please use that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 07:06 AM
02-07-2003 07:06 AM
Re: Outflow of memory
Look, please, the very first message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 07:37 AM
02-07-2003 07:37 AM
Re: Outflow of memory
As is clearly evident from this thread, there is a *lot* of confusion about memory usage and therefor we have to know *exactly* what you want to know and why.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 08:02 AM
02-07-2003 08:02 AM
Re: Outflow of memory
What you mean by "Memory is exempted only in part". What metric are you watching?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 08:32 AM
02-07-2003 08:32 AM
Re: Outflow of memory
What Dietmar means is that you are using some utility to look at some values(s). What we want/need/must know is:
Which utility? Which commands/options/parameters/screens/etc. are you using? Which fields (i.e. their 'names') are you looking at? What are their values? Which values do you expect? Why? Etc..
If the issue is that 'memory utilization' ("Mem Util" in Glance) is 'high' (90% or more) and that memory is not 'freed' ("Free Mem" in Glance) when processes terminate, then the answer is: That is *normal*. HP-UX uses main (RAM) memory as a cache and a good cache is always full. HP-UX keeps memory *nearly* full (around 95%) in order to allow small processes to start quickly.
In other words, a memory utilization of 90-95% is *not* bad, it is *good*, i.e. you did not buy too much memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 09:47 AM
02-07-2003 09:47 AM
Re: Outflow of memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 12:33 AM
02-10-2003 12:33 AM
Re: Outflow of memory
Watch Mem Util. If it is (around) 95% or less, then memory pressure is OK and you do not have to look at the other memory/paging/swapping numbers.
*If* you look at paging/swapping, then look at Page Requests, KB Paged In and Out and Deactivations and Reactivations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 01:27 AM
02-10-2003 01:27 AM