lkml.org 
[lkml]   [2009]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Implementation of the sendgroup() system call
> How much is non negligible in your case?
Please see the following link

http://www.cs.uwaterloo.ca/~elahav/sendgroup/mb_pkt_size.pdf

for a graph showing the (amortised) cost of sending a single packet to a
group of 1000 recipients, using one of the three following methods:

1. A user-mode loop of sendmsg() calls
2. A kernel-mode loop of udp_sendmsg() calls
3. A single call to sendgroup()
The cost is measured in cycles and was determined using performance
counters.

In this benchmark, savings introduced by sendgroup() are primarily due
to the aviodence of multiple system calls, up to a packet size of about
1000 bytes. Obviously, proportions change for different group sizes
(though we were able to outperform method 1 with a group size as small
as 2).

--Elad


\
 
 \ /
  Last update: 2009-05-05 02:27    [from the cache]
©2003-2011 Jasper Spaans