Since there is now a free version of stadia I tried it on linux but there is some serious issues on linux. I got very hi latency and stutter.
After some debugging it looks like multithreading in chrome on linux is broken.
To easily see the problem first fill up the cpu's with low priority work since this makes the issue really obvious. then play a game in stadia.
ex:
nice -n20 md5sum /dev/zero &
start one for every cpu in the system. nproc will show how many is needed. run top to see that there is no idle time and that most of the cpu is in nice mode.
The low priority tasks should not have any impact but they do. stadia is now unusable on my computer. What is the real problem?? I'm not sure but a strace shows chrome is using sched_yield() systemcall and that is probably not a good idea but it looks like it's not called frequently enough to be the only issue.
After some debugging it looks like multithreading in chrome on linux is broken.
To easily see the problem first fill up the cpu's with low priority work since this makes the issue really obvious. then play a game in stadia.
ex:
nice -n20 md5sum /dev/zero &
start one for every cpu in the system. nproc will show how many is needed. run top to see that there is no idle time and that most of the cpu is in nice mode.
The low priority tasks should not have any impact but they do. stadia is now unusable on my computer. What is the real problem?? I'm not sure but a strace shows chrome is using sched_yield() systemcall and that is probably not a good idea but it looks like it's not called frequently enough to be the only issue.
Comment