Originally posted by rogerx
View Post
Announcement
Collapse
No announcement yet.
Ubuntu 25.04 "Plucky Puffin" Development Opens - Defaulting To -O3 Optimizations
Collapse
X
-
-
Originally posted by patrick1946 View Post
Instruction size is not about loading but execution. If it fills your caches with to much instructions you get more cache misses. And that is slowing down the execution.
O3 is aggressively unrolling but with modern branch predictors that can be counter productive.
You can see that in benchmarks, O3 has no big advantage and can be even slower. It all depends on the CPU and the program.
Maybe this so-called slowdown while executing branches is more typically seen with non-Intel CPUs, or other CPUs, or certain architectures. Almost all slow-downs I do see, are the initial load times of the executable file(s) being slightly larger, and typically not while the binary is executing it's functions.
On the flip, I more so see bug or segfaults, again particularly due to likely poorly written or poorly maintained code.
Seems I'm only getting part of the story with all of these stated slow-downs. Shrugs...
Another possibility is the design and build quality of the computer platforms. Typically I build and invest in platforms built like a tank, with only having to upgrade every decade or more, except for my laptops. Still, my laptop(s) typically perform very well with O3 optimizations.
Another idea, maybe people do not want to see de facto Linux distributions running as quickly as Apple and Windows, as I believe those operating system platforms are compiled with optimizations. Again, shrugs...
I still strongly believe some Linux distributions should invest in O3 optimizations. I ran Gentoo for decades with O3 optimizations with few problems.
Leave a comment:
-
Originally posted by rogerx View Post
You're likely correct. If I'm not mistaken, when using O2 versus O3, there maybe a longer load time, but overall the application will perform quicker.
Rarely, if ever, have a witnessed an application reacting slower with O3, if anything difference, reacting the same if not, reacting by far quicker.
O3 is aggressively unrolling but with modern branch predictors that can be counter productive.
You can see that in benchmarks, O3 has no big advantage and can be even slower. It all depends on the CPU and the program.
Leave a comment:
-
Originally posted by Mark Rose View Post
Long ago I believe -O3 enabled --no-strict-aliasing which caused bugs when used to compile code that had aliased variables. The code was not wrong.
Code compiling fine does not necessarily mean the code was written correctly.
Leave a comment:
-
Originally posted by patrick1946 View Post
Wow, do you really think the compiler has no bugs? O3 is producing more machine code, which has the disadvantage of filling the caches. So, in the end, O3 can be slower than Os. Modern hardware does not profit so much from unrolling because the branch prediction has improved.
Rarely, if ever, have a witnessed an application reacting slower with O3, if anything difference, reacting the same if not, reacting by far quicker.
Leave a comment:
-
Originally posted by A1B2C3 View Post
No, wait a water rat. Come on the order. I have not yet installed the Ubuntu and did not check all the ports. I think there are open ones. Because the Sharing Desktop application in Ubuntu 16.04 uses a VNC protocol for remote access to your desktop, and by default it opens certain ports for incoming connections. This is only the beginning.
- Likes 2
Leave a comment:
-
Originally posted by A1B2C3 View Post
Let's clarify something else. I'm not a developer. I am a simple user. You are called a professional. You don't even know what is installed in Ubuntu. For the first time you hear about Sharing Decktop. You were sharply bored. I lost my time to find all this. You started an investigation and organized everything, as if I were lying. You wanted to put me a liar. All this is a place, and even worse. You went to shit. I demand apologies.
The only reason I started to investigate this was to make sure that I was correct and not remembering it wrongly, that is what you do if you are serious instead of just writing pure nonsense like some one else have done here in post after post.
As far as I'm concerned this is now a closed case and an established fact that you lied from the beginning to the end.Last edited by F.Ultra; 01 November 2024, 07:13 PM.
- Likes 3
Leave a comment:
-
Originally posted by A1B2C3 View Post
Water rat, I've already found a picture
- Likes 3
Leave a comment:
-
Originally posted by A1B2C3 View Post
animals, I have to download Ubuntu 16 again. There are applications for remote access to the desktop. No matter what you say, but it was. The Internet speed is low.
- Likes 2
Leave a comment:
Leave a comment: