Article View: news.software.nntp
Article #44899Re: throttle?
From: 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
Technical Details
Message-ID:
<38c5f773$0$40277@news.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<scaurcm5bi7166@corp.supernews.com> <8a4iim$1mm4$1@ariadne.rz.tu-clausthal.de> <slrn8cbl0u.2kb.kolya@pepsi.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <38c5f773$0$40277@news.execpc.com> Subject: Re: throttle? Date: Wed, 08 Mar 2000 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <scaurcm5bi7166@corp.supernews.com> <8a4iim$1mm4$1@ariadne.rz.tu-clausthal.de> <slrn8cbl0u.2kb.kolya@pepsi.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 594599926 Sender: jgreco@earth.execpc.com X-Trace: 0RW8S?BXNabI5[332>a9YkbfNiaEHUgJgRYcgIRLSUEmaf0a>@\N\[bG6fHm94o@ki=2TJP5mJl:cGhaMU<hZ^NgF4FfQ?Mh6Um Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com