this post was submitted on 28 May 2024
362 points (97.9% liked)
Linux
55478 readers
865 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The post doesn't answer the questions, it's why I asked.
It says:
Now I know some of these words, but it does not answer my question.
Man ,idk why everyone is being a dick to you. A MicroVM is a virtual machine that only emulates a small subset of an entire OS (a container basically). FEX is an x86 emulator. So yes, this is emulation.
Thanks.
So my real question is really about this: common wisdom is that emulating a whole CPU architecture is a performance killer. Does that apply here, and are they just running games that can take the hit? Or phrased differently: given that it's emulated, could this ever have near-native (CPU) performance, or nah?
Probably not, but it might be good enough. I'm not an expert in architecture emulation by any stretch, but it might work best for older games where modern performance is a non issue either way.
To answer your question, I'm sure for the x86_64(not separate things btw) specific code it might use some sort of emulator or a translation layer. Idk WTF "microVM with FEX" is, maybe that's it?
But for the DX11 part, that's just the normal DirectX to Vulkan/OpenGL translation layer e.g. WineD3D.
There's actually nothing that special about DirectX on ARM, it's the same API. The translation layer just takes those API calls from DirectX11 and translates them to the equivalent in OpenGL, and then the Asahi Linux OpenGL driver takes of actually executing those commands on the GPU.
You asked how it works, the post states how it works. You also asked if it's slow, which is clearly answered in the post (though you didn't quote that part). You also asked if there's some "secret sauce" allowing it to be fast, which is also a weird question since everything used is listed in the post.
If something wasn't clear to you, why not specifically ask about it? Even in this comment, you still don't specify what you don't understand. What kind of answer are you expecting to get?
You can Google the words you don't know, and find out that it does in fact answer your question.
Yeah god forbid people have some interesting discussion on this platform, right?
Just to offer some support, you're right and those are good questions