I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 871f0467 authored by zzz's avatar zzz
Browse files

adjust target and interval, and backlogged indication

parent aef021dc
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,11 @@ public class CoDelBlockingQueue<E extends CDQEntry> extends LinkedBlockingQueue<
* Below a target of 5 ms, utilization suffers for some conditions and traffic loads;
* above 5 ms there is very little or no improvement in utilization.
*
* I2P: Raise to 15 due to multithreading environment
*
* Maybe need to make configurable per-instance.
*/
private static final long TARGET = 5;
private static final long TARGET = 15;
/**
* Quote:
......@@ -179,7 +181,8 @@ public class CoDelBlockingQueue<E extends CDQEntry> extends LinkedBlockingQueue<
E e = peek();
if (e == null)
return false;
return _context.clock().now() - e.getEnqueueTime() >= BACKLOG_TIME ||
return _dropping ||
_context.clock().now() - e.getEnqueueTime() >= BACKLOG_TIME ||
remainingCapacity() < _capacity / 4;
}
......
......@@ -56,17 +56,21 @@ public class CoDelPriorityBlockingQueue<E extends CDPQEntry> extends PriBlocking
* Below a target of 5 ms, utilization suffers for some conditions and traffic loads;
* above 5 ms there is very little or no improvement in utilization.
*
* I2P: Raise to 15 due to multithreading environment
*
* Maybe need to make configurable per-instance.
*/
private static final long TARGET = 5;
private static final long TARGET = 15;
/**
* Quote:
* A setting of 100 ms works well across a range of RTTs from 10 ms to 1 second
*
* I2P: Raise to 300 due to longer end-to-end RTTs
*
* Maybe need to make configurable per-instance.
*/
private static final long INTERVAL = 100;
private static final long INTERVAL = 300;
//private static final int MAXPACKET = 512;
private final String STAT_DROP;
......@@ -164,7 +168,8 @@ public class CoDelPriorityBlockingQueue<E extends CDPQEntry> extends PriBlocking
E e = peek();
if (e == null)
return false;
return _context.clock().now() - e.getEnqueueTime() >= BACKLOG_TIME ||
return _dropping ||
_context.clock().now() - e.getEnqueueTime() >= BACKLOG_TIME ||
size() >= BACKLOG_SIZE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment