diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-03-25 16:07:24 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 18:05:56 (GMT) |
commit | 1f66d161ab3d8b518903fa6c3f9c1f48d6919e74 (patch) | |
tree | 31275d3b6836126fc76c944b65693d83458dcb93 /virt | |
parent | b06b107a4c190299e9e3f8dbcccfc7fe9e10c8cb (diff) | |
download | linux-1f66d161ab3d8b518903fa6c3f9c1f48d6919e74.tar.xz |
tipc: introduce starvation free send algorithm
Currently, we only use a single counter; the length of the backlog
queue, to determine whether a message should be accepted to the queue
or not. Each time a message is being sent, the queue length is compared
to a threshold value for the message's importance priority. If the queue
length is beyond this threshold, the message is rejected. This algorithm
implies a risk of starvation of low importance senders during very high
load, because it may take a long time before the backlog queue has
decreased enough to accept a lower level message.
We now eliminate this risk by introducing a counter for each importance
priority. When a message is sent, we check only the queue level for that
particular message's priority. If that is ok, the message can be added
to the backlog, irrespective of the queue level for other priorities.
This way, each level is guaranteed a certain portion of the total
bandwidth, and any risk of starvation is eliminated.
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions