How to track list of processes that are swapped in from swap devices ?

Solution Verified - Updated -

Issue

  • How to track list of processes that are swapped in from swap devices ?

  • System reported 56 Kbytes memory swapped in from disk, how to find responsible processes ?

[root@localhost ~]# vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0 416772 3321284      0 202032    0    0     0     0  105  171  0  0 100  0  0
 0  0 416772 3321284      0 202032    0    0     0     0  105  170  0  0 100  0  0
 1  0 416752 3321024      0 202060   56    0    84     0 3816 3446  1  8 90  0  0
 0  0 416752 3321024      0 202060    0    0     0     0  108  169  0  0 100  0  0
 0  0 416752 3321024      0 202060    0    0     0     0   93  147  0  0 100  0  0

Environment

  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • bcc-tools.
  • bpftrace.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content