[OpenAFS-devel] dealing with rxevent queue stalls
Mark Vitale
mvitale@sinenomine.net
Thu, 26 Sep 2013 16:19:11 +0000
--Apple-Mail=_0D306F65-D481-433D-94F0-D9BBDD8E38E1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
On Sep 24, 2013, at 8:54 AM, Jeffrey Altman =
<jaltman@your-file-system.com> wrote:
> On 9/23/2013 3:52 PM, Mark Vitale wrote:
>> 2) Volume releases suffer from poor performance and occasionally fail =
with timeouts.
>> - root cause was heavier-than-normal vlserver load (perhaps caused =
by disk performance slowdowns); this starved LWP IOMGR, which in turn =
prevented LWP rx_Listener from being dispatched (priority inversion), =
leading to a grossly delayed rxevent queue.
>=20
> Did you intend to write "rx_Listener" in the above sentence or did you
> mean the rx_Event thread? =20
In the LWP case I did mean to type rx_Listener, which is the "name" of =
the LWP. In LWP, there are not separate threads for listener and event =
handler logic; they run alternately in the same (listener) thread. The =
actual code it runs is rx_ListenerProc() -> rxi_ListenerProc(), which =
loops and alternately calls rxevent_RaiseEvents() and IOMGR_Select(). =
In this case the high-priority listener thread is blocked on =
IOMGR_Select(), which is blocked on the low priority IOMGR thread to be =
dispatched, which in turn is blocked by medium priority worker threads. =
In this situation, rxevent_RaiseEvents() will never
be invoked until ALL the worker threads are no longer runnable.
--
Mark Vitale
mvitale@sinenomine.net
--Apple-Mail=_0D306F65-D481-433D-94F0-D9BBDD8E38E1
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
iQIcBAEBAgAGBQJSRF5+AAoJECQB9O5MipHILaMP/2zlknlrc3beLXUwOW5iwugX
EXRyMl6alcNqBJ8m29aHkcE63CkQEypNTDoTD5XcGgusDbZxoSgtrtjcVv7nVNSy
eUlLGmp58CiArZ1S5p9dAklNNsbAgFWr44jMIyYZQ0KEVhqG0hsTj82lKG7R/kNo
Qu4EkNznc0NJPWjhYr262wlKMIeuseRFYNV7GbLj9bTRNN6XLvBPqb2Nb2aPjO4L
9waghCIByfUzSV91+t3nAEYBTYypxLZeMCAD/YaKY4ppm8xOHLuQKYdcf+1uIrK6
zN/gKCPEXlQCJaXgTuocx/59L9gYUHhyouF9oBxi6FTdGMzQk5dcMmNcJW8/iXCt
tpW48+InIifGJVmYFLx4EzRbNm2PpjRQXw8ca1s7Q8/BOIi7F1mKI022/uX16QuB
SrUTLkQYhCt8dq4mf1ZqCrSV8uDcrsr8bLOJuftZG4RSZEA6m04ojY87p4ZDxqKV
GLSDA8t+q/+1ZNeJ3n6G5V1gHkULSm7b+62rrbC0msttKO9kG9iITV7B/VUqlUt4
8h3LoeDXfT/lX/Hd0Un5ubG2CTV9RPohTdq5wlcHs30cZvQqS7Fjj+eqW1o1dFHh
ePyeQndop3o7E+cOBlDPhBqKKXeRduWplId5B61NeEvPFgdfJ7v/Mo8eYlD8RowB
aEl2uc5He8xpjuELFRTn
=8p81
-----END PGP SIGNATURE-----
--Apple-Mail=_0D306F65-D481-433D-94F0-D9BBDD8E38E1--