All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Mestnik <cheako911@yahoo.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB_debug_dump: is annoying :) [Pach included]
Date: Sat, 05 Jul 2003 08:34:10 +0000	[thread overview]
Message-ID: <marc-lartc-105739415300481@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105737651226550@msgid-missing>

No, the patch dose not affect tc only dmesg/klogd ect.  It changes printk's into HTB_DBG macros,
these macros don't print unless you set HTB into debug mode :)

The default kernel workes ?great? with my script 2.4.x and 2.5.x.

Here is an example...
The script workes like so... (10: is the qdisc-id)
filbert:~# /etc/network/mrtg.overlimits.pl 10: total,over
96320 <-- This is the total.
6630  <-- These are the overlimits (the total,over param dose this)
filbert:~# /etc/network/mrtg.overlimits.pl 10: total,over
96336
6654
filbert:~# /etc/network/mrtg.overlimits.pl 10: total,over
96359
6683
filbert:~# /etc/network/mrtg.overlimits.pl 10: total,over
96373
6705

mrtg.cfg lookes like this.
#############################################################
#
#
                                                                                                  
                    
Target[toverlimits]: `/etc/network/mrtg.overlimits.pl 10: total,over`
MaxBytes[toverlimits]: 6400
AbsMax[toverlimits]: 640000
WithPeak[toverlimits]: wmy
Options[toverlimits]: noinfo, perminute
YLegend[toverlimits]: Packets/Minute
ShortLegend[toverlimits]: p/min
Legend1[toverlimits]: Sent Traffic in Packets per Minute
Legend2[toverlimits]: Overlimit Traffic in Packets per Minute
Legend3[toverlimits]: Maximal 5 Minute Sent Traffic
Legend4[toverlimits]: Maximal 5 Minute Overlimit Traffic
LegendI[toverlimits]: &nbsp;Sent:
LegendO[toverlimits]: &nbsp;Overlimit:
Title[toverlimits]: Root Qdisc Sent/Overlimits on Internet Pipe -- Filbert
PageTop[toverlimits]: <H1>Root Qdisc Sent/Overlimits on Internet Pipe -- Filbert</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>Filbert (Main Router and Moms PC)</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Cheako cheako911@yahoo.com</TD></TR>
   <TR><TD>Description:</TD><TD>Sent/Overlimits on Internet Pipe</TD></TR>
 </TABLE>
                                                                                                  
                    
#-------------------------------------------------------------------

You can see my graphs at http://filbert.is-a-geek.org/mrtg/

P.N. The original patch I sent in had one bug, theres a part that lookes like this "q->debug>>(0)
|= 3;"
It needed to look like this. "debug_backup = q->debug;"

@@ -1046,7 +1047,10 @@
                if (min_delay = LONG_MAX) {
                        printk(KERN_ERR "HTB: dequeue bug (%d,%lu,%lu), report it please !\n",
                                        evs_used,q->jiffies,jiffies);
+                       debug_backup = q->debug;
+                       q->debug |= 3>>(0);
                        htb_debug_dump(q);
+                       q->debug = debug_backup;
                } else
                        printk(KERN_WARNING "HTB: mindelay=%ld, some class has "
                                        "too small rate\n",min_delay);


--- Trevor Warren <trevorwarren@softhome.net> wrote:
> Sorry Mike,
> 
>  This isn't an answer to your queries but instead a question. I would
> like to know if there are any added fields to the tc -s -d output post
> application of the 2.5 kernel patch you have applied below.
> 
>  Cause i am using htb with 2.4.21 and there isn't much of graphing i can
> do with the same. Especially no current rate parameter for HTB sub
> classes.
> 
> Trevor
> 
> 
> On Sat, 2003-07-05 at 03:09, Mike Mestnik wrote:
> > I use MRTG to graph tc -d output, so the debug_dump fills up my dmesg logs ect.  It's just
> > annoying.
> > 
> > Attached is a patch vs 2.5.74 and my MRTG script.
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> -- 
> ( >-        LINUX, It's all about CHOICE      -< )
> /~\    __        twarren@redhat.com       __   /~\
> |  \) /  Pre Sales Consultant - Red Hat     \ (/ |
> |_|_  \    9820349221(M) | 22881326(O)      / _|_|
>        \___________________________________/
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-07-05  8:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-04 15:37 [LARTC] HTB_debug_dump: is annoying :) [Pach included] Trevor Warren
2003-07-04 21:39 ` Mike Mestnik
2003-07-05  8:34 ` Mike Mestnik [this message]
2003-07-05 10:49 ` devik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105739415300481@msgid-missing \
    --to=cheako911@yahoo.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.