Skip to contentSkip to conversation

Kernel options for QoS

LARTC Stef Coene 2 participants 3 messages May 28, 2003 – May 30, 2003

lore
Share & tools
lore

Stef Coene

author
#0 lore raw
Quoted 49 lines · Mathieu MALAISE

Hello All,

I'm new to QoS under Linux so please be indulgent
with the following question.

I try to run tc under Linux 2.4.20, my kernel has the following options:

CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y
[...]
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_CSZ=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_DSMARK=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_QOS=y
CONFIG_NET_ESTIMATOR=y
# CONFIG_NET_CLS is not set

but when I try to do:

[root@mysystem]# tc qdisc add dev ppp0 root tbf rate 128kbit latency 50ms
burst 1540
Quoted 8 lines

I get this:
RTNETLINK answers: Invalid argument

syslog says:
modprobe: Can't locate module sch_tbf

if I compile it as a module, the module fails to load anyway (some unresolved symbols)...

Have you booted from your recompiled kernel?
If not, you are trying to load to module in the wrong kernel and that's why you get the inresovled symboles problem.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

Hello All,

I'm new to QoS under Linux so please be indulgent
with the following question.

I try to run tc under Linux 2.4.20, my kernel has the following options:

CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y
[...]
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_CSZ=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y
CONFIG_NET_SCH_GRED=y
CONFIG_NET_SCH_DSMARK=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_NET_QOS=y
CONFIG_NET_ESTIMATOR=y
# CONFIG_NET_CLS is not set

but when I try to do:

[root@mysystem]# tc qdisc add dev ppp0 root tbf rate 128kbit latency 50ms burst 1540

I get this:
RTNETLINK answers: Invalid argument

syslog says:
modprobe: Can't locate module sch_tbf

if I compile it as a module, the module fails to load anyway (some unresolved symbols)...

Do I miss an option that should be set in the kernel .config file ?

Thanks for your help,
Mathieu.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#2 lore raw
In reply to Stef Coene
Quoted 1 line · On Friday 30 May 2003 09:04, [email protected] wrote:

Actually yes, its the new kernel.

If you booted from your new kernel and you can't load the module, recompile everything from scratch and reboot from the kernel again.
cd /usr/src/linux ; make clean oldconfig deb bzImage modules modules_install

Quoted 5 lines

I've read on this mailing-list that CONFIG_NETLINK doesn't exist anymore in 2.4.20 and is not needed to run tc and that CONFIG_NETLINK_DEV is not needed either.

So what can it be ??

This is a kernel + modules problem. Not a tc problem.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/