<div>Hi, Tapani:</div><div>      Recently I come into a problem. I have a opengl program, if the program run, it can take up almost one core, and the Xorg takes almost one core too.</div><div>      I found this program continuously recvmsg from the Xorg. I'm sure the CPU is takeing by too much sendmsg/recvmsg. <br></div><div> Following is the backtrace of this program when it call recvmsg:</div><div><br></div><div><br></div><div>#0  recvmsg () at ../sysdeps/unix/syscall-template.S:84<br>#1  0x00007fb88abffdd7 in _xcb_in_read (c=c@entry=0x277e990) at ../../src/xcb_in.c:982<br>#2  0x00007fb88abfded1 in _xcb_conn_wait (c=c@entry=0x277e990, cond=cond@entry=0x7fb8667fa5c0, vector=vector@entry=0x0, <br>    count=count@entry=0x0) at ../../src/xcb_conn.c:495<br>#3  0x00007fb88abff617 in wait_for_reply (c=c@entry=0x277e990, request=2575173, e=e@entry=0x7fb8667fa690)<br>    at ../../src/xcb_in.c:516<br>#4  0x00007fb88abff721 in xcb_wait_for_reply (c=0x277e990, request=2575173, e=0x7fb8667fa690) at ../../src/xcb_in.c:546<br>#5  0x00007fb88dd64ae7 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6<br>#6  0x00007fb88dd6052d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6<br>#7  0x00007fb88748c1de in dri2XcbSwapBuffers (pdraw=0x7fb849a058c0, remainder=<optimized out>, divisor=0, target_msc=0, <br>    dpy=0x277d6d0) at dri2_glx.c:815</div><div><br></div><div>I strace the program's syscall, <br></div><div>the data is almost zeros. <br></div><div>recvmsg(20, {msg_name(0)=NULL, msg_iov(1)=[{"g\0\325R\v\0@\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 2048<br></div><div><br></div><div>Could you tell me what's the possible cause  of this problem.</div><div><br></div><div>---------------------------<br></div><div>Yanhua<br></div>