<div dir="ltr"><div>I would start by figuring out exactly why accept() is failing. You could use strace for this, or a patch like:</div><div><br></div><div><a href="https://gitlab.freedesktop.org/ajax/libxtrans/-/commit/0cf78fc5b4156f0053a6a332f97b4652ed54cb6a">https://gitlab.freedesktop.org/ajax/libxtrans/-/commit/0cf78fc5b4156f0053a6a332f97b4652ed54cb6a</a></div><div><br></div><div>Note that to make that patch work you need to patch libxtrans and then rebuild xserver against the result, xtrans is a header-only library.</div><div><br></div><div>- ajax<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 16, 2023 at 7:21 PM Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, May 6, 2023 at 9:04 AM Alan Coopersmith<br>
<<a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a>> wrote:<br>
><br>
> On 5/5/23 16:07, Anuj Phogat wrote:<br>
> > Thanks for the quick response Adam. I've seen this behavior across multiple<br>
> > graphics applications<br>
> > and graphics drivers. This is an extreme use case I'm trying out. So, there's a<br>
> > possibility of this use<br>
> > case not being handled correctly by any of the applications or graphics drivers.<br>
> > But I also see some basic X functionality, like closing the window using the "x"<br>
> > button, not working<br>
> > properly with windows opened past the 256 limit. This happens with a modified<br>
> > limit of 512. I had to<br>
> > use xkill to close those windows. Any thoughts about this?<br>
><br>
> Closing the window with the "x" button is a function of the window manager.<br>
> Does the window manager you are using assume the number of X clients is<br>
> limited to 256?  That xkill works suggests the X server is handling it<br>
> correctly.<br>
Alan, I took the window manager out of the equation by running multiple<br>
instances of vkcube with Xorg without running any window manager.<br>
Xorg.0.log file does show a log about set max clients through a .conf file:<br>
(**) Option "MaxClients" "512"<br>
<br>
But, I start seeing below error messages at the end of the log file once<br>
the number of vkcube instances go past 256:<br>
"_XSERVTransSocketUNIXAccept: accept() failed"<br>
<br>
Seems like the modified max clients limit of 512 is not getting configured<br>
correctly in X.<br>
<br>
What can I do to fix / debug this error ?<br>
<br>
<br>
><br>
> --<br>
>          -Alan Coopersmith-                 <a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a><br>
>           Oracle Solaris Engineering - <a href="https://blogs.oracle.com/solaris" rel="noreferrer" target="_blank">https://blogs.oracle.com/solaris</a><br>
><br>
<br>
</blockquote></div>