Which Process is causing Paging?


 
Thread Tools Search this Thread
Operating Systems AIX Which Process is causing Paging?
# 8  
Old 05-25-2013
Another recommendation for nmon. Learn the hotkeys in it and you can get a wealth of info, including process memory usage. svmon, however, is more purpose-built for your desired use, and is endorsed as the proper solution on this IBM official page:
Help - AIX 7.1 Information Center
# 9  
Old 05-28-2013
I tried very hard to get my system to do some paging, but failed.
Code:
System configuration: lcpu=2 mem=1037MB ent=0.10

   kthr            memory                         page                       faults                 cpu          
----------- --------------------- ------------------------------------ ------------------ -----------------------
  r   b   p        avm        fre    fi    fo    pi    po    fr     sr    in     sy    cs us sy id wa    pc    ec
  1   0   0     112474     104792     0     0     0     0     0      0   248 694475  3644 63 30  7  0  0.92 920.2
  2   0   0     112297     104969     0     0     0     0     0      0   127 1559231  1965 58 39  3  0  0.95 951.8
  1   1   0     112215      95572   733  1107     0     0     0      0   398 1348343  1639 39 51  9  1  0.83 825.8
  2   1   0     112343      73591  1022  3262     0     0     0      0   237 793101  1657 49 42  5  4  0.69 691.9
  3   1   0     113415      44813  1330  4687     0     0     0      0   213 338912  1621 59 37  4  0  0.47 466.9
  1   1   0     113538      37040   327  1818     0     0     0      0   301 1204270  1495 40 49  8  4  0.74 735.0
  2   0   0     113697      19961  1191  2200     0     0     0      0   314 1208027  1580 43 48  8  0  0.77 774.1
  2   0   0     113891       3486  1346  2707     0     0   547   3611   178 633671  1304 49 47  4  0  0.52 518.3
  2   0   0     113904       3392  1728  4021     0     0  5829  11159   267 212343  2064 56 37  7  0  0.51 507.3
  2   0   0     113952       3442  1023  3449     0     0  4770   6121   253 1088084  1550 46 48  5  0  0.73 727.4
  3   0   0     113952       3489  1737  4020     0     0  6452   8365   245 901676  1772 54 45  1  0  0.69 686.1
  2   0   0     114160       4092   715  4090     0     0  4127   4246   162 1132349  1163 43 49  8  0  0.74 736.6
  1   0   0     114823       4450   505   280     0     0  1592   1592   792  58405  2094 27 51 22  0  0.25 246.4
  1   0   0     115271       3206   204   172     0     0   506    506   464 1377444  1177 36 51 13  0  0.82 819.7
  1  16   0     115431       3793   608  1745     0     0  2573   2758   255 1336914  1006 40 50  8  1  0.81 810.7
  2   0   0     115496       3560  1433  3027     0     0  4732   7179   277 655654  1657 48 45  7  0  0.61 605.9
  1   0   0     115512       3561  2047  2584     0     0  4766   6114   259 608363  1519 47 45  8  0  0.59 589.4
  2   0   0     115614       3926  1700  1976     0     0  3379   5043   274 1219711  1444 41 50  9  0  0.79 792.1

I was trying to show changes in th PgSp column - as that is what you are looking for.
Code:
root@x134:[/]svmon -S -t 10 -O filterprop=data,sortentity=pgsp -i 5
Unit: page

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    2002         - work kernel heap                  m   2136  1098    0    2136
    8002         - work kernel segment               m    583   527    0     583
    e000         - work mbuf pool                    m    526   526    0     526
    a100         - work kernel heap                  m    402   205    0     402
    9000         - work other kernel segments        m    338     0    0     338
   7405d         - work other kernel segments        s   5120  5120    0    5120
  854015         - work                              m    206     0    0     206
   14005         - work other kernel segments        s   2152     0    0    2152
    d001         - work other kernel segments        m    114     0    0     114
  80c2a3         - work                              s   1388     0    0    1388
Unit: page

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    2002         - work kernel heap                  m   2136  1098    0    2136
    8002         - work kernel segment               m    583   527    0     583
    e000         - work mbuf pool                    m    526   526    0     526
    a100         - work kernel heap                  m    402   213    0     402
    9000         - work other kernel segments        m    338     0    0     338
   7405d         - work other kernel segments        s   5120  5120    0    5120
  854015         - work                              m    206     0    0     206
   14005         - work other kernel segments        s   2152     0    0    2152
    d001         - work other kernel segments        m    114     0    0     114
  80c2a3         - work                              s   1388     0    0    1388
root@x134:[/]

Use a larger number than 5 (seconds) - in a real situation I would use at least 60.

So, once you see some regular changes in the PgSp column then you have the segment ID. Use svmon -P to capture everything to a file and then find the process(es) that are using that segment.

(also try having the vmstat -I -w NN running in the background to watch for pi/po activity as well.)

Hope this helps!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

2. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

3. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

4. AIX

How to know which process is causing the closed_wait?

I do have a friend who have this script already but lost it. Can you please help to give me a script that can capture the closed_wait on the stack and identify which process using it. I am thinking of using netstat and rmsock. (2 Replies)
Discussion started by: depam
2 Replies

5. AIX

Paging

Hi , I have 8Gb memory in my JS21 server. When I run svmon it shows 3655Mb memory is utilized and 4344Mb free. I have configured 8Gb paging space and 14% is utilized which is 1Gb. I dont have memory issues but just want to know Why 1gb paging is utilized when my almost 4Gb real memory is free?... (6 Replies)
Discussion started by: vjm
6 Replies

6. Shell Programming and Scripting

Output (Paging)

how to get output of a file which is large screen by screen (1 Reply)
Discussion started by: mayur_verma
1 Replies

7. AIX

Paging space

Hi, I have paging size 2048M showed from topas and 10240M showed from "lsps -a", can anyone tell what is the difference? and how to change the PAGING SIZE (showed in topas) to 8192M? Can you please tell in detail step? Thanks! Victor #topas Topas Monitor for host: egsprc01dev ... (10 Replies)
Discussion started by: victorcheung
10 Replies

8. Shell Programming and Scripting

paging

I need a script which sends a mail when paging is happening and which process is causing paging? (5 Replies)
Discussion started by: jayaramanit
5 Replies

9. AIX

Paging Space per process

This is my first post, and I am new to the UNIX world. Hopefully this question won't be too lame. I know that I can use topas to see the paging space used by some processes. I would like to script something that can add up the paging space used by process owned by or associated with an... (1 Reply)
Discussion started by: alntht
1 Replies

10. UNIX for Dummies Questions & Answers

Paging

Hi all, Is there a paging utility in UNIX, when we can page some one for some condition Best Regards Omran (1 Reply)
Discussion started by: omran
1 Replies
Login or Register to Ask a Question