this post was submitted on 18 Feb 2024
17 points (90.5% liked)
Linux
48181 readers
1422 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It doesn't matter because for the most part, you're not spending most of your time in Wine code, you're spending your time in the application's code.
So you might see some improvements if you're running something that's more of a Win32 API performance benchmark than an application benchmark.
But even then,
-O2
is already pretty good, and-O3
is a bit of a gamble whether it'll be faster or slower. Sometimes O3 will pull the big guns and the real world dataset is always small and it wastes time in setup.-march=native
might give you some nice speedups but it depends entirely on your CPU. If you have the latest CPU with all the features, it may take advantage of it.But it's still all mostly things like using SIMD instructions to crunch through numbers faster. The Windows API doesn't do a whole lot of that in the first place, but there's also a few ABI boundaries you can't change. It needs to receive and output data in the expected format in the expected registers. It can only optimize things that happen internally in Wine and are never observed by the application it's running, further reducing the amount of optimization potential.
So, it's kind of a waste of time. It's a lot more worth it for like video codecs and image processing
many thanks for the explanation.
i use a ryzen 5 5600x, so march native should do something.
It fully depends on the code. If the code in question does not do the kinds of calculations that can benefit from SIMD instructions,
march=native
will do absolutely nothing for you, no matter how special or new your CPU might be.I doubt WINE does many things that would benefit from SIMD but the only way to know for sure is to test it out.