Hi to All,
As bundling is efficient for the CPU usage in load tests, I would like to have the possibility to change the default value implemented.
I don't see anything in the source concerning a timer so I have implemented modifications in the code :
distribution.h :
"#define BUNDLING_DELAY 30 /* delay to wait for bundling in ms */ "
Flowcontrol.c :
int fc_check_for_txmit(…)
{
…/…
int diff;
struct timeval now;
…/…
result = bu_put_Data_Chunk((SCTP_simple_chunk *) dat->data, &destination);
/* bundling delay modification */
// data_is_submitted = TRUE;
// adl_gettime(&(fc->cparams[destination].last_send_time));
adl_gettime(&now);
diff = adl_timediff_to_msecs(&now,&(fc->cparams[destination].last_send_time));
if ( diff >= BUNDLING_DELAY ) // defined in distribution.h
{
data_is_submitted = TRUE; /* data must be sent */
adl_gettime(&(fc->cparams[destination].last_send_time)); /* time update of the last sending data
}
/* end of modif */
I am not sure that it is the best way. Is somebody have a best idea to introduce such feature ?
Thanks for your answer.
Pierre Allégret
Archive powered by MHonArc 2.6.19+.