[Openais] [Corosync] Patch to improve BSD support

Jérôme Flesch jerome.flesch at netasq.com
Wed Jun 17 02:25:57 PDT 2009


This patch adds a call to madvise(..., MADV_NOSYNC) after each call to 
mmap() . MADV_NOSYNC is an option specific to BSD systems specifying to 
the system to not write data on the disk unless it's really needed.

It doesn't seem really required to make Corosync works on FreeBSD 
(performances look the same with or without), but the man page of 
madvise() on FreeBSD says it should be done when using mmap() to create 
shared memory.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-bsd-madvise
Url: http://lists.linux-foundation.org/pipermail/openais/attachments/20090617/3e594ced/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4393 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20090617/3e594ced/attachment-0001.bin 


More information about the Openais mailing list