Visit Our UNIX and Linux User Community


Pin Memory Statistics


 
Thread Tools Search this Thread
Operating Systems AIX Pin Memory Statistics
# 1  
Old 09-10-2009
Pin Memory Statistics

Hi,


We have an issue on our lpar where the pin memory usage slowly and regularly increases approx 1.5% a day until it reaches its 80% threshold
We have to regularly reboot the lpars to release the pin memory as we have found that killing all processes does not release it.

However, obviously this is not a real solution.

I have monitored any constantly running processes that increase in memory usage with time by monitoring the output of ps vg. The only one I found of any significance was xmwlm stats recording service which I stopped, but pin memory usage still increased at the same pace.

Is monitoring svmon -P going to help me find the cause of this issue and if so, monitoring which figure in following example of a process when running svmon -P, will show me the process is increasing in pinned memory usage to cause the increase we are seeing. I know the obvious answer would be 'the one that says pin above it' but there are three of them in the example.

Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
53274 wait 12251 8399 0 12251 Y N N


PageSize Inuse Pin Pgsp Virtual
s 4 KB 12155 8319 0 12155
m 64 KB 6 5 0 6


Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
0 0 work kernel segment s 12155 8319 0 12155
2802e f00000002 work process private m 5 4 0 5



Many thanks for any answers.

Last edited by GarciasMuffin; 09-10-2009 at 10:12 AM.. Reason: Additional Info
# 2  
Old 09-11-2009
Quote:
Originally Posted by GarciasMuffin
We have an issue on our lpar where the pin memory usage slowly and regularly increases approx 1.5% a day until it reaches its 80% threshold
It is obvious you have an application with a memory leak. Complain with the softwares makers, whoever it may be. This is not acceptable.

Quote:
Originally Posted by GarciasMuffin
We have to regularly reboot the lpars to release the pin memory as we have found that killing all processes does not release it.
Have a look at "ipcrm" and "ipcs" ("man ipcrm", "man ipcs"), it is probably not necessary to reboot the system.

Quote:
Originally Posted by GarciasMuffin
I have monitored any constantly running processes that increase in memory usage with time by monitoring the output of ps vg.
Good try. Maybe "ps -Alo pid,comm,vsz" will serve you better in this case. Sort the output for column 3 to get the top memory users.

Quote:
Originally Posted by GarciasMuffin
Is monitoring svmon -P going to help me find the cause of this issue and if so, monitoring which figure in following example of a process when running svmon -P, will show me the process is increasing in pinned memory usage to cause the increase we are seeing. I know the obvious answer would be 'the one that says pin above it' but there are three of them in the example.
The 3 distinct statistics shown by "svmon -P" are just different views of the matter. Use the number in the first part, it is for your purposes as good as the others. The first part is the overview, the second part shows the utilization of the different memory page sizes and the last part is a detailed list of memory statistics for the process' inner workings. You won't need that just to identify a memory hog.

I hope this helps.

bakunin

Previous Thread | Next Thread
Test Your Knowledge in Computers #382
Difficulty: Medium
HP-UX 11i V3 Release B.11.31 is registered as UNIX V7 compliant.
True or False?

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pin code counter

hello i wanted to see if anyone can analyze the following code and see where the error lies. it is supposed to echo the current date and start counting from 0000-9999 and show the approximate range that it is at. here is a pic of what the output should look like:... (3 Replies)
Discussion started by: Kooftness
3 Replies

2. UNIX for Dummies Questions & Answers

CPU and Memory Statistics Collection Across Many Servers

Hello geeks once again, many thanks for help in times past, you guys are awesome! But am here again, but now this is way heavy for me. Find below for my challenge: *** I need to collect CPU & RAM stats across 26 servers. *** I don't have the luxury of deploying an NMS, if I had it would... (3 Replies)
Discussion started by: infinitydon
3 Replies

3. Solaris

Sun MC, Display memory Statistics Graph

Hi, I can't seem to get Graphs using Report Manager for Memory and Hard Disk. Only CPU is working fine. Following are some screen shots: - Sun Management Center 4.0 http://img689.imageshack.us/img689/7555/smcu.jpg - Performance Report http://img25.imageshack.us/img25/3015/reportdo.jpg By... (2 Replies)
Discussion started by: Mack1982
2 Replies

4. Programming

Need pin generation code

Hi Can any one tell me from where can i get the code/library(c/c++(Sun)) for PIN generation. Actually i need to generate a new PIN for the user in case sombody reset his PIN. Thanks in Advance. (1 Reply)
Discussion started by: unisuraj
1 Replies

5. UNIX Desktop Questions & Answers

Pin to desktop

Hello everybody! I need some help. Is there a way to pin a window to the desktop in Linux? I have a list of tasks in Calc. And I want the window of Calc to be always before my eyes, so that it sort of reminds me of my tasks. The window must be «stuck» to the desktop, and when I click the... (0 Replies)
Discussion started by: alex777
0 Replies

6. Shell Programming and Scripting

how to pin files to /tmp

Hi all, Am currently working on editing a startup script that need me to copy a certain file from cdrom to /tmp (its a live cd am working on)and mount if from there to certain place.. Now i know that nothing can be stored in /tmp permanently ,however mechanism to load the file to /tmp on... (19 Replies)
Discussion started by: wrapster
19 Replies

7. Programming

How to set the DSR pin using a C Code

Hi, I am a newbie using linux. I want to use the 9 pins of the COM port for data transmission. I am trying to write a code to toggle the DTR pin in /dev/ttyS0. Can any one help by giving a sample code or links that will help me pick up fast Regards (2 Replies)
Discussion started by: Srikanthks_2000
2 Replies

Featured Tech Videos