netdev
[Top] [All Lists]

testing techniques to confirm the effectiveness of changes made to sch_g

To: netdev@xxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, lartc-request@xxxxxxxxxxxxxxx, diffserv-general@xxxxxxxxxxxxxxxxxxxxx, linux.kernel@xxxxxxxxxxxxxxxx
Subject: testing techniques to confirm the effectiveness of changes made to sch_gred.c
From: Rahul Hari <rahulhsaxena@xxxxxxxxx>
Date: Sat, 11 Jun 2005 06:09:42 +0530
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Tn+JLetwe2pmbttlsjws0jrA5R03SuIvA+zeFjBK3BX7SdTGOygmywXnHLP2OSO/55iej05n1tK+gI/TH5NgTrs44hO6BJHuldyoNGYnnFTgqXIMVSeKEPK648nMNPcGAi22EUsZibbfKkdvReUJFQ3PmrxR9ay4MOTfSEXlapA=
Reply-to: rahul.hari@xxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Hi,
I have made some changes to the file sch_gred.c to modify the GRED
queueing discipline to support the following features:
1) The first virtual queue should get absolute priority while
dequeueing (not caring if the others get starved)
2) While in equalise mode and with RIO mode enabled, the packets in
the first virtual queue should not be counted for calculating the
qave.

I want to confirm if the changes made by me are really effective. I
would be grateful if someone could let me know about any testing
techniques that can be followed for confirming that the changes are
really effective.

It would be great if someone could also let me know if the logic that
I have applied to effect these changes is correct.

My logic is as follows:
1) Since the  process deals with dequeueing, i have to make changes to
gred_dequeue only. If t->tab[0] != 0 then  we dequeue the packet
otherwise do not dequeue it.

2)  
if (t->eqp && t->grio) {

         for (i=0;i<t->DPs;i++) {
                        if ((!t->tab[i]) || (i==q->DP) || (i==0))       
                                continue; 
                                
                        if ((t->tab[i] != q) && 
(PSCHED_IS_PASTPERFECT(t->tab[i]->qidlestart)))
                                qave +=t->tab[i]->qave;
                     }



Regards,
Rahul

-- 
----------------------
"The fear you let build up in your mind is worse than the situation
that actually exists"
from "who moved my cheese"
---------------------------------------------------------------------------------
Rahul Hari
Senior Under Grad. Student,
Department of CSE,
ITBHU,
Varanasi.
Ph: +91-9845347020
rahul.hari@xxxxxxxxxxxxxxx
------------------------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>