AIX memory usage by processes


 
Thread Tools Search this Thread
Operating Systems AIX AIX memory usage by processes
# 1  
Old 10-23-2018
AIX memory usage by processes

Hi, i have 2 identical web servers using AIX. I use nmon analyser to check their performance.
The server A exceeds 20% memory usage for system, 5% for cache and the rest 75% for processes. While, it uses 4% of Paging Space.
The server B exceeds 20% for system, 45% for cache and 35% for processes.

I tried using svmon, ps and topas to investigate the memory usage and finally i found at server A the processes which run at Paging Space and how much (MB) they use.

Although i cannot find which processes need that much memory 40% in server A (comparing A-75% and B-35%) and cause this issue.

Could you please help me?

If you need any output etc, just text me or pm... thank you in advance.
# 2  
Old 10-23-2018
I regret that I am unable to hack into your servers and my crystal ball is in for servicing. Can you post some meaningful output illustrating why you think you have a problem?

It is usual for Unix/Linux servers of all flavours to keep their memory full, i.e. cached of anything they have used, just in case it can be re-used without having to wait for disk IO. Are you seeing paging space used? The output from lsps -a would show you this sort of thing. It is extreeeeemly unlikely that the two servers will have done exactly the same thing.

The output from vmstat 5 should also have a few columns about paging in & out counts.

If your server is not using paging space, then you don't generally have a memory problem. What is making you concerned?



Thanks, in advance,
Robin
# 3  
Old 10-23-2018
Quote:
Originally Posted by rbatte1
I regret that I am unable to hack into your servers and my crystal ball is in for servicing. Can you post some meaningful output illustrating why you think you have a problem?

It is usual for Unix/Linux servers of all flavours to keep their memory full, i.e. cached of anything they have used, just in case it can be re-used without having to wait for disk IO. Are you seeing paging space used? The output from lsps -a would show you this sort of thing. It is extreeeeemly unlikely that the two servers will have done exactly the same thing.

The output from vmstat 5 should also have a few columns about paging in & out counts.

If your server is not using paging space, then you don't generally have a memory problem. What is making you concerned?



Thanks, in advance,
Robin

Ok, first of all you have to get your crystal ball back! Smilie

Thanks for your insterest and your help in advance! as i wrote at the first post, i noted that my concerns are for that server A exceeds almost double memory for processes. If you could ask me which i should expect to use more memory is server B!

You may find below the outputs you asked..

Server A:
Code:
> lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type Chksum
paging00        hdisk0            rootvg       10240MB     2   yes   yes    lv     0
hd6             hdisk0            rootvg       10240MB     2   yes   yes    lv     0

> vmstat 5
System configuration: lcpu=8 mem=4096MB ent=1,00

kthr    memory              page              faults              cpu
----- ----------- ------------------------ ------------ -----------------------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa    pc    ec
 1  0 525275  5372   0   0   0   3    3   0  12 117936 242  2  2 96  0  0,06   6,4
 1  0 525275  5372   0   0   0   0    0   0  12 118346 235  2  2 96  0  0,06   6,3
 2  0 525275  5372   0   0   0   0    0   0  12 131497 243  2  2 96  0  0,07   6,8
 1  0 525275  5372   0   0   0   0    0   0  15 118115 239  2  2 96  0  0,07   6,8
 1  0 525279  5368   0   0   0   0    0   0  15 118376 245  2  2 96  0  0,06   6,3
 1  0 525279  5368   0   0   0   0    0   0  13 131583 239  2  2 96  0  0,07   6,8
 1  0 525279  5368   0   0   0   0    0   0  13 118366 242  2  2 96  0  0,06   6,5
 1  0 525280  5367   0   0   0   0    0   0  16 118352 241  2  2 96  0  0,07   6,7


Server B:
Code:
> lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type Chksum
paging00        hdisk0            rootvg       10240MB     0   yes   yes    lv     0
hd6             hdisk0            rootvg       10240MB     0   yes   yes    lv     0

> vmstat 5
System configuration: lcpu=8 mem=4096MB ent=1,00

kthr    memory              page              faults              cpu
----- ----------- ------------------------ ------------ -----------------------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa    pc    ec
 1  0 539268  7007   0   0   0   0    0   0  71 118825 318  2  2 96  0  0,07   7,3
 1  0 539269  7005   0   0   0   0    0   0  52 131764 290  2  2 95  0  0,08   7,6
 1  0 539269  7005   0   0   0   0    0   0  44 118343 277  2  2 96  0  0,07   7,0
 1  0 539269  7004   0   0   0   0    0   0  43 118585 280  2  2 96  0  0,07   6,9
 1  0 539269  7004   0   0   0   0    0   0  42 131689 283  2  2 95  0  0,07   7,4
 2  0 539269  7003   0   0   0   0    0   0  55 118711 304  2  2 96  0  0,07   7,3
 1  0 539269  7003   0   0   0   0    0   0  68 118550 310  2  2 96  0  0,07   7,2
 1  0 539269  7002   0   0   0   0    0   0  41 131688 269  2  2 95  0  0,07   7,2



If you need anything more as info, please guide me!
Moderator's Comments:
Mod Comment Please use CODE tags (as required by forum rules) whenever you post sample input, output ,or code segments.

Last edited by Don Cragun; 10-24-2018 at 12:25 PM.. Reason: Add missing CODE tags.
# 4  
Old 10-23-2018
Small disclaimer : i used AIX really little, most of the time migrating stuff off of it Smilie

Looks like server B in your case, has more filesystem caching activity going on.
Meaning, if this is some kind of cluster, and you failover a service which is using that filesystem, it's bound you will have slower response until same read patterns occur on serverA filesystem, and are cached to memory.

So, basically, context is required in this case.

What services are running on that server ?
How are those two servers sharing load - are requests hitting both or failover scenarios etc. ?

I mean, what doesn't actually work or works slower on specified server so you need to investigate the memory ?

Regards
Peasant.
# 5  
Old 10-23-2018
Thanks for your reply too..

There is no problem on functionality yet... but this is why i check the performance daily using nmon analyser, to prevent any issue! I hope so.. :P

Both servers have web services, http, java etc..
It shouldn't use that much memory for processes (server A). Actually it should work as server B.
This is why i am concerned...

I am new in AIX, but what i understood for memory usage is that the system uses some, then the processes uses whatever they need and the rest memory will be used for filesystem. In case, there is need for more memory there will be used paging space, is this correct?

If what i understood is correct, then there is problem on server A as there are processes which use paging space!
# 6  
Old 10-25-2018
anyone... please help!
# 7  
Old 10-25-2018
Quote:
Originally Posted by dim
I am new in AIX, but what i understood for memory usage is that the system uses some, then the processes uses whatever they need and the rest memory will be used for filesystem. In case, there is need for more memory there will be used paging space, is this correct?
Most systems will give up cache before they start eating into swap space, so you are not at 0% RAM.

I think what might have happened is, at some point in the past, a process on system A grew very large, large enough to start using swap, then finished or died to give it up again.

Have you tried ps aux to list processes?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Memory usage in AIX server

Hi All, I have some questions regarding the performance, MEMORY/ Virtual Memory (paging /swap space) Please see the nmon-MEMORY stats from my AIX LPAR. 24 GB --> RAM 3456 MB --> Paging Space │ Memory ─────────────────────────────────────────────────────────────────────── │... (8 Replies)
Discussion started by: System Admin 77
8 Replies

2. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies

3. AIX

AIX memory usage always high

hi, I want to ask , my AIX 6.1 is always used about 97% memory. Is this normal ? or any command can free up memory like Linux ? thanks. (1 Reply)
Discussion started by: virusxx
1 Replies

4. AIX

AIX 5.3 Physical Memory usage

Hi, I have AIX 5.3TL8 two node cluster using HACMP and have 10g database using RAW devices. I am seeing gradual increase in comp% memory everyday and it reaches 100% and evicts the node, we had 4 evictions in 40days. I am pasting vmstat and vmo output, anyone seen this issue? ... (5 Replies)
Discussion started by: navin7386
5 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. AIX

Memory usage on AIX

How to check the memory usage on AIX by various processes? (1 Reply)
Discussion started by: aajmani
1 Replies

7. AIX

estimating memory usage by database processes

Hi Guys, I wonder what would be the best way to determine how much memory is in use on any given time by the database processes. I thought about using ipcs -m command but I wonder if there any better way to determine this. Thanks. Harby. (2 Replies)
Discussion started by: hariza
2 Replies

8. AIX

High memory usage in AIX 5.1

Hi, We have AIX 5.1 machine of RAM 8 GB and paging space is 8GB. we are getting high memory usage of almost 99%.Can anybody please help in this ? Partial vmstat o/p kthr memory ----- ----------- r b avm fre 2 1 278727 1143 There is no paging issue.Becoz in... (5 Replies)
Discussion started by: jayakumarrt
5 Replies

9. AIX

Memory Usage in AIX

Hi All, I have a question, can you guys please help me by giving your valuable suggestons: I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (3 Replies)
Discussion started by: kollam68
3 Replies

10. UNIX for Advanced & Expert Users

Memory Usage in AIX

Hi All, I have a question, can you guys please help me by giving your valuable suggestons: I am using AIX 5L, running oracle 7 version. I need to increase the oracle memory to 40 MB more. Currently Oracle occupies 260M. I wanted to know whether I can increase the memory without any problem.... (1 Reply)
Discussion started by: kollam68
1 Replies
Login or Register to Ask a Question