Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2023 00:32:22 -0700
From:      Shrikanth Kamath <shrikanth07@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   How to watch Active pagequeue transitions with DTrace in the vm layer
Message-ID:  <CAEOAkMXQfAGJTozu98Te3RmMxH-i_q5e2MzQLHdDGPsfciGAbg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--00000000000059b15c0601ffcacf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

A background on the query,

Trying to catch a memory =E2=80=9Cspike=E2=80=9D trigger using DTrace, refe=
r here two =E2=80=9Ctop=E2=80=9D
snapshots captured during a 2 minute window,

last pid: 89900;  load averages:  0.75,  0.91,  0.94  up 39+00:37:30
20:03:14

Mem: 5575M Active, 2152M Inact, 4731M Laundry, 3044M Wired, 1151M Buf, 382M
Free

Swap: 8192M Total, 1058M Used, 7134M Free, 12% Inuse

PID USERNAME    THR PRI NICE   SIZE  RES   STATE   C TIME    WCPU COMMAND

12043    root               5    35     0        11G  9747M kqread  3
128.8H  23.34% app1

12051    root               1    20     0    3089M  2274M select   1  22:51
  0.00%    app2

last pid: 90442;  load averages:  1.50,  1.12,  1.02  up 39+00:39:37
20:05:21

Mem: 8549M Active, 631M Inact, 3340M Laundry, 3159M Wired, 1252M Buf, 359M
Free

Swap: 8192M Total, 1894M Used, 6298M Free, 23% Inuse

PID   USERNAME   THR PRI NICE   SIZE    RES STATE   C TIME   WCPU  COMMAND

12043       root              5  24    0         11G  9445M kqread  2
128.8H 10.45%  app1

12051       root              1  20    0     3089M  2173M select   3  22:51
  0.00%    app2

The spike is ~3G in Active pages, the two large applications have a
combined resident size of ~12G. The resident size of the applications
hasn=E2=80=99t changed between these 2 readings, however there is a tar arc=
hive and
gzip on a large directory during that window likely causing a reshuffle. If
I count the page allocs and dequeue by execname with DTrace, I see
tar/vmstat which probably alloc and quickly dequeue, along with a large
dequeue being undertaken by bufdaemon and pagedaemon.

fbt::vm_page_alloc*:entry

{

        @cnt[execname] =3D count();

}

fbt::vm_page_dequeue:entry

{

        @dcnt[execname] =3D count();

}

Page Alloc

  vmstat
20222

  tar                                                              21284

Page Dequeue

  vmstat                                                        20114

  bufdaemon                                                 21402

  tar                                                               21635

  pagedaemon                                             360387

Since the tar / vmstat will not hold the pages in Active, I need to find
out what application had its pages queued in Active page queue.

Is it possible that the system is just moving the LRU pages of these two
large applications into the inactive queue prior to addressing memory
pressure?  Do these applications need to activate those pages later and
hence it brings it back into the Active queue? How do I watch this in
action by using DTrace? Will the following probe catch this trigger?

fbt::vm_page_activate:entry

{

@cnt[execname, pid] =3D count();

}

tick-10sec

{

       printa(@cnt);

       printf("ACTIVE[%d] pages\n", `vm_dom[0].vmd_pagequeues[1].pq_cnt);

}

*** This system is running only one vmdomain (# sysctl vm.ndomains =E2=80=
=93>
vm.ndomains: 1).

*** running release 12.1, on an amd64 kernel. The physical memory installed
is 16G.

Regards,
--=20
Shrikanth R K

--00000000000059b15c0601ffcacf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">A background on the query,<div><span id=3D"gmail-docs-inte=
rnal-guid-fe59bd61-7fff-e0f3-8ff1-10627dc0539a" style=3D"color:rgb(0,0,0)">=
<p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt">=
<span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-ser=
if;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-a=
lternates:normal;font-variant-east-asian:normal;vertical-align:baseline;whi=
te-space:pre-wrap">Trying to catch a memory =E2=80=9Cspike=E2=80=9D trigger=
 using DTrace, refer here two =E2=80=9Ctop=E2=80=9D snapshots captured duri=
ng a 2 minute window,=C2=A0</span></p><br><p dir=3D"ltr" style=3D"line-heig=
ht:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;fon=
t-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;=
font-variant-numeric:normal;font-variant-alternates:normal;font-variant-eas=
t-asian:normal;vertical-align:baseline;white-space:pre-wrap">last pid: 8990=
0;=C2=A0 load averages:=C2=A0 0.75,=C2=A0 0.91,=C2=A0 0.94=C2=A0 up 39+00:3=
7:30=C2=A0 =C2=A0 20:03:14</span></p><p dir=3D"ltr" style=3D"line-height:1.=
38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fam=
ily:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-=
variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asi=
an:normal;vertical-align:baseline;white-space:pre-wrap">Mem: 5575M Active, =
2152M Inact, 4731M Laundry, 3044M Wired, 1151M Buf, 382M Free</span></p><p =
dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><sp=
an style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;=
font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alte=
rnates:normal;font-variant-east-asian:normal;vertical-align:baseline;white-=
space:pre-wrap">Swap: 8192M Total, 1058M Used, 7134M Free, 12% Inuse</span>=
</p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0=
pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans=
-serif;font-variant-ligatures:normal;font-variant-numeric:normal;font-varia=
nt-alternates:normal;font-variant-east-asian:normal;vertical-align:baseline=
;white-space:pre-wrap">PID USERNAME=C2=A0 =C2=A0 THR PRI NICE =C2=A0 SIZE=
=C2=A0 RES =C2=A0 STATE =C2=A0 C TIME=C2=A0 =C2=A0 WCPU COMMAND</span></p><=
p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><=
span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-seri=
f;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-al=
ternates:normal;font-variant-east-asian:normal;vertical-align:baseline;whit=
e-space:pre-wrap">12043=C2=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 5=C2=A0 =C2=A0 35 =C2=A0 =C2=A0 0=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 11G=C2=A0 9747M kqread=C2=A0 3 128.8H=C2=A0 23.34% app1</span></p><p di=
r=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span=
 style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;fo=
nt-variant-ligatures:normal;font-variant-numeric:normal;font-variant-altern=
ates:normal;font-variant-east-asian:normal;vertical-align:baseline;white-sp=
ace:pre-wrap">12051=C2=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 1=C2=A0 =C2=A0 20 =C2=A0 =C2=A0 0=C2=A0 =C2=A0 3089M=C2=A0 22=
74M select =C2=A0 1=C2=A0 22:51 =C2=A0 0.00%=C2=A0 =C2=A0 app2</span></p><b=
r><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt=
"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-s=
erif;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant=
-alternates:normal;font-variant-east-asian:normal;vertical-align:baseline;w=
hite-space:pre-wrap">last pid: 90442;=C2=A0 load averages:=C2=A0 1.50,=C2=
=A0 1.12,=C2=A0 1.02=C2=A0 up 39+00:39:37=C2=A0 =C2=A0 20:05:21</span></p><=
p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><=
span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-seri=
f;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-al=
ternates:normal;font-variant-east-asian:normal;vertical-align:baseline;whit=
e-space:pre-wrap">Mem: 8549M Active, 631M Inact, 3340M Laundry, 3159M Wired=
, 1252M Buf, 359M Free</span></p><p dir=3D"ltr" style=3D"line-height:1.38;m=
argin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:=
&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-vari=
ant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:n=
ormal;vertical-align:baseline;white-space:pre-wrap">Swap: 8192M Total, 1894=
M Used, 6298M Free, 23% Inuse</span></p><p dir=3D"ltr" style=3D"line-height=
:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-=
family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;fo=
nt-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-=
asian:normal;vertical-align:baseline;white-space:pre-wrap">PID =C2=A0 USERN=
AME =C2=A0 THR PRI NICE =C2=A0 SIZE=C2=A0 =C2=A0 RES STATE =C2=A0 C TIME =
=C2=A0 WCPU=C2=A0 COMMAND</span></p><p dir=3D"ltr" style=3D"line-height:1.3=
8;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fami=
ly:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-v=
ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=
n:normal;vertical-align:baseline;white-space:pre-wrap">12043 =C2=A0 =C2=A0 =
=C2=A0 root=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 5=C2=A0 24=C2=
=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 11G=C2=A0 9445M kqread=C2=A0 2 128=
.8H 10.45%=C2=A0 app1</span></p><p dir=3D"ltr" style=3D"line-height:1.38;ma=
rgin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&=
quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-varia=
nt-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:no=
rmal;vertical-align:baseline;white-space:pre-wrap">12051 =C2=A0 =C2=A0 =C2=
=A0 root=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1=C2=A0 20=C2=A0 =
=C2=A0 0 =C2=A0 =C2=A0 3089M=C2=A0 2173M select =C2=A0 3=C2=A0 22:51 =C2=A0=
 0.00%=C2=A0 =C2=A0 app2</span></p><br><p dir=3D"ltr" style=3D"line-height:=
1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-f=
amily:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;fon=
t-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-a=
sian:normal;vertical-align:baseline;white-space:pre-wrap">The spike is ~3G =
in Active pages, the two large applications have a combined resident size o=
f ~12G. The resident size of the applications hasn=E2=80=99t changed betwee=
n these 2 readings, however there is a tar archive and gzip on a large dire=
ctory during that window likely causing a reshuffle. If I count the page al=
locs and dequeue by execname with DTrace, I see tar/vmstat which probably a=
lloc and quickly dequeue, along with a large dequeue being undertaken by bu=
fdaemon and pagedaemon.</span></p><br><p dir=3D"ltr" style=3D"line-height:1=
.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fa=
mily:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font=
-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-as=
ian:normal;vertical-align:baseline;white-space:pre-wrap">fbt::vm_page_alloc=
*:entry</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;m=
argin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Nar=
row&quot;,sans-serif;font-variant-ligatures:normal;font-variant-numeric:nor=
mal;font-variant-alternates:normal;font-variant-east-asian:normal;vertical-=
align:baseline;white-space:pre-wrap">{</span></p><p dir=3D"ltr" style=3D"li=
ne-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:1=
3pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:=
normal;font-variant-numeric:normal;font-variant-alternates:normal;font-vari=
ant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@cnt[execname] =3D count();</span=
></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:=
0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,san=
s-serif;font-variant-ligatures:normal;font-variant-numeric:normal;font-vari=
ant-alternates:normal;font-variant-east-asian:normal;vertical-align:baselin=
e;white-space:pre-wrap">}</span></p><p dir=3D"ltr" style=3D"line-height:1.3=
8;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fami=
ly:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-v=
ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=
n:normal;vertical-align:baseline;white-space:pre-wrap">fbt::vm_page_dequeue=
:entry</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;ma=
rgin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narr=
ow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-numeric:norm=
al;font-variant-alternates:normal;font-variant-east-asian:normal;vertical-a=
lign:baseline;white-space:pre-wrap">{</span></p><p dir=3D"ltr" style=3D"lin=
e-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13=
pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:n=
ormal;font-variant-numeric:normal;font-variant-alternates:normal;font-varia=
nt-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0@dcnt[execname] =3D count();</spa=
n></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom=
:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sa=
ns-serif;font-variant-ligatures:normal;font-variant-numeric:normal;font-var=
iant-alternates:normal;font-variant-east-asian:normal;vertical-align:baseli=
ne;white-space:pre-wrap">}</span></p><br><p dir=3D"ltr" style=3D"line-heigh=
t:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font=
-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;f=
ont-variant-numeric:normal;font-variant-alternates:normal;font-variant-east=
-asian:normal;vertical-align:baseline;white-space:pre-wrap">Page Alloc</spa=
n></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom=
:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sa=
ns-serif;font-variant-ligatures:normal;font-variant-numeric:normal;font-var=
iant-alternates:normal;font-variant-east-asian:normal;vertical-align:baseli=
ne;white-space:pre-wrap">=C2=A0=C2=A0vmstat=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 20222=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-t=
op:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;A=
rial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-num=
eric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;v=
ertical-align:baseline;white-space:pre-wrap">=C2=A0=C2=A0tar=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 21284</span></p><br=
><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"=
><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-se=
rif;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-=
alternates:normal;font-variant-east-asian:normal;vertical-align:baseline;wh=
ite-space:pre-wrap">Page Dequeue=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:=
0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;Aria=
l Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-numeri=
c:normal;font-variant-alternates:normal;font-variant-east-asian:normal;vert=
ical-align:baseline;white-space:pre-wrap">=C2=A0=C2=A0vmstat=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 20114</span></p><p dir=3D"ltr" style=3D"=
line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size=
:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligature=
s:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-va=
riant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">=C2=
=A0=C2=A0bufdaemon =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 21402</span></p><p dir=3D"ltr" style=
=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-=
size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-liga=
tures:normal;font-variant-numeric:normal;font-variant-alternates:normal;fon=
t-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">=
=C2=A0=C2=A0tar =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 21635</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-=
top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;=
Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-nu=
meric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;=
vertical-align:baseline;white-space:pre-wrap">=C2=A0=C2=A0pagedaemon =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 3=
60387</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt=
;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial N=
arrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-numeric:n=
ormal;font-variant-alternates:normal;font-variant-east-asian:normal;vertica=
l-align:baseline;white-space:pre-wrap">Since the tar / vmstat will not hold=
 the pages in Active, I need to find out what application had its pages que=
ued in Active page queue.</span></p><br><p dir=3D"ltr" style=3D"line-height=
:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-=
family:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;fo=
nt-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-=
asian:normal;vertical-align:baseline;white-space:pre-wrap">Is it possible t=
hat the system is just moving the LRU pages of these two large applications=
 into the inactive queue prior to addressing memory pressure?=C2=A0 Do thes=
e applications need to activate those pages later and hence it brings it ba=
ck into the Active queue? How do I watch this in action by using DTrace? Wi=
ll the following probe catch this trigger?</span></p><br><p dir=3D"ltr" sty=
le=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"fon=
t-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-li=
gatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;f=
ont-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"=
>fbt::vm_page_activate:entry</span></p><p dir=3D"ltr" style=3D"line-height:=
1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-f=
amily:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;fon=
t-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-a=
sian:normal;vertical-align:baseline;white-space:pre-wrap">{</span></p><p di=
r=3D"ltr" style=3D"line-height:1.38;text-indent:36pt;margin-top:0pt;margin-=
bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&qu=
ot;,sans-serif;font-variant-ligatures:normal;font-variant-numeric:normal;fo=
nt-variant-alternates:normal;font-variant-east-asian:normal;vertical-align:=
baseline;white-space:pre-wrap">@cnt[execname, pid] =3D count();</span></p><=
p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><=
span style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-seri=
f;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-al=
ternates:normal;font-variant-east-asian:normal;vertical-align:baseline;whit=
e-space:pre-wrap">}</span></p><p dir=3D"ltr" style=3D"line-height:1.38;marg=
in-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&qu=
ot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant=
-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:norm=
al;vertical-align:baseline;white-space:pre-wrap">tick-10sec</span></p><p di=
r=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span=
 style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;fo=
nt-variant-ligatures:normal;font-variant-numeric:normal;font-variant-altern=
ates:normal;font-variant-east-asian:normal;vertical-align:baseline;white-sp=
ace:pre-wrap">{</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-t=
op:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-family:&quot;A=
rial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-variant-num=
eric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;v=
ertical-align:baseline;white-space:pre-wrap">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0printa(@cnt);</span></p><p dir=3D"ltr" style=3D"line-height:1.3=
8;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fami=
ly:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-v=
ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=
n:normal;vertical-align:baseline;white-space:pre-wrap">=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0printf(&quot;ACTIVE[%d] pages\n&quot;, `vm_dom[0].v=
md_pagequeues[1].pq_cnt);</span></p><p dir=3D"ltr" style=3D"line-height:1.3=
8;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:13pt;font-fami=
ly:&quot;Arial Narrow&quot;,sans-serif;font-variant-ligatures:normal;font-v=
ariant-numeric:normal;font-variant-alternates:normal;font-variant-east-asia=
n:normal;vertical-align:baseline;white-space:pre-wrap">}</span></p><br><p d=
ir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><spa=
n style=3D"font-size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;f=
ont-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alter=
nates:normal;font-variant-east-asian:normal;vertical-align:baseline;white-s=
pace:pre-wrap">*** This system is running only one vmdomain (# sysctl vm.nd=
omains =E2=80=93&gt;=C2=A0 vm.ndomains: 1).</span></p><p dir=3D"ltr" style=
=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-=
size:13pt;font-family:&quot;Arial Narrow&quot;,sans-serif;font-variant-liga=
tures:normal;font-variant-numeric:normal;font-variant-alternates:normal;fon=
t-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">*=
** running release 12.1, on an amd64 kernel. The physical memory installed =
is 16G.</span></p></span><div><br></div>Regards,<br><div><span class=3D"gma=
il_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signatur=
e" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr=
"><div><span style=3D"font-size:12.8px">Shrikanth R K</span><br></div></div=
></div></div></div></div></div></div>

--00000000000059b15c0601ffcacf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEOAkMXQfAGJTozu98Te3RmMxH-i_q5e2MzQLHdDGPsfciGAbg>