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:

This is what I have been looking for. Thanks.

Posted by turk porno on prill 09, 2008 at 02: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 18, 2008 at 07:21 MD 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 03:07 PD PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

user13334066

Search

Archives
« prill 2014
DieHënMarMërEnjPreSht
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today