Thanx for your reply. I am running into another problem. I am wondering how I
can determine the maximum bandwidth of the outside link. I don't want to
hard-code it, does anyone know how to get this number?
Thanx a lot.
Yee Man
> Yee Man Chan wrote:
>
> > I want to make a version of Squid such that it uses the bandwidth v
ery
> > conservatively. For example, if squid sits on a machine that has outside li
nk
> > of speed 512KB/s and other programs on that box uses 300KB/s already, I wan
t
> > squid to use only 212KB/s. I think I can look up the delay_pool code to
> > restrict the bandwidth usage of squid but how can I know how much bandwidth
> > other programs are using? Can you give me some hints?
>
> You need to query the OS or Router for this information. In many cases
> both can be queried using SNMP. For Linux traffic information can be
> found in /proc/net/dev, for other OS:es the information is usually
> available using ioctl:s on network sockets, or in some cases by digging
> around in /dev/mem
>
> All approaches except the SNMP approach is very OS dependent.
>
> --
> Henrik Nordstrom
> Squid hacker
Received on Mon Dec 06 1999 - 09:16:54 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:19 MST