Group, I am reading about tc (traffic control) and willing to get my feet wet. As requirement, there should be HTB compiled in the kernel. I grabbed a Mandrake 8.2 distro, and didn''t installed the kernel source. Anyone knows if the HTB is compiled in Mandrake 8.2, or point a way to find that out? I tried to read the /usr/src/kernel.xxxxx/.config file, but it doesn''t exists. Should I install the kernel-source.xxx.rpm or there is another way? Thanks for your time taken to answer and read my question. Trifon Visit my Web Site: http://www.dbaclick.com Tons of Oracle DBA''s scripts, articles, manuals and documents My profile: http://profiles.yahoo.com/clio_usa --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Hello Trifon, --On Wednesday, January 15, 2003 04:56:57 PM -0800 Trifon Anguelov <clio_usa@yahoo.com> wrote:> > Group, > > I am reading about tc (traffic control) and willing to get my feet wet. > As requirement, there should be HTB compiled in the kernel. I grabbed a > Mandrake 8.2 distro, and didn''t installed the kernel source. > > Anyone knows if the HTB is compiled in Mandrake 8.2, or point a way to > find that out? I tried to read the /usr/src/kernel.xxxxx/.config file, > but it doesn''t exists. Should I install the kernel-source.xxx.rpm or > there is another way? > > Thanks for your time taken to answer and read my question. >I doubt that 8.2 has HTB since 9.0 does not. Here''s how I looked: [root@ursa root]# grep -i htb /proc/ksyms [root@ursa root]# ls /lib/modules/2.4.19-16mdk/kernel/net/sched/ cls_fw.o.gz cls_rsvp6.o.gz cls_tcindex.o.gz sch_cbq.o.gz sch_dsmark.o.gz sch_htb.o.gz sch_prio.o.gz sch_sfq.o.gz sch_teql.o.gz cls_route.o.gz cls_rsvp.o.gz cls_u32.o.gz sch_csz.o.gz sch_gred.o.gz sch_ingress.o.gz sch_red.o.gz sch_tbf.o.gz [root@ursa root]# There are no symbols in the kernel containing the string "htb" and the sch_htb.o.gz module isn''t in the module library. Your options are: a) Download the HTB patch. b) Install the kernel source. c) Patch the kernel. d) Rebuild and install the new kernel OR a) Select a solution that uses CBQ since your kernel probably supports that already. Note that Wonder Shaper has scripts for both HTB and CBQ. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
Thanks Tom. As always great information. Well here is what I have got: # grep -i htb /proc/ksyms c58994a0 htb_qdisc_ops [sch_htb] c5896060 __insmod_sch_htb_S.text_L10720 [sch_htb] c5896000 __insmod_sch_htb_O/lib/modules/2.4.18-8.1mdksecure/kernel/net/sched/sch_htb.o.gz_M3D1763AA_V132114 [sch_htb] c5899440 __insmod_sch_htb_S.data_L160 [sch_htb] [root@gw1 root]# ls /lib/modules/2.4.18-8.1mdksecure/kernel/net/sched cls_fw.o.gz cls_rsvp.o.gz sch_cbq.o.gz sch_gred.o.gz sch_prio.o.gz sch_tbf.o.gz cls_route.o.gz cls_tcindex.o.gz sch_csz.o.gz sch_htb.o.gz sch_red.o.gz sch_teql.o.gz cls_rsvp6.o.gz cls_u32.o.gz sch_dsmark.o.gz sch_ingress.o.gz sch_sfq.o.gz Actually, at first the /proc/ksyms doesn''t show anything, but then I saw the module in my modules dir, so I load it with insmod. Is the output now means, that I am ready for HTB reading? It will be great to implement it as described. Regards, everyone Trifon Tom Eastep <teastep@shorewall.net> wrote:Hello Trifon, --On Wednesday, January 15, 2003 04:56:57 PM -0800 Trifon Anguelov wrote:> > Group, > > I am reading about tc (traffic control) and willing to get my feet wet. > As requirement, there should be HTB compiled in the kernel. I grabbed a > Mandrake 8.2 distro, and didn''t installed the kernel source. > > Anyone knows if the HTB is compiled in Mandrake 8.2, or point a way to > find that out? I tried to read the /usr/src/kernel.xxxxx/.config file, > but it doesn''t exists. Should I install the kernel-source.xxx.rpm or > there is another way? > > Thanks for your time taken to answer and read my question. >I doubt that 8.2 has HTB since 9.0 does not. Here''s how I looked: [root@ursa root]# grep -i htb /proc/ksyms [root@ursa root]# ls /lib/modules/2.4.19-16mdk/kernel/net/sched/ cls_fw.o.gz cls_rsvp6.o.gz cls_tcindex.o.gz sch_cbq.o.gz sch_dsmark.o.gz sch_htb.o.gz sch_prio.o.gz sch_sfq.o.gz sch_teql.o.gz cls_route.o.gz cls_rsvp.o.gz cls_u32.o.gz sch_csz.o.gz sch_gred.o.gz sch_ingress.o.gz sch_red.o.gz sch_tbf.o.gz [root@ursa root]# There are no symbols in the kernel containing the string "htb" and the sch_htb.o.gz module isn''t in the module library. Your options are: a) Download the HTB patch. b) Install the kernel source. c) Patch the kernel. d) Rebuild and install the new kernel OR a) Select a solution that uses CBQ since your kernel probably supports that already. Note that Wonder Shaper has scripts for both HTB and CBQ. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net Visit my Web Site: http://www.dbaclick.com Tons of Oracle DBA''s scripts, articles, manuals and documents My profile: http://profiles.yahoo.com/clio_usa --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--On Wednesday, January 15, 2003 09:21:08 PM -0800 Trifon Anguelov <clio_usa@yahoo.com> wrote:> > Thanks Tom. > As always great information. Well here is what I have got: ># grep -i htb /proc/ksyms > c58994a0 htb_qdisc_ops [sch_htb] > c5896060 __insmod_sch_htb_S.text_L10720 [sch_htb] > c5896000 > __insmod_sch_htb_O/lib/modules/2.4.18-8.1mdksecure/kernel/net/sched/sch_h > tb.o.gz_M3D1763AA_V132114 [sch_htb] c5899440 __insmod_sch_htb_S.data_L160 > [sch_htb] > > > [root@gw1 root]# ls /lib/modules/2.4.18-8.1mdksecure/kernel/net/sched > cls_fw.o.gz cls_rsvp.o.gz sch_cbq.o.gz sch_gred.o.gz > sch_prio.o.gz sch_tbf.o.gz cls_route.o.gz cls_tcindex.o.gz > sch_csz.o.gz sch_htb.o.gz sch_red.o.gz sch_teql.o.gz > cls_rsvp6.o.gz cls_u32.o.gz sch_dsmark.o.gz sch_ingress.o.gz > sch_sfq.o.gz > > Actually, at first the /proc/ksyms doesn''t show anything, but then I saw > the module in my modules dir, so I load it with insmod. > > Is the output now means, that I am ready for HTB reading? It will be > great to implement it as described.The only question now is if your /sbin/tc has HTB support because it looks like you have kernel support! You can try: tc class add dev eth0 parent 1: classid 1:1 htb rate 384kbit burst 15k If that works, your /sbin/tc is ok -- if not, you download the one from the HTB page and copy it into /sbin/tc. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
The output is: # tc class add dev eth0 parent 1: classid 1:1 htb rate 384kbit burst 15k Error: Qdisc "htb" is classless. Let me guess - doesn''t look good?? I go and grab the tc from the site you mentioned? Thanks, Trifon Tom Eastep <teastep@shorewall.net> wrote: --On Wednesday, January 15, 2003 09:21:08 PM -0800 Trifon Anguelov wrote:> > Thanks Tom. > As always great information. Well here is what I have got: ># grep -i htb /proc/ksyms > c58994a0 htb_qdisc_ops [sch_htb] > c5896060 __insmod_sch_htb_S.text_L10720 [sch_htb] > c5896000 > __insmod_sch_htb_O/lib/modules/2.4.18-8.1mdksecure/kernel/net/sched/sch_h > tb.o.gz_M3D1763AA_V132114 [sch_htb] c5899440 __insmod_sch_htb_S.data_L160 > [sch_htb] > > > [root@gw1 root]# ls /lib/modules/2.4.18-8.1mdksecure/kernel/net/sched > cls_fw.o.gz cls_rsvp.o.gz sch_cbq.o.gz sch_gred.o.gz > sch_prio.o.gz sch_tbf.o.gz cls_route.o.gz cls_tcindex.o.gz > sch_csz.o.gz sch_htb.o.gz sch_red.o.gz sch_teql.o.gz > cls_rsvp6.o.gz cls_u32.o.gz sch_dsmark.o.gz sch_ingress.o.gz > sch_sfq.o.gz > > Actually, at first the /proc/ksyms doesn''t show anything, but then I saw > the module in my modules dir, so I load it with insmod. > > Is the output now means, that I am ready for HTB reading? It will be > great to implement it as described.The only question now is if your /sbin/tc has HTB support because it looks like you have kernel support! You can try: tc class add dev eth0 parent 1: classid 1:1 htb rate 384kbit burst 15k If that works, your /sbin/tc is ok -- if not, you download the one from the HTB page and copy it into /sbin/tc. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net Visit my Web Site: http://www.dbaclick.com Tons of Oracle DBA''s scripts, articles, manuals and documents My profile: http://profiles.yahoo.com/clio_usa --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--On Wednesday, January 15, 2003 9:40 PM -0800 Trifon Anguelov <clio_usa@yahoo.com> wrote:> > The output is: ># tc class add dev eth0 parent 1: classid 1:1 htb rate 384kbit burst 15k > Error: Qdisc "htb" is classless. >That would be my advice. -Tom -- Tom Eastep \ Shorewall - iptables made easy AIM: teastep \ http://shorewall.sf.net ICQ: #60745924 \ teastep@shorewall.net