lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 28 Jan 2010 22:21:00 +0100
From:	Jarek Poplawski <jarkao2@...il.com>
To:	Anton Ivanov <anton.ivanov@...-begemot.co.uk>
Cc:	David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: CBQ broken in 2.6

On Thu, Jan 28, 2010 at 07:48:55PM +0000, Anton Ivanov wrote:
> Hi Jarek,
Hi Anton,
...
> > So, xstats.borrows is updated for lender as well, which might look
> > wrong/right/funny (depending on your political principles ;-).
> 
> OK. I will look at it. The traffic is actually in a subclass (1:18) so
> this may explain it. It definitely does not fit my "political
> principles". Borrow should mean how many times the class has borrowed
> and overactions should mean the whole lot of overs - delay, borrow,
> drop, etc. At least that were the semantics on BSD and other
> implementations I dealt with before Linux. 

Of course I was joking, and no need to explain this is at least
misleading, but if it's old enough it might be treated as part of user
API. Probably somebody wanted to save an additional variable, and btw.
in some languages there is one verb only, something like here:

"bounded
	Signifies that this class will not borrow bandwidth from its siblings.

 isolated
        Means that this class will not borrow bandwidth to its siblings"

[from man(8)tc-cbq]

So, consider it documented ;-)

> 
> My problem as well is that my C has always sucked bricks and I use it
> once a year when I run into a problem like that. So it takes me a while
> to trace it and figure it out.
> 
> > 
> > It could be your case if the class above has an unbounded child class.
> > Otherwise, it needs more searching. Btw, I'm not the CBQ expert to
> > verify (without learning the specs) these borrowing relations. (As a
> > matter of fact, within a few years I didn't find here many traces of
> > such (active) experts, so my recommendation would be HTB or HFSC
> > unless you really know what you're doing ;-)
> 
> Well, I know CBQ reasonably well from a "network engineer" perspective.
> I used to run it production in an ISP 1998 and after that in an SMB
> 2002-2007. I have also been running it in lab and on my home network for
> 10+ years. Mostly on BSD though. There was even a point where I
> maintained a fork of the patches before they went into the main tree.
> The sole reason I ditched BSD was that they plugged it into the pf
> framework and it became too big of a hassle to port/maintain the
> configs.
> 
> I know what I am doing and HTB is not what I want. It is a good algo for
> expressing classic commerical relationships (CIR/PIR). It is worse than
> CBQ for "sharing" where all of the apps that share are your own and the
> scheduler/estimator is good.

Well, congratulations! But, please, remember this nice, but a very
complex tool is rarely improved/fixed now, mainly not to break some
backward compatibility, while not much reporters/testers either. But,
of course, any feedback is welcome...

Thanks,
Jarek P.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ