by irundebian · 1y ago · 0 comments
I think it would be good to make it possible to deactivate certain security features such as strict graphics isolation so that users can adjust their settings to their risk acceptance level. It would also be interesting to be able to optionally replace Xen with lighter isolation mechanisms, even if the user would compromise on security here too.
Around Firefox 92 or 93 the new GPU-based renderer ported from Servo was made default and performance under Qubes became much worse. Unfortunately, it seems applications increasingly assume the presence of video acceleration and don't prioritize software rendering.
Qube's unique choice in software only rendering for user applications is one born out of the isolation goals for security, not what the software/drivers/hardware could do.
It kind of feels like a tradeoff between protecting users who are critically in need of something like Qubes or expanding its reach to people who are less at risk and won't use it if it's too inconvenient.
I imagine audio and other realtime loads having problems the most on a heavily virtualized system like this.
I was using it well at home but could not stand it when I travelled around with my laptop.
I think Xen is mostly at fault for the issues, but I’m sure using something like KVM would be insecure, or they would have migrated already.
https://www.qubes-os.org/doc/managing-vm-kernels/#installing...
When I had similar issues in the past, I posted a question either to the mailing list or forum, and people were helpful.
If you choose Community-recommended hardware (https://forum.qubes-os.org/t/community-recommended-computers...), sleep will work fine for you.
This is by design, to provide high security, which is the point of Qubes. It's planned to allow GPU for chosen, trusted VMs: https://github.com/QubesOS/qubes-issues/issues/8552
Alternatively, you could perform a GPU passthrough, https://www.qubes-os.org/faq/#can-i-run-applications-like-ga...
I've been using vms with passed through gpu for a while and it's great but I would love to switch to qubes. I wish this was prioritized.
It might help if you used a computer with CPU horsepower that actually exists.
And in case this sounded facetious, any reasonable CPU from the past 15 years can handle software decoding of high resolution video just fine.
This all said however, if you do actually need full use of all hardware resources then being constrained to software is certainly a factor worth considering.
Brute force helps a lot, but do you want a ≥5GHz multi-core CPU burning 150W just to watch a single video stream with maximum paranoia settings?
I mean, yes?
We're not talking about bloat here, you're deliberately imposing significant overhead load for a specific purpose.
You can't really subsequently complain about performance unless you bring sufficiently powerful hardware to compensate for that overhead.
4k VP9 from youtube takes my 5950x around 20-25% CPU usage to handle with hardware acceleration disabled.
The fastest consumer CPU available 15 years ago could not handle that. Hell, even CPUs from 10 years ago couldn't do that. Add power & thermal limitations of a laptop CPU? Not a chance.
And that's just VP9! HEVC or AV1 would really put the hurt on.
To be pedantic, OP specified "HD" which is 720p. I gave him benefit of the doubt by saying "high resolution" in my reply, but I think 4K is unreasonable given the provided context. I'd wager 1080p ("Full HD") at most. There's also the question of frame rate, though we can probably safely assume either 29.976 or 59.952 fps since it's Youtube.
As an aside, software decoding performance can vary pretty significantly depending on the codec used for both encoding and decoding. Bit of a history lesson, CoreAVC was infamous for being very easy on the CPU compared to other h.264 decoders like ffmpeg.
Isn't this something GPU Virtualization is intended to solve?