Thread View: news.software.nntp
8 messages
8 total messages
Started by Shawn Ramsey
Tue, 07 Mar 2000 00:00
throttle?
Author: Shawn Ramsey
Date: Tue, 07 Mar 2000 00:00
Date: Tue, 07 Mar 2000 00:00
10 lines
893 bytes
893 bytes
Is it possible to throttle users, by either IP or username, to a certain kb/s? Im sure it is possible, but where do I configure this? I am running inn 2.3. I didn't see anything in inn.conf or readers.conf, which is where I would figure it would be.
Re: throttle?
Author: Shawn Ramsey
Date: Tue, 07 Mar 2000 00:00
Date: Tue, 07 Mar 2000 00:00
20 lines
1597 bytes
1597 bytes
Nickolai Zeldovich wrote: > > In article <8a4iim$1mm4$1@ariadne.rz.tu-clausthal.de>, Oliver Fromme wrote: > >But seriously. Bandwidth limiting is usually implemented in > >the OS. > > Actually Diablo's dreaderd implements outgoing rate limiting, and doing > it in dreaderd is much easier than modifying the IP stack to do that > instead. (Even with FreeBSD's dummynet, I'm having trouble thinking of > a simple configuration which would, say, limit every user to at most > 100 kbps outgoing traffic, independently.) This would have to be a server thing, how could the OS throttle/limit users that don't have a static IP? Maybe it is possible, but it would seem far easier to do this in the server. As you said, Diablo can do this, DNEWS can even do this. :) So I guess INN can't?
Re: throttle?
Author: Curt Welch
Date: Wed, 08 Mar 2000 00:00
Date: Wed, 08 Mar 2000 00:00
30 lines
2142 bytes
2142 bytes
Oliver Fromme <olli@dumps.core.de> wrote: > Shawn Ramsey <shawn@megadeth.org> wrote (Tue, 7 Mar 2000 13:57:35 -0800): > > Is it possible to throttle users, by either IP or username, to a > > certain kb/s? > > Throttle users? Doesn't that hurt? > > But seriously. Bandwidth limiting is usually implemented in > the OS. This is not a thing that application programs should > care about. The application needs to know about it for all but the most simple cases. You need to support different limits based on the user, but only the application "knows" who the user is, so it must get involved. And sometimes, you may want to vary the limit based on the command -- so for example LIST ACTIVE or XOVER commands aren't limited, but ARTICLE commands are. You can't make this work unless the application gets involved in the processes. And bandwidth limiting is simple enough to do that there's no reason it "should" be done in the OS. So it makes a lot of sense to just put it all into the application. On top of that, most OSs don't have a standard way to do bandwidth limiting. So if you put it in the application, then you reduce the porting issues. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: throttle?
Author: Oliver Fromme
Date: Wed, 08 Mar 2000 00:00
Date: Wed, 08 Mar 2000 00:00
26 lines
1836 bytes
1836 bytes
Shawn Ramsey <shawn@megadeth.org> wrote (Tue, 7 Mar 2000 13:57:35 -0800):
> Is it possible to throttle users, by either IP or username, to a certain
> kb/s?
Throttle users? Doesn't that hurt?
But seriously. Bandwidth limiting is usually implemented in
the OS. This is not a thing that application programs should
care about. I'm not familiar with INN 2.3 (I'm using 2.2.2),
but I don't think it should implement such a function itself.
Fo example, FreeBSD has a bandwidth limitation facility called
``dummynet'', see http://www.fromme.com/man/dummynet (that's
just an example; other systems certainly have similar things).
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem St�ck Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
Re: throttle?
Author: Joe Greco
Date: Wed, 08 Mar 2000 00:00
Date: Wed, 08 Mar 2000 00:00
31 lines
1871 bytes
1871 bytes
In news.software.nntp article <slrn8cbl0u.2kb.kolya@pepsi.mit.edu>, kolya@mit.edu (Nickolai Zeldovich) wrote: :In article <8a4iim$1mm4$1@ariadne.rz.tu-clausthal.de>, Oliver Fromme wrote: :>But seriously. Bandwidth limiting is usually implemented in :>the OS. : :Actually Diablo's dreaderd implements outgoing rate limiting, and doing :it in dreaderd is much easier than modifying the IP stack to do that :instead. (Even with FreeBSD's dummynet, I'm having trouble thinking of :a simple configuration which would, say, limit every user to at most :100 kbps outgoing traffic, independently.) But seriously, it's trivial in something like nnrpd. You have a function like write(fd, buf, nbytes); Depending on the placement of the write, you can do a variety of things to essentially put a sleep(1); after the write periodically to keep the rate down. I'd provide you with code but it is easier to code for specific types of uses of write() than it is to do a generalized throttle function. At least at this time of day.. :-) ... JG
Re: throttle?
Author: Nickolai Zeldovich
Date: Wed, 08 Mar 2000 00:00
Date: Wed, 08 Mar 2000 00:00
13 lines
1164 bytes
1164 bytes
In article <8a4iim$1mm4$1@ariadne.rz.tu-clausthal.de>, Oliver Fromme wrote: >But seriously. Bandwidth limiting is usually implemented in >the OS. Actually Diablo's dreaderd implements outgoing rate limiting, and doing it in dreaderd is much easier than modifying the IP stack to do that instead. (Even with FreeBSD's dummynet, I'm having trouble thinking of a simple configuration which would, say, limit every user to at most 100 kbps outgoing traffic, independently.) -- kolya
Re: throttle?
Author: bill davidsen
Date: Thu, 09 Mar 2000 00:00
Date: Thu, 09 Mar 2000 00:00
28 lines
1693 bytes
1693 bytes
In article <3psx4.475$_5.6074@ptah.visi.com>, Mike Horwath <drechsau+usenet@yuck.net> wrote: | : Throttle users? Doesn't that hurt? No, and it's richly deserved in many cases. | : But seriously. Bandwidth limiting is usually implemented in | : the OS. | | I would agree, but the bCandid/Highwind stuff does this, and so does | Diablo. The bCandid stuff does this, but perhaps not exactly as you would like. They offer two kinds of throttling, a total outgoing bandwidth divided between the users, or a per-user throttle which requires authentication. We're kind of looking at that issue right now. Neither of these is exactly what we want. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Re: throttle?
Author: Mike Sabbota
Date: Mon, 13 Mar 2000 00:00
Date: Mon, 13 Mar 2000 00:00
24 lines
1810 bytes
1810 bytes
> > The bCandid stuff does this, but perhaps not exactly as you would like. > They offer two kinds of throttling, a total outgoing bandwidth divided > between the users, or a per-user throttle which requires authentication. > We're kind of looking at that issue right now. > We've added a lot more functionality to this in our latest release. There is some really cool stuff going on with our stream-based throttling. Check out the documentation at http://support.bcandid.com/twister/html/twister_advanced_config.html. This allows you to do dynamic throttling so that you don't throttle until a certain thresholds are hit, etc. This might be what you're looking for. Look under the 'Per-stream bandwidth control' under our Twister documentation. Let me know if you have any questions on how it works, I can explain further. Cheers, --Mike
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads