Re: Possible bug in zfs send or pipe implementation?

From: Garrett Wollman <wollman_at_bimajority.org>
Date: Sun, 14 Jul 2024 17:32:24 UTC
<<On Sat, 13 Jul 2024 20:50:55 -0700, Rick Macklem <rick.macklem@gmail.com> said:

> Just to clarify it, are you saying zfs is sleeping on "pipewr"?
> (There is also a msleep() for "pipbww" in pipe_write().)

It is sleeping on pipewr, yes.

[wollman@nfs-prod-11 ~]$ sysctl kern.ipc.pipekva
kern.ipc.pipekva: 536576
[wollman@nfs-prod-11 ~]$ sysctl kern.ipc.maxpipekva
kern.ipc.maxpipekva: 2144993280

It's not out of KVA, it's just waiting for the `pv` process to wake up
and read more data.  `pv` is single-threaded and blocked on "select".

It doesn't always get stuck in the same place, which is why I'm
suspecting a lost wakeup somewhere.

-GAWollman