[OpenAFS-devel] dealing with rxevent queue stalls

Mark Vitale mvitale@sinenomine.net
Wed, 25 Sep 2013 22:05:54 +0000


--Apple-Mail=_6EDAD607-8317-47C5-85FF-7823CE19876B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1


On Sep 24, 2013, at 8:02 AM, Derrick Brashear <shadow@gmail.com> wrote:
> I haven't profiled rxevent queue handling in about 5 years. With your =
code does the queue appear "sick" on a normally functioning host if you =
assume that threshold is 0 (if now is later than the top scheduled =
event, assume it should have already fired)?

No, I've currently got a #define for a 5-second "grace" period.  In all =
the cores I've examined, the difference between "now" and the top epoch =
is always about zero for active fileservers, and usually a positive =
number (1-60 secs) for volservers and DB servers.   The only negative =
values I've ever observed were approx -4200 secs (!!!) for the broken =
timer case, and -17 secs for the LWP priority inversion case.  In my =
simulated testing, the 5-second grace period was sufficient to never =
flag a working server as sick, but it correctly flags simulated "sick" =
servers fairly quickly.  So the threshold I've been testing with is =
essentially -5 seconds; but it's implemented in such a way as to provide =
some hysteresis so that the server's not marked "well" until the =
difference is the normal 0 seconds. =20

--
Mark Vitale
mvitale@sinenomine.net


--Apple-Mail=_6EDAD607-8317-47C5-85FF-7823CE19876B
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="signature.asc"
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJSQ15CAAoJECQB9O5MipHIhDUP/3Cy0CvbBhxTHaQ2+xDMPBL+
52/bVac9V7g+uaHCb8DSMXSIHGz4l7Dg8Bn+4E9Ketrvw/rRmMdehnT8ZykiiQaU
aFS240gllmYR3uKRet3ZZdfnFvTKuEj0qC5TBpj297PN6hmnx7TfN+/ag0KS9Fb4
Qnno9NLcZUQ9EY9O5EwNcC0JOf1L0FmD5KHSgrxm1ki4xDMVLFj/Sji3PPhKbsZF
erfZEKgJ6DtzSEEoMBMo9D2dZQu46h8whghiEFU9//cTrTBvQ/O1v547M/8e6ZF9
QggAGb4oVDKy0j0mOydinoR5o4zYGzPa4u0PZy3/XWwjbNYh/dCe7oQX6b2ulPqZ
UkWXa27wneEwPrG8FjbCscFNvPVAsPmOVwCzehAkqVMRcmM3cdHnJ75cqUzMGJr8
FsUg4P3GOAAgSIMLAGzYIGVAFkkKoYsmpzAIbih7JprpTSo0iqO6rqV+kJNjcIUj
2gMUa9jFWrJVXcK8/XJBt1TwvORwr42AG+nnLJXccTbn1Gc4oYS3nOYqOikViR2n
Lw20bmkr+lVLWBEqRe7vcj6s1p5RQoxxK1mI5bn+7/oF9AWGZHCm4sSannxr60DJ
iiR81YSyeMGbPICuKCyBMZCReMJnNaccSc5knGzoiFJ5E0CZZLlS0VgimIukBAPe
/HuevDffn96RW4advx7g
=tSi/
-----END PGP SIGNATURE-----

--Apple-Mail=_6EDAD607-8317-47C5-85FF-7823CE19876B--