Hi,
During my latest tests, I noticed that the queue flushes very fast at some point. So I recorded another video and took a closer look at the strace output.
At some point the queue starts to fill up. On the strace we initially see reads in a sub-10ms frame (07:21:35.8xxx): Then it seems to start stumbling and later ~ 07:2139.5xxx it just seems to just poll on the connection once every ~100ms.
[pid 512453] 07:21:35.862801 read(10, "\177/#\370\236_\2663\226u\374\353\300\227\247\224\261\264m\202\2475\210\250\0342ox,\365S\334"..., 32768) = 8192
[pid 512453] 07:21:35.863046 read(10, <unfinished ...>
[pid 512453] 07:21:35.863343 read(10, <unfinished ...>
[pid 512453] 07:21:35.863755 read(10, <unfinished ...>
[pid 512453] 07:21:35.864176 read(10, <unfinished ...>
[pid 512453] 07:21:35.864493 read(10, <unfinished ...>
[pid 512453] 07:21:35.865112 read(10, <unfinished ...>
[pid 512453] 07:21:35.865229 read(10, <unfinished ...>
[pid 512419] 07:21:35.865531 read(10, <unfinished ...>
[pid 512419] 07:21:35.865609 read(10, <unfinished ...>
[pid 512418] 07:21:35.866365 read(10, <unfinished ...>
[pid 512418] 07:21:35.866531 read(10, <unfinished ...>
[pid 512418] 07:21:35.931905 read(10, <unfinished ...>
[pid 512453] 07:21:36.230657 read(10, "<\222+\25g\227bm\205\266\310H\365\255\263\252\30\370\246\212s\274\274\304\252]\377X\20&6\202"..., 33012) = 33012
[pid 512425] 07:21:36.430977 read(10, <unfinished ...>
[pid 512453] 07:21:36.530292 read(10, <unfinished ...>
[pid 512453] 07:21:36.530589 read(10, <unfinished ...>
[pid 512419] 07:21:36.530890 read(10, <unfinished ...>
[pid 512419] 07:21:36.531212 read(10, <unfinished ...>
[pid 512425] 07:21:36.831383 read(10, "\4L\202\210\35\216\315\231\245\36Xo\363\255\211\221\321\227\314n\361V'\266\363P\311\252\307\n\226\346"..., 33348) = 33348
[pid 512419] 07:21:37.131538 read(10, <unfinished ...>
[pid 512421] 07:21:37.330630 read(10, <unfinished ...>
[pid 512453] 07:21:37.430951 read(10, <unfinished ...>
[pid 512425] 07:21:37.470063 epoll_pwait(4, [], 128, 10, NULL, 0) = 0
[pid 512421] 07:21:37.531448 read(10, <unfinished ...>
[pid 512421] 07:21:37.531717 read(10, <unfinished ...>
[pid 512421] 07:21:37.531971 read(10, <unfinished ...>
[pid 512427] 07:21:37.830186 read(10, <unfinished ...>
[pid 512427] 07:21:37.830417 read(10, <unfinished ...>
[pid 512425] 07:21:37.831091 read(10, <unfinished ...>
[pid 512453] 07:21:38.031014 read(10, <unfinished ...>
[pid 512489] 07:21:38.130933 read(10, <unfinished ...>
[pid 512421] 07:21:38.231049 read(10, <unfinished ...>
[pid 512419] 07:21:38.332719 read(10, <unfinished ...>
[pid 512453] 07:21:38.629956 read(10, <unfinished ...>
[pid 512421] 07:21:38.730425 read(10, <unfinished ...>
[pid 512453] 07:21:38.835548 read(10, <unfinished ...>
[pid 512489] 07:21:38.930689 read(10, <unfinished ...>
[pid 512425] 07:21:38.931286 write(12, "\27\3\3\0M\305S\310\204\360\216J9\272!\334t\347\10,/\346/\10W\275'hP8U\213"..., 82) = 82
[pid 512453] 07:21:39.130540 read(10, <unfinished ...>
[pid 512425] 07:21:39.230809 read(10, <unfinished ...>
[pid 512425] 07:21:39.331019 read(10, <unfinished ...>
[pid 512425] 07:21:39.331400 read(10, <unfinished ...>
[pid 512425] 07:21:39.331802 read(10, <unfinished ...>
[pid 512419] 07:21:39.411713 epoll_pwait(4, [], 128, 10, NULL, 0) = 0
[pid 512425] 07:21:39.530964 read(10, <unfinished ...>
[pid 512418] 07:21:39.631178 read(10, <unfinished ...>
[pid 512489] 07:21:39.730584 read(10, <unfinished ...>
[pid 512419] 07:21:39.930811 read(10, <unfinished ...>
[pid 512419] 07:21:40.031096 read(10, "\207\315\337\313\314/&\350h\17\n\356\240\316K(\23\350\343\357F\314\347\375\205'\365u*xo\245"..., 32892) = 32892
[pid 512419] 07:21:40.130839 read(10, <unfinished ...>
[pid 512489] 07:21:40.330545 read(10, "u\2039\266\206u\342L\362nG,$\216\366\2267\276\324\313\372F\311\231Z\275\244\251\237H\20\""..., 32892) = 32892
[pid 512421] 07:21:40.430835 read(10, <unfinished ...>
[pid 512425] 07:21:40.530528 read(10, <unfinished ...>
[pid 512421] 07:21:40.633389 read(10, <unfinished ...>
[pid 512425] 07:21:40.730685 read(10, <unfinished ...>
[pid 512425] 07:21:40.830163 read(10, <unfinished ...>
[pid 512425] 07:21:41.032377 read(10, <unfinished ...>
[pid 512453] 07:21:41.130180 read(10, <unfinished ...>
[pid 512489] 07:21:41.330739 read(10, "\23\313\263\334$e\vnK\256Q\226\241\246\227\307\206\360_\346$S\2535!\377\202\256c\267\243N"..., 32892) = 32892
[pid 512421] 07:21:41.429961 read(10, <unfinished ...>
[pid 512421] 07:21:41.530656 read(10, <unfinished ...>
[pid 512453] 07:21:41.630240 read(10, <unfinished ...>
[pid 512421] 07:21:41.730763 read(10, <unfinished ...>
[pid 512489] 07:21:41.831294 read(10, <unfinished ...>
[pid 512419] 07:21:41.931201 read(10, <unfinished ...>
[pid 512453] 07:21:42.130948 read(10, <unfinished ...>
[pid 512419] 07:21:42.170043 epoll_pwait(4, [], 128, 10, NULL, 0) = 0
[pid 512421] 07:21:42.231301 read(10, <unfinished ...>
[pid 512489] 07:21:42.430066 read(10, "\24\31\374\266\22S\326\0\327\212\272\374\234\350\313i\227j\371I\313=zg\1\247NO\237\25\366\242"..., 32892) = 32892
[pid 512419] 07:21:42.530344 read(10, <unfinished ...>
[pid 512418] 07:21:42.630877 read(10, <unfinished ...>
[pid 512421] 07:21:42.730965 read(10, <unfinished ...>
[pid 512453] 07:21:42.830711 read(10, "\\\251z\32\2744\3341\234\rB\10\226\25u\274\265\4e]s\371\374\361\355\267[\2557\333p|"..., 32892) = 32892
[pid 512453] 07:21:43.030585 read(10, <unfinished ...>
[pid 512489] 07:21:43.130684 read(10, <unfinished ...>
[pid 512453] 07:21:43.230805 read(10, <unfinished ...>
[pid 512453] 07:21:43.430513 read(10, "\23\375\301\ni\316\207\313\26jz F\267\t\237o\195\274\250\350\242\25\304jj\245\205\214\304"..., 32892) = 32892
[pid 512453] 07:21:43.530752 read(10, <unfinished ...>
[pid 512425] 07:21:43.630543 read(10, "%\361N\324\313XU\337\225\335\324\357\333\327q7,{\t \245\t\7\0\324\342D\375\260l\323\360"..., 32892) = 32892
[pid 512453] 07:21:43.730619 read(10, <unfinished ...>
[pid 512419] 07:21:43.831155 read(10, <unfinished ...>
[pid 512419] 07:21:43.930726 read(10, <unfinished ...>
This "100ms poll cycle" seems to be constant for quite some time (16 seconds here). Then it speeds up again at 07:22:00.630953:
[pid 512426] 07:21:58.830523 read(10, <unfinished ...>
[pid 512426] 07:21:58.830638 read(10, <unfinished ...>
[pid 512421] 07:21:58.930843 read(10, <unfinished ...>
[pid 512453] 07:21:59.230244 read(10, <unfinished ...>
[pid 512426] 07:21:59.330339 read(10, <unfinished ...>
[pid 512421] 07:21:59.430210 read(10, <unfinished ...>
[pid 512426] 07:21:59.530680 read(10, <unfinished ...>
[pid 512421] 07:21:59.631143 read(10, <unfinished ...>
[pid 512427] 07:21:59.730869 read(10, <unfinished ...>
[pid 512427] 07:21:59.831186 read(10, <unfinished ...>
[pid 512425] 07:22:00.030327 read(10, <unfinished ...>
[pid 512427] 07:22:00.130300 read(10, "2\221\362\376\274tX\262\10\303\212\372\373\36)x\355\212\5\256[q\234\357`,\347~\301~~-"..., 32892) = 32892
[pid 512426] 07:22:00.230631 read(10, <unfinished ...>
[pid 512453] 07:22:00.330389 read(10, "\256G\1?G*\244\242G\311`\251q\10\361\272\346\232K\247#\1\366\307\375\r5y\364\24\306'"..., 32892) = 32892
[pid 512453] 07:22:00.430484 read(10, <unfinished ...>
[pid 512427] 07:22:00.630953 read(10, <unfinished ...>
[pid 512427] 07:22:00.631134 read(10, <unfinished ...>
[pid 512427] 07:22:00.631486 read(10, <unfinished ...>
[pid 512427] 07:22:00.632002 read(10, <unfinished ...>
[pid 512427] 07:22:00.632212 read(10, <unfinished ...>
[pid 512427] 07:22:00.632488 read(10, <unfinished ...>
[pid 512427] 07:22:00.632756 read(10, <unfinished ...>
[pid 512427] 07:22:00.633144 read(10, <unfinished ...>
[pid 512427] 07:22:00.633431 read(10, <unfinished ...>
[pid 512427] 07:22:00.633702 read(10, <unfinished ...>
[pid 512427] 07:22:00.634058 read(10, <unfinished ...>
[pid 512427] 07:22:00.634291 read(10, <unfinished ...>
I'll upload the video and full strace output and send you a link via chat so you can take a closer look.
Bye,
chris