gpt4 book ai didi

linux - 在 Linux 中从 kernel/net/sched 文件夹加载不同的模块

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:41:49 26 4
gpt4 key购买 nike

我注意到在 ubuntu 的 kernel/net/sched 文件夹中有各种 .ko 文件(内核模块)各种调度算法,例如 RED 算法(sch_red.ko).

如何确定我的内核正在使用哪个模块,是否有办法更改为另一个模块?

最佳答案

使用tc。以下命令将显示当前正在使用的 qdisc(队列规则):

# tc qdisc show
qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc mq 0: dev wlan0 root

您可以modprobe sch_red 模块,然后按照red(8) 中的描述尝试启用它。另请查看 Traffic control HOWTO .

关于linux - 在 Linux 中从 kernel/net/sched 文件夹加载不同的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26448234/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com