Re: Swap filling up, suspect kernel memory issue?

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Sun, 11 Jun 2023 17:03:09 UTC
On 11/06/2023 16:54, Scott Gasch wrote:
> … I cannot find a usermode culprit; …


Try:

systat -swap


Example output, from a machine that's not troublesome:

                     /0   /1   /2   /3 /4   /5   /6   /7   /8   /9   /10
      Load Average   >>>>>>>>>>

Device/Path       Size  Used |0%  /10  /20  /30  /40  / 60\ 70\  80\  
90\ 100|
ada0p2.eli         16G 2643M XXXXXXXX

Pid    Username   Command     Swap/Total Per-Process Per-System
   3478 grahamperrin java     521M /   6G  8%              3%
   4709 grahamperrin firefox  305M /   6G  4%              1%
   4671 grahamperrin firefox  266M /  13G  1%              1%
   3473 grahamperrin java     158M /   6G  2%              0%
   3370 grahamperrin plasmashe137M / 948M 14% X            0%
   4712 grahamperrin firefox  118M /   3G  4%              0%
   4716 grahamperrin firefox   89M /   3G  3%              0%
   4865 grahamperrin firefox   82M /   3G  2%              0%
   3363 grahamperrin kwin_x11  74M /   1G  6%              0%
   4737 grahamperrin spectacle 59M / 548M 10% X            0%
   4866 grahamperrin firefox   46M /   3G  1%              0%
   4696 grahamperrin firefox   42M /   3G  1%              0%
  11207 grahamperrin firefox   32M /   3G  1%              0%
   4693 grahamperrin firefox   28M /   3G  0%              0%
   3550 grahamperrin python3.9 27M /  76M 35% XXX          0%
   3551 grahamperrin python3.9 25M /  61M 40% XXXX         0%
   4727 grahamperrin kcharsele 24M / 391M  6%              0%
   3445 grahamperrin kgpg      15M / 377M  4%              0%
  13275 grahamperrin firefox   15M /   3G  0%              0%
   3513 grahamperrin ibus-exte 14M /  92M 15% X            0%
   3414 grahamperrin yakuake   13M / 385M  3%              0%
   3426 grahamperrin gammy     12M / 273M  4%              0%
   3630 grahamperrin konsole   11M / 405M  2%              0%
   4256 grahamperrin recollind 11M /  74M 14% X            0%
   4318 grahamperrin gam_serve  8M /  25M 31% XXX          0%
   3362 grahamperrin kded5      8M / 226M  3%              0%
   3475 grahamperrin evolution  7M / 257M  2%              0%
   7509 grahamperrin firefox    7M /   3G  0%              0%
   3421 grahamperrin xterm      6M /  25M 22% XX           0%
   3523 grahamperrin evolution  5M / 146M  3%              0%
   3563 grahamperrin evolution  5M / 131M  3%              0%
   3566 grahamperrin evolution  5M / 152M  2%              0%
  13577 grahamperrin firefox    4M /   3G  0%              0%
   3425 grahamperrin xterm      4M /  25M 16% X            0%
   3512 grahamperrin ibus-ui-g  4M / 100M  4%              0%
   3366 grahamperrin ksmserver  4M / 146M  2%              0%
  13579 grahamperrin firefox    4M /   3G  0%              0%
   3365 grahamperrin kglobalac  3M / 103M  3%              0%
   3354 grahamperrin kdeinit5   3M / 115M  2%              0%
   3434 grahamperrin kalendara  3M / 171M  1%              0%
   3345 grahamperrin startplas  3M / 119M  2%              0%
   4687 grahamperrin firefox    3M / 273M  1%              0%
   3695 grahamperrin tcsh       3M /  16M 16% X            0%
   3686 grahamperrin tcsh       3M /  16M 16% X            0%
   3456 grahamperrin gkrellm    3M / 111M  2%              0%
   3352 grahamperrin plasma_se  3M / 120M  2%              0%
   3527 grahamperrin goa-daemo  3M / 173M  1%              0%
   4701 grahamperrin gnome-key  3M /  43M  6%              0%

Disks  ada0   da0   da1   da2   da3   cd0 pass0 pass1 pass2 pass3 pass4 
pass5
KB/t    154  0.00 41.59 43.35 43.39  0.00  0.00  0.00  0.00 0.00  0.00  0.00
tps     272     0    64    60    76     0     0     0     0 0     0     0
MB/s  40.84  0.00  2.60  2.53  3.23  0.00  0.00  0.00  0.00 0.00  0.00  0.00
%busy    96     0    27     7    20     0     0     0     0 0     0     0
Showing swap, refresh every 5 seconds.