Date: Mon, 02 Jul 2012 16:14:14 -0700 From: Yuri <yuri@rawbw.com> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: System is flooded with failed read(2) calls: Resource temporarily unavailable (errno=35) coming from xorg unix socket Message-ID: <4FF22B46.4000301@rawbw.com> In-Reply-To: <CAJ-Vmonxhwbhotp6cJEoHRaDBy8W0Bt0J123zfXjjUYmy-j6hA@mail.gmail.com> References: <4FEE0D2F.4010808@rawbw.com> <CAJ-Vmo=NVQSDoP0JFGNmCyo9O%2BrZ_J4G7TxWXq4Tmwz=tDwmEw@mail.gmail.com> <4FF0AEE1.5040607@rawbw.com> <CAJ-VmonEmcWsKcJe-tinNf5H6_=S-w%2Bd2eCL9Dj0wuazmmJ0Fg@mail.gmail.com> <4FF0C352.6010805@rawbw.com> <CAJ-Vmonxhwbhotp6cJEoHRaDBy8W0Bt0J123zfXjjUYmy-j6hA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Ok, so something is really really odd here. Are you able to dig deeper > into what the socket code in xorg is doing wrong? It'd certainly be > nice to fix all of this stuff up. > > Thanks so much for digging into this! It's been annoying me, but I've > just been ridiculously busy trying to bring up some more Atheors wifi > chipset support in FreeBSD. Now it is clear what is happening. Xlib routinely calls read one more time during every X-protocol call one extra time, kinda just in case. And such calls always fail with EAGAIN, unless disconnect or socket error happens to happen at this time. This essentially about doubles the number of system calls that any X app makes. Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF22B46.4000301>