Igb or igc in tunables?
-
@stephenw10
PFSense just told me I can’t do them in Tunables….:)
-
So far these appear to be working. No error messages at boot. All in System Tunables. I have 3 Intel 2.5gb NIC’s. 1-WAN, 2-LAN
All 0.
dev.igc.1.eee_control
dev.igc.2.eee_control
dev.igc.1.fc
dev.igc.2.fc
dev.igc.0.eee_control
dev.igc.0.fcAll 1.
dev.igc.0.enable_aim
dev.igc.1.enable_aim
dev.igc.2.enable_aimIf I understand this correctly:
- Some variables may be and must be set in System Tunables directly.
- Some variables may be and must be set in loader config directly.
- Some variables to be set have to be placed in loader config first and then a corresponding entry in System Tunables.
-
@jsmiddleton4 said in Igb or igc in tunables?:
Some variables may be and must be set in System Tunables directly.
Some variables may be and must be set in loader config directly.
Some variables to be set have to be placed in loader config first and then a corresponding entry in System Tunables.Yes.
Yes.
No.You can often read the loader variables from the sysctl interface but not set them. I'm not aware of anything you have to set in both places. Some can be set in either place.
Values that need to be set before the driver loads are added as loader variables. Anything that can be set after the driver has loaded and attached to the hardware can be in sysctls.Steve
-
hw.igc.eee_setting: 1
If its in the loader.config.local “1” is off but if a Tunable “0” is off?
-
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….?