GO 46 !


RD Dreams

MacDizzy

DBS

YADBS

SourceForge

SIX

Rally.co.in

Rossi Files

Open Solaris

Meebo

Crash.net

MotoGP

Beginning of End

Elving's blog

Sandeep's page

Sun Forums

Air Cooled RD

MindStorms

LEGO-Robotics

Track Guide

Track Forum

M's blogs

BikesZone

Kawasaki Triples

PhRack

Metallica

Distance Running

RD Shop

SMX - Solaris Minix

Elephant Story

WD40

Dan's M/C Site

Tunnel Rats

Gatorade

Orkut

Free Science

Spiderman McBride

Racing a Fiat

Forsyth

BSM Archives

Bugatti Veyron

RNR Racing

Bandwidth Control - Continued

This is an nsapi plugin for applying bandwidth control in Sun Proxy Server 4.0. Installation is fairly straightforward - gunzip, untar, copy libbwcontrol.so to somewhere, configure obj.conf to load the plugin on startup, and also configure obj.conf to apply the bandwidth-control filter to specific (or all) downloads.

For example, after configuration, an obj.conf can look like:

...
...
Init fn="load-modules" shlib="/myplugins/libbwcontrol.so" shlib_flags="(global|now)"

<Object name="default">
...
...
</Object>


<Object ppath="http://.*mp3">
Output fn="insert-filter" filter="bandwidth-control" maxkbps=100
</Object>
...
...

A maxkbps argument can be used to specify the target download limit. If not specified, a default of 256 kbps is applied.

NOTE: The binary is intended for Solaris Sparc.

Comments [3]




Trackback URL: http://blogs.sun.com/motor/entry/bandwidth_control_continued
Comments:

This is what I have been looking for. Thanks.

Posted by turk porno on prill 09, 2008 at 09:22 MD PDT #

This seems to work as advertised. Would you be willing to supply sample source code, so I could understand a little more about how this works? In particular, over what interval does it sample to obtain its utilization measurement, etc? I've noticed a few instances where the log message states a higher utilization than the limit, but these have been small files.

Thanks,

--Robert

Posted by Robert J. Slover on shtator 19, 2008 at 02:21 PD PDT #

Greetings,

This seems to work as advertised. I was curious if I could get a look at the source though, to understand how it works and to potentially modify it (I'd like a parameter that specifies over what period to measure the throughput).

Thanks.

--Robert

Posted by Robert J. Slover on shtator 23, 2008 at 10:07 PD PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed