About faban bandwidth throttle

6 views
Skip to first unread message

JJV

unread,
May 8, 2012, 7:47:01 PM5/8/12
to faban...@googlegroups.com
Hello,

I was experimenting with the bandwidth throttling in faban. The output
stream (upload) limit works nicely, I'm uploading multi-MB files and
the upload times are just as expected based on limit.

On the input stream (download) side, however, reading from the input
stream hangs after a while if the throttle value is set to anything
other than -1. Typically I'm seeing the code reads a few MB of data
from the input stream but then read() hangs for a very long time (much
longer than it'd take to bring the average down), possibly forever
(haven't seen it come back yet).

I'm doing:

com.sun.faban.driver.engine.DriverContext engine =
(com.sun.faban.driver.engine.DriverContext)ctx;
engine.setUploadSpeed(uploadKBps);
engine.setDownloadSpeed(downloadKBps);

(with the specific numbers taken from config).

Any thoughts on why read() hangs?

Thanks...
--
Jyri J. Virkki - Santa Cruz, CA

Sucharitakul, Akara

unread,
May 9, 2012, 12:55:19 AM5/9/12
to faban...@googlegroups.com
No really. I've just reviewed the code and don't seem to see what could
hang the read. Please take a stack dump of the hanging process and send it
out. Should show us some clew about what it's waiting for. We may need to
debug the pendingNanoSleep value to make sure it did not go wild. Thanks.

-Akara

JJV

unread,
May 9, 2012, 6:32:50 PM5/9/12
to faban...@googlegroups.com
On Tue, May 8, 2012 at 9:55 PM, Sucharitakul, Akara
<asucha...@ebay.com> wrote:
> No really. I've just reviewed the code and don't seem to see what could
> hang the read. Please take a stack dump of the hanging process and send it
> out. Should show us some clew about what it's waiting for. We may need to
> debug the pendingNanoSleep value to make sure it did not go wild. Thanks.

Thanks. I debugged it a bit this morning and filed
https://github.com/akara/faban/issues/31
with my notes. I have not tested extensively yet but the change noted
appears to fix the problem.

Sucharitakul, Akara

unread,
May 9, 2012, 6:35:41 PM5/9/12
to faban...@googlegroups.com
Thanks!

-Akara
Reply all
Reply to author
Forward
0 new messages