os:linux:kernel-tuning
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:linux:kernel-tuning [2021-04-25 00:10] – [BBR Network Congestion Algorithm] Manuel Frei | os:linux:kernel-tuning [2025-02-22 16:56] (current) – Manuel Frei | ||
---|---|---|---|
Line 33: | Line 33: | ||
**Links** | **Links** | ||
- | * [[https:// | + | * [[https:// |
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== FQ - Fair Queue traffic policing ===== | ||
+ | |||
+ | FQ (sometimes referred to as sch_fq because of the name of its kernel module name) is a packet scheduler which was implemented by Eric Dumazet like FQ_Codel and can be configured as queueing discipline (qdisc). FQ can be used as a drop in replacement for pfifo_fast. | ||
+ | |||
+ | The CoDel wiki says this: | ||
+ | >For servers with tcp-heavy workloads, particularly at 10GigE speeds, for queue management, we recomend sch_fq instead of fq_codel as of linux 3.12. | ||
+ | -- [[https:// | ||
+ | |||
+ | * fq_codel - best for routers, hypervisors and best general purpose qdisc | ||
+ | * fq - best for fat servers with TCP only workload at 10Gbps | ||
+ | |||
+ | Activate on the current system and replace qdisc on eth0 (not recommended). | ||
+ | < | ||
+ | sysctl -w net.core.default_qdisc=fq | ||
+ | tc qdisc replace dev eth0 root fq | ||
+ | </ | ||
+ | |||
+ | Persistent configuration. Reboot required to activate (recommended). | ||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | **Links** | ||
+ | * man 8 tc-fq | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Ephemeral Ports ===== | ||
+ | |||
+ | < | ||
+ | sysctl -w net.ipv4.ip_local_port_range=" | ||
+ | </ | ||
+ | |||
+ | Permanently set this configuration. | ||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | **Links** | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
os/linux/kernel-tuning.1619302258.txt.gz · Last modified: 2021-04-25 00:10 by Manuel Frei