>> I'd use the second set of stats but at least these 2 look the same.
>>
>> Everything that is displayed in netstat -k is derived from kstats.
>> If you want to avoid the curses stuff, you could try a form 
>> of dladm show-vnic with -s (for stats) and -i (for interval).
> 
> Thanks, that seems like a simpler solution.
> 
> But, I am still getting consumptions far exceeding the bw caps. I also see
> netstat -k reporting utlization exceeding 100% at times. I checked my code
> as well, and I don't see any problems with the measurement 
> 
> To see what's happening, I ran a wget on a 1G file. When I set the bw cap to
> a certain number, it works fine. Say to 200Mbps, and I download the file,
> it's limited to 200Mbps, no problem. But, if I change it in the middle to
> say 300Mbps, no cap is being enforced after I execute the 'dladm
> modify-vnic' command. In my SpecWeb experiment, I am changing bandwidth
> every 10 secs. Is that too fast? How long does it take for the (new) cap to
> get enforced?
> 
> This may or may not be related to a problem we saw with 'tc' on Linux. We
> found similar problem with capping in tc and figured out that we had to set
> the right MTU and burst size for 1Gbps networks.

Any update on this? Is this a real problem or Am I using the tools 
incorrectly? For our control experiments, correct setting of bandwidth 
cap is crucial.

Let me know how I can make capping work correctly.

Thanks,
Pradeep

Reply via email to