Building the ULTIMATE Twitch Streaming PC!

Linus Tech Tips ·Linus Tech Tips ·2018-05-06 · 1,434 words · ~7 min read
Floatplane YouTube

Transcript

JSON SRT VTT 117
0:00 many serious game streamers use a second PC actually so they got one for gaming
0:05 and then another one dedicated to encoding and interacting with their
0:09 audience so we were brainstorming and talking about some cool projects that
0:13 we've done in the past with unread and virtualization technology and well let's
0:18 just say the old light bulb went off what if we could build using an Intel
0:24 high core count core I nine processor a two-in-one solution splitting a single
0:30 Tower with a single motherboard effectively in half to perform both of
0:35 those duties virtually of course would we end up with
0:40 a viable day-to-day streaming solution well thanks to Intel sponsorship of this
0:46 investigation we are about to find out
0:59 okay so let's start with this why would anyone want to run a virtualized
1:04 two-in-one setup as opposed to just having two separate machines I mean bare
1:09 metals more efficient right let's take a
1:12 look at a few reasons why it might actually be a cool idea first and most
1:17 importantly for many is cost unless you
1:20 already have a second computer to dedicate to encoding you would still
1:25 have to buy GPU RAM and storage for two
1:30 but you could save the considerable expense of many other components in
1:35 addition your total power consumption and heat output will be a touch lower
1:40 than running separate PCs meaning your energy bill will be lower - the second
1:46 reason to go virtual is space while it's
1:49 not a concern for some if you're streaming from a college dorm or a small
1:53 apartment this means one less tower taking up space in your gaming area not
1:58 every virtualized - and one has to be this big reason number three versatility
2:03 since the gaming and streaming setups are virtualized not only are any
2:08 potential software issues confined to each VM but they can also be much more
2:14 quickly and easily backed up or cloned
2:17 once you're set up so in the future you can easily hit the reset button in case
2:22 anything should go wrong also thanks to the magic of on raid your gaming /
2:27 streaming machine can act as a file and media server for the rest of your
2:31 household so the plan then is to use a portion of our CPU to encode our video
2:37 stream using x264 with high quality settings that way we can avoid the
2:42 potential for scheduler conflicts without manually assigning CPU
2:46 affinities and task manager like we would if we were doing both tasks on one
2:51 OS well okay Linus this all sounds great
2:54 but there's got to be disadvantages right well there is the fact that when
2:59 using virtualization some devices can't be easily allocated to a VM our onboard
3:05 audio for example shares an eye a new group with the chipset and essentially
3:10 cannot be used same story with USB ports
3:13 each grouping of ports has to be on a dedicated controller in order to pass it
3:19 through so that you can hot plug your devices something that we pretty much
3:22 take for granted these days and finally while it's possible to run on
3:28 raid without its own video card it's a
3:31 royal pain so we grabbed a dedicated sound card for our gaming VM and extra
3:36 USB controller we're using one of the onboard ones for the other VM and an el
3:41 cheapo third graphics card for under 8
3:44 so we are ready to you oh wait so during
3:50 our testing we found that gaming performance was actually best when we
3:54 assigned four cores and eight threads to our gaming VM and in some configurations
3:59 we actually found tests that performed better in a virtualized environment
4:05 compared to an equivalent configuration running on bare metal Y so this is the
4:11 kind of thing that we encounter sometimes when we're running on the
4:14 bleeding edge we spoke with on raids developers about the issue and they're
4:18 putting together some information to share with the Red Hat and KVM
4:22 hypervisor folks so that hopefully we'll see a resolution by the time game's
4:26 demand more cores for optimal performance but for the time being our
4:30 classic four core eight thread setup manages a negligible performance hit
4:35 compared to bare metal and our streaming
4:38 VM can suck up those extra cores anyway so that it could be used for heavier
4:43 video editing and faster encoding for those edited videos that can later be
4:48 uploaded to YouTube or other video on-demand sites alright then so let's
4:53 show off the rest of the setup we're using the utterly unique level one text
4:57 DisplayPort 1.2 KVM from Wendell and his team this gives us support for high
5:02 refresh rate monitors like a Seuss's 240 hertz rog swift PG 2 v 8 q and easy
5:09 switching between our VMs saving us from using two keyboards and mice though it
5:14 should be noted that having an extra one on hand is pretty useful in some cases
5:18 we're using Corsairs massive obsidian
5:21 900 D tower thanks to its ample cooling capacity and we're powering all three of
5:27 our GPUs the 1080 Ti for gaming the 1050
5:31 Ti for streaming and that basic one for
5:34 unrated off of an ax 1200 eye power supply and we've thrown in a monstrous
5:40 on raid array of 712 terabyte Seagate
5:44 iron wolf pro drives for 60 terabytes of
5:48 protected storage that's visible to both VMs not to mention as I said before
5:52 anyone else on the network who needs it allowing us to record our streams
5:57 basically indefinitely so we can make them epic frag vids after we're done
6:02 streaming finally for our capture Carlo and other
6:06 surprise no capture card so we actually
6:09 originally had planned to use one that 4k one from El Gato but this ended up
6:16 being way cooler so our gaming VM is actually transmitting its video and
6:21 audio feed to the encoder VM using the
6:25 low impact OBS NDI plugin which runs
6:29 with very little quality loss over our
6:32 virtualized 10 gigabit network connection between our VMs then from
6:37 there we've set the streaming machines output settings to Twitch's ultimate
6:42 1080p 60fps quality setting and would
6:46 you look at that after a few command-line tweaks we could not only
6:50 encode on the fly but do so at x264
6:54 s-slow preset which is 6 notches up from
6:57 the default potato quality ultra-fast and
7:00 to validate our original hypothesis is
7:04 there some benefit from separating them
7:07 in VMs we pushed our 11 hyper threaded
7:11 cores to their limit in the streaming vm to the point where we forced our encoded
7:17 video to start dropping frames then we went back to the gaming vm to see if
7:22 those resources were effectively being isolated and it was still running games
7:26 like nobody's business so what have we learned then on this
7:31 journey well for one a virtualized dual
7:34 head system with all of its shortcomings has some advantages operating our two
7:39 virtual machines was about as transparent as running two completely
7:43 independent systems whether via KVM switch or with two full sets of
7:47 peripherals this is a use case for many course systems that we've been excited
7:52 about for years now and one that has many applications beyond game streaming
7:57 that is just gonna get better in time and second is that with superior codecs
8:02 such as x265 on the horizon that are
8:06 better optimized not only for image quality but for better thread and memory
8:10 utilization that happens to mesh great with core I nines new cache design
8:15 you'll be able to push the quality even higher with a setup like this all we
8:20 need to do then is wait for twitch and mainstream broadcasting software to
8:24 support it in the meantime though we've still built one of the coolest x264
8:29 streaming setups out there so thanks to everyone for their help with this and
8:34 especially Intel for sponsoring this sick experiment and also you guys for
8:39 watching it so if you guys dislike this video you can hit that button but if you
8:42 liked it hit like yet subscribe maybe consider checking out where to buy the
8:46 stuff we featured at the link in the video description maybe a shiny new core
8:50 I 9 also link down there is our merch storage has cool shirts like this one
8:53 and our community forum which you should totally join