Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2014 10:56:28 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-stable@freebsd.org
Subject:   OK, so the buffer allocation problem with ZFS is fixed, but now I got this.... (VM management issues)
Message-ID:  <5325C9AC.3020106@denninger.net>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms030907030401050008070005
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

 From this morning.....

     3 users    Load  2.08  2.40  2.33                  Mar 16 10:41

Mem:KB    REAL            VIRTUAL                       VN PAGER SWAP PAG=
ER
         Tot   Share      Tot    Share    Free           in out     in   =
out
Act 2341416   20052  9279140    56272  436064 count                 44   =
 32
All 3144676   25544 10111364   255624 pages                112    43
Proc: Interrupts
   r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt     43 ioflt 29689 to=
tal
   3  40     200  45   80k  40k 186k  17k  438  14k   1348 cow 11 uart0 4=

                                                      1890 zfod 2085=20
uhci0 16
  8.0%Sys   2.3%Intr  5.6%User  0.0%Nice 84.1%Idle      48 ozfod      =20
pcm0 17
|    |    |    |    |    |    |    |    |    | 2%ozfod       ehci0 uhci
=3D=3D=3D=3D+>>> daefr       uhci1 21
                                         55 dtbuf     2123 prcfr 520=20
uhci3 ehci
Namei     Name-cache   Dir-cache    485946 desvn     8196 totfr 1045=20
arcmsr0 30
    Calls    hits   %    hits   %    164802 numvn       22 react 1085=20
cpu0:timer
    14254   14202 100                121388 frevn          pdwak 77 mps0 =
256
                                                   1663632 pdpgs 7020=20
em0:rx 0
Disks   da0   da1   da2   da3   da4   da5   da6        49 intrn 6864=20
em0:tx 0
KB/t   8.20 63.89 11.91 29.66 34.00 17.36  0.00   4829120 wire       =20
em0:link
tps      77  1497     9    19    15     9     0   2117724 act 86 em1:rx 0=

MB/s   0.61 93.43  0.11  0.54  0.51  0.15  0.00  17078072 inact 87 em1:tx=
 0
%busy    26    26     1     3     2     1     0    431968 cache      =20
em1:link
                                                      7832 free       =20
ahci0:ch0
                                                   1694896 buf        =20
ahci0:ch2
655 cpu1:timer
898 cpu11:time
627 cpu2:timer
784 cpu10:time
938 cpu5:timer
1054 cpu13:time
636 cpu4:timer
476 cpu12:time
579 cpu3:timer
702 cpu8:timer
646 cpu6:timer
573 cpu9:timer
670 cpu7:timer
1056 cpu14:time
515 cpu15:time

This is a rather busy (read: extreme demands on the system) time during=20
which I have managed to provoke some really awful behavior, including=20
filesystem stalls.  The system in question has both ufs and zfs=20
filesystems (but won't for much longer) along with running both SMB=20
service (samba) and Postgres.

Of note is that nasty "inact" page count.  It has driven the adaptive=20
ARC code patch (which is on this box) to trim the ARC cache down to the=20
minimum, where it remains pinned.

My reading of the "inact" page count is that pages shouldn't stay in=20
that state on an indefinite basis - - they should either be reactivated=20
(if they're re-used) or invalidated and moved to the "cache" bucket=20
where the VM code can free them.

Buuuuut.... neither is happening over the space of several hours and a=20
look at the RSS of the working processes doesn't show anything=20
interesting -- or different than normal activity in that regard.  17=20
_*gigabytes*_ of inactive pages (out of 24 GB of RAM in total) and=20
they're not being reclaimed?

Time for me to dig into the vm code?

FreeBSD 10.0-STABLE #13 r263037M: Fri Mar 14 14:58:11 CDT 2014=20
karl@NewFS.denninger.net:/usr/obj/usr/src/sys/KSD-SMP

--=20
-- Karl
karl@denninger.net


--------------ms030907030401050008070005
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFTzCC
BUswggQzoAMCAQICAQgwDQYJKoZIhvcNAQEFBQAwgZ0xCzAJBgNVBAYTAlVTMRAwDgYDVQQI
EwdGbG9yaWRhMRIwEAYDVQQHEwlOaWNldmlsbGUxGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM
TEMxHDAa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acg3oWx0QlblfnvsPd7l7wnrP5t5fBzwwMaRW+Vjlw/xUah8VGCQW
77H9aJss38G6JDywes0ZTGZeFJqlBCpMoEl3KAT7jN5yLs2JQmM5AXzhgpe4DWasXlWN/LIQ
m6O46UFfthRucvLRXIGd5dFJnrhEnZKCbsmOqLDrhIa2LODYQvQr17JN9wDqEEh490IJxTHo
DR6Hn1DrYJwcDwqCYigxWWoI98KNlWObROpgvSg+5yrpQKve4jICs1P225OI4eiB7r4YXwJx
05//kaoAAAAAAAA=
--------------ms030907030401050008070005--





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