[Openais] corosync trunk - remove unnecessary memcpy in totempg_mcast operation

Steven Dake sdake at redhat.com
Thu Oct 8 16:30:41 PDT 2009


In totempg_mcast, often under heavy load totem immediately plans to send
a packet of data.  This data is currently copied into a staging buffer
by totempg, and then later copied into a full message by totemsrp.  This
patch instead passes an iovec for the data to be copied resulting in two
less memcpy operations for most message sizes.

Results and patch attached.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: corosync-trunk-totempg-opt.patch
Type: text/x-patch
Size: 1804 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20091008/c81732f4/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: totemopt.pdf
Type: application/pdf
Size: 16433 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20091008/c81732f4/attachment-0001.pdf 


More information about the Openais mailing list