* Re: [LARTC] HTB debug info in kernel log
2003-02-13 6:24 [LARTC] HTB debug info in kernel log Brad Davidson
@ 2003-02-13 7:30 ` Stef Coene
2003-02-13 8:48 ` Brad Davidson
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-02-13 7:30 UTC (permalink / raw)
To: lartc
On Thursday 13 February 2003 08:10, Brad Davidson wrote:
> I set up a Perl script to parse the output of 'tc -s qdisc show dev <if>'
> to get stats for MRTG. The only problem is, every time the tc command runs,
> I get many lines output to my kernel level syslog - 84, to be exact They
> look something like this:
>
> oatmail kernel: htb*c10124 m=2 t"748 c\x19272 pq=0 dfI07008 ql=0 pa=0 f:
> oatmail kernel: htb*c10094 m=2 t†150 c†150 pq=0 df#7568 ql=0 pa=0 f:
> oatmail kernel: htb*g j\x171630276
> oatmail kernel: htb*r7 m=0
> oatmail kernel: htb*r6 m=0
>
> I found some reference in the source to a command to tc to set various
> debug levels, although the function that seems to be printing the info
> (htb_debug_dump) does not seem to care about the set level - if debug is
> defined, it prints. Short of altering the DEFINE statement and recompiling
> the kernel, is there any way to disable this output?
I had the same problem. I uncomment the DEFINE statement. But logging there
numbers, means there is something miss with your htb setup and has nothing to
do with you asking for statistics. You can find more info on the homepage of
htb. But it's possible that your rates settings are too low.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] HTB debug info in kernel log
2003-02-13 6:24 [LARTC] HTB debug info in kernel log Brad Davidson
2003-02-13 7:30 ` Stef Coene
@ 2003-02-13 8:48 ` Brad Davidson
2003-02-13 17:37 ` Brad Davidson
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Brad Davidson @ 2003-02-13 8:48 UTC (permalink / raw)
To: lartc
On Thu, 13 Feb 2003 at 00:41:54, Stef Coene wrote:
> On Thursday 13 February 2003 08:10, Brad Davidson wrote:
> I had the same problem. I uncomment the DEFINE statement. But logging there
> numbers, means there is something miss with your htb setup and has nothing to
> do with you asking for statistics. You can find more info on the homepage of
> htb. But it's possible that your rates settings are too low.
>
> Stef
I used htb.init (http://freshmeat.net/projects/htb.init/) to make my rules, so
I'm pretty sure they should be OK.
I'm looking at the code in htb_dump, which appears to be what's called to get
statistics information by the tc application. It looks to me like if you have
debug enabled, as part of the stats collecting routine, it calls htb_debug_dump
regardless of whether or not there's anything wrong with your setup.
There are other circumstances that it prints an error message followed by a
debug dump, but I'm not seeing an error. It just looks to me like debug info is
printed every time a queue is polled for stats info.
If you want to take a look at what I'm talking about, check out line 1211 of
sch_htb.c
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] HTB debug info in kernel log
2003-02-13 6:24 [LARTC] HTB debug info in kernel log Brad Davidson
2003-02-13 7:30 ` Stef Coene
2003-02-13 8:48 ` Brad Davidson
@ 2003-02-13 17:37 ` Brad Davidson
2003-02-13 18:35 ` Stef Coene
2003-02-13 23:44 ` Brad Davidson
4 siblings, 0 replies; 6+ messages in thread
From: Brad Davidson @ 2003-02-13 17:37 UTC (permalink / raw)
To: lartc
On Thu, 13 Feb 2003 at 01:58:53, Brad Davidson wrote:
> I'm looking at the code in htb_dump, which appears to be what's called to get
> statistics information by the tc application. It looks to me like if you have
> debug enabled, as part of the stats collecting routine, it calls htb_debug_dump
> regardless of whether or not there's anything wrong with your setup.
> If you want to take a look at what I'm talking about, check out line 1211 of
> sch_htb.c
BTW I just commented out the line in question and recompiled the module. It no
longer floods the logs. As far as I can tell, there's no good reason for it to
do that. It doesn't even check the requested debug levels, or do it of
somtehing's wrong. Every time stats info is polled, you get debug info whether
you wanted it or not.
Anybody else confirm this going on? Or am I just crazy?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] HTB debug info in kernel log
2003-02-13 6:24 [LARTC] HTB debug info in kernel log Brad Davidson
` (2 preceding siblings ...)
2003-02-13 17:37 ` Brad Davidson
@ 2003-02-13 18:35 ` Stef Coene
2003-02-13 23:44 ` Brad Davidson
4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-02-13 18:35 UTC (permalink / raw)
To: lartc
On Thursday 13 February 2003 10:34, Brad Davidson wrote:
> On Thu, 13 Feb 2003 at 00:41:54, Stef Coene wrote:
> > On Thursday 13 February 2003 08:10, Brad Davidson wrote:
> > I had the same problem. I uncomment the DEFINE statement. But logging
> > there numbers, means there is something miss with your htb setup and has
> > nothing to do with you asking for statistics. You can find more info on
> > the homepage of htb. But it's possible that your rates settings are too
> > low.
> >
> > Stef
>
> I used htb.init (http://freshmeat.net/projects/htb.init/) to make my rules,
> so I'm pretty sure they should be OK.
But still you can configure a class with a too low rate.
> I'm looking at the code in htb_dump, which appears to be what's called to
> get statistics information by the tc application. It looks to me like if
> you have debug enabled, as part of the stats collecting routine, it calls
> htb_debug_dump regardless of whether or not there's anything wrong with
> your setup.
>
> There are other circumstances that it prints an error message followed by a
> debug dump, but I'm not seeing an error. It just looks to me like debug
> info is printed every time a queue is polled for stats info.
>
> If you want to take a look at what I'm talking about, check out line 1211
> of sch_htb.c
Devik? Debug problems?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] HTB debug info in kernel log
2003-02-13 6:24 [LARTC] HTB debug info in kernel log Brad Davidson
` (3 preceding siblings ...)
2003-02-13 18:35 ` Stef Coene
@ 2003-02-13 23:44 ` Brad Davidson
4 siblings, 0 replies; 6+ messages in thread
From: Brad Davidson @ 2003-02-13 23:44 UTC (permalink / raw)
To: lartc
On Thu, 13 Feb 2003 at 11:46:55, Stef Coene wrote:
> > I used htb.init (http://freshmeat.net/projects/htb.init/) to make my
> rules,
> > so I'm pretty sure they should be OK.
> But still you can configure a class with a too low rate.
I know. I've seen one error message in the past regarding a too-low rate, but I
have since reconfigured my rules, and haven't seen any warnings since. I don't
have any classes set with really low rates - 256kb/sec is the lowest.
> Devik? Debug problems?
How about a sub-option on the HTB config option to enable/disable debugging, as
opposed to a #DEFINE in the source? Or maybe just a comment as to why it's
printing all this :P
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread