Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 16:37:00 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-fs@freebsd.org
Subject:   Re: pw operations slow under zfs load
Message-ID:  <55B9477C.2050302@denninger.net>
In-Reply-To: <CAP1HOmTXTau5nALRCmpgQRoS%2B=sRMhKPd8L-t_us1_xG26XeTg@mail.gmail.com>
References:  <CAP1HOmTuxi7HL0_-SLJ8pd9s=3ob2D_ZU0pu%2BMSZfuxMPDydWw@mail.gmail.com> <CAP1HOmTXTau5nALRCmpgQRoS%2B=sRMhKPd8L-t_us1_xG26XeTg@mail.gmail.com>

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

--------------ms040103040106040808090908
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable


On 7/29/2015 16:13, javocado wrote:
> Sorry, the boot disk (SSD) is plain old ufs.
>
> On Wed, Jul 29, 2015 at 2:11 PM, javocado <javocado@gmail.com> wrote:
>
>> Hi,
>>
>> We have a pretty busy ZFS pool running on an 8.3 AMD system. We are
>> noticing that when the pool is busy pw-related operations seem to  tak=
e a
>> long time to complete:
>>
>> # time pw unlock 1000
>> 0.007u 0.036s 0:39.72 0.0%      45+1953k 0+113io 0pf+0w
>>
>> # time pw lock 1000
>> 0.032u 0.022s 1:09.63 0.0%      24+1132k 0+114io 0pf+0w
>>
>> Wile the command is running, we note that the process is locked in the=
 D
>> state:
>>
>> root  85051  0.0  0.0  5832   960   0  D+    1:53PM   0:00.02
>> /usr/sbin/pwd_mkdb -u 1000 /etc/master.passwd
>>
>> We also note that there is next to 0 disk activity on the boot volume:=

>>
>> # gstat -f ad
>>
>> dT: 1.005s  w: 1.000s  filter: ad
>>  L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
>>     0      0      0      0    0.0      0      0    0.0    0.0| ad6
>>     0      0      0      0    0.0      0      0    0.0    0.0| ad8
>>     0      0      0      0    0.0      0      0    0.0    0.0| ad10
>>     0      0      0      0    0.0      0      0    0.0    0.0| ad12
>>
>> And plenty of free mem:
>>
>> Mem: 400M Active, 3391M Inact, 128G Wired, 1935M Cache, 14G Buf, 6055M=
 Free
>>
>> So, what's going on here? How does a busy pool with it's own set of dr=
ives
>> (which operate off an HBA) affect the speed of operations involving th=
e
>> boot volume (an SSD connected to the mobo)?
>>
>>
>>
A very common manifestation of the way ZFS and the VM system interact,
unfortunately.

It's better in 9.x and 10.x, and the patch I have against them makes it
even better, but it still isn't completely resolved.

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGXzCC
BlswggRDoAMCAQICASkwDQYJKoZIhvcNAQELBQAwgZAxCzAJBgNVBAYTAlVTMRAwDgYDVQQI
EwdGbG9yaWRhMRIwEAYDVQQHEwlOaWNldmlsbGUxGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM
TEMxHDAaBgNVBAMTE0N1ZGEgU3lzdGVtcyBMTEMgQ0ExIjAgBgkqhkiG9w0BCQEWE0N1ZGEg
U3lzdGVtcyBMTEMgQ0EwHhcNMTUwNDIxMDIyMTU5WhcNMjAwNDE5MDIyMTU5WjBaMQswCQYD
VQQGEwJVUzEQMA4GA1UECBMHRmxvcmlkYTEZMBcGA1UEChMQQ3VkYSBTeXN0ZW1zIExMQzEe
MBwGA1UEAxMVS2FybCBEZW5uaW5nZXIgKE9DU1ApMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
MIICCgKCAgEAuYRY+EB2mGtZ3grlVO8TmnEvduVFA/IYXcCmNSOC1q+pTVjylsjcHKBcOPb9
TP1KLxdWP+Q1so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CPBhrHMJj0UT4g4J9OyZJ6306tX
lCDsUYoBExxc7l5UDLKtCoS4nAyTXdyZY4zFiasVzzMzeBasMc5Rr4IuDHCHzmz0wcI7B80P
ncbn39WoL4j1EVTDTv0kPnrH7Au/NS5QxiDA/HyklrHqeR6ciRD5fkNZAS5Rd5MFPkYd4JVB
ArAa9H1gx9W/QH6w9dhVyM+0+yr/9AAAAAAAAA==
--------------ms040103040106040808090908--





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