Igb or igc in tunables?
-
The file must be
/boot/loader.conf.local
.I expect these values to be the same:
[22.01-BETA][admin@6100.stevew.lan]/root: sysctl hw.igc.eee_setting hw.igc.eee_setting: 1 [22.01-BETA][admin@6100.stevew.lan]/root: sysctl dev.igc.0.eee_control dev.igc.0.eee_control: 1
Are you not seeing that?
-
I’m reading the PFSENSE docs about the System Tunables and the information regarding loader.config.local for igc driver variables.
I’ll go back and check. Thought in tunables to turn a variable off its “0” and if turning a variable off in loader.config.local its “1”.
Yes, in tunables “0” is “no flow control”.
O,1,2,3 choices.
Gotta keep reading. I’m getting lost on which variables “1” turns them off, “0” turns them off, etc.
hw.igc.smart_pwr_down: 0
Does that turn smart power down on or off?
“ hw.em.smart_pwr_down: Set to true to leave smart power down enabled on newer adapters”
What is “true”, 1 or 0?
-
-
On should be 1 (true) and off should be 0 (false) in both places.
To be honest I don't think you will gain anything by setting any of those values. But it doesn't hurt to try.
-
I agree. The primary goal is to learn about some of these options though.
“eee” variable should be “0” in loader.config? I have it “0” in System Tunables.
“ hw.igc.eee_setting: 1”
Is confusing me.
Or is the variable in loader.config….. just telling the OS that the variable can be set?
-
I expect it to be 0 in both places if you want to disable eee on the NIC.
For a variable like that I would expect the loader variable to set the driver default option and then the system tunable to be available per NIC if you want it enabled only on one for example.
Steve
-
Your eee is enabled?
If I do the igc eee setting in loader.config not needed for individual NIC’s?
So much easier in Windows and setting the network card’s options in Advance tab.
-
Yes, it's enabled in my output above.
-
Thanks for your help. I’ve seen you responding in other threads regarding Tunables and Loader questions.
My #3 that was not true, now it makes more sense. There are variables that can go in both places.
hw.igc.eee_setting: 0
Doesn’t seem to be setting anything from my loader.config.local.
The tunables work.
hw.igc.max_interrupt_rate: 8000
hw.igc.eee_setting: 1
hw.igc.rx_process_limit: 100
hw.igc.sbp: 1
hw.igc.smart_pwr_down: 0
hw.igc.rx_abs_int_delay: 66
hw.igc.tx_abs_int_delay: 66
hw.igc.rx_int_delay: 0
hw.igc.tx_int_delay: 66
hw.igc.disable_crc_stripping: 0Edit. I keep typing config. My file is loader.conf.local. My bad.
-
This says “1” is disabled.
https://www.freebsd.org/cgi/man.cgi?query=igc#LOADER_TUNABLES
-
Hmm, curious. Well it guess it pays to always read the man page! Nice catch.
-
What does the command IF wanted to put them in loader.conf.local actually look like?
hw.igc.eee_setting=“1”
Also there’s no mention of loader.conf.local. That page says everything goes in loader.conf.
If the default already turns off eee why bother with any tunable for eee?
Edit: Also this is why I'm a bit confused regarding 0's and 1's. Some times 1 disables and some times 0?
-
@jsmiddleton4 said in Igb or igc in tunables?:
hw.igc.eee_setting=“1”
Yes, that would work.
The default works fine, there's no need to set it. The same is true for almost all the tunables or loader variables. I would only expect to ever need to set anything there if you are using an unusual NIC type or using a common NIC in an unusual way.
Steve
-
-
Like using WoL where it needs to remain active or some custom lagg type etc.
-
I’m a registered nurse. I’m wondering what the variable is to use a NIC do do a colonoscopy. Is that a hw, inet, kern….?
-
Well, you'd need the right adapter....