Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
COmpile NetworkManager with -O3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fbeth
n00b
n00b


Joined: 28 Feb 2023
Posts: 8

PostPosted: Thu Dec 07, 2023 9:07 am    Post subject: COmpile NetworkManager with -O3 Reply with quote

Hi,

I wanted to know if it would benefit the NetworkManager service startup time if I compiled it with the -O3 flag, does someone have data or benchmark about this ? Anyone tried it ? Do I need to make my own benchmarks ?

Thanks.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Thu Dec 07, 2023 11:03 am    Post subject: Reply with quote

I don't think networkmanager startup time will benefit -O3.
There would be ms not sensible fraction of a second.

Thks 4 ur attention, interest & support
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Thu Dec 07, 2023 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Thu Dec 07, 2023 11:20 am    Post subject: Re: COmpile NetworkManager with -O3 Reply with quote

fbeth wrote:
I wanted to know if it would benefit the NetworkManager service startup time if I compiled it with the -O3 flag ...

Do you have a problem with the time it takes to start? That's much more likely to be network issues than anything software. Unless you're running on something ancient like an 8086, all the stuff NetworkManager itself does should be over in negligible time.
_________________
Greybeard
Back to top
View user's profile Send private message
fbeth
n00b
n00b


Joined: 28 Feb 2023
Posts: 8

PostPosted: Fri Dec 08, 2023 2:50 pm    Post subject: Re: COmpile NetworkManager with -O3 Reply with quote

Goverp wrote:
Do you have a problem with the time it takes to start? That's much more likely to be network issues than anything software. Unless you're running on something ancient like an 8086, all the stuff NetworkManager itself does should be over in negligible time.

I wouldn't really notice the difference, I'm just curious on how low I get to start my computer.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Fri Dec 08, 2023 4:51 pm    Post subject: Reply with quote

fbeth,

Load time is related to code size.

-O3 makes code bigger to try to get it to execute faster.
For small code (to load fastest) use -Os, that's optimise for size.

The kernel has that option too.

Fastest is to not use network manager, then it won't be loaded at all. :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum