Skip to content

Commit

Permalink
INSTALL: Note about compiler atomics support.
Browse files Browse the repository at this point in the history
OVS is slow when compiled with pthreads atomics.  Add a generic note
in INSTALL, with a reference to lib/ovs-atomic.h, where a new comment
provides additional detail.

Signed-off-by: Jarno Rajahalme <[email protected]>
  • Loading branch information
Jarno Rajahalme committed Jun 4, 2014
1 parent 791a09b commit 29d204e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ you will need the following software:
analysis and thread-safety checks. For Ubuntu, there are
nightly built packages available on clang's website.

While OVS may be compatible with other compilers, optimal
support for atomic operations may be missing, making OVS very
slow (see lib/ovs-atomic.h).

- libssl, from OpenSSL, is optional but recommended if you plan to
connect the Open vSwitch to an OpenFlow controller. libssl is
required to establish confidentiality and authenticity in the
Expand Down
3 changes: 3 additions & 0 deletions lib/ovs-atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@
#elif HAVE_GCC4_ATOMICS
#include "ovs-atomic-gcc4+.h"
#else
/* ovs-atomic-pthreads implementation is provided for portability.
* It might be too slow for real use because Open vSwitch is
* optimized for platforms where real atomic ops are available. */
#include "ovs-atomic-pthreads.h"
#endif
#undef IN_OVS_ATOMIC_H
Expand Down

0 comments on commit 29d204e

Please sign in to comment.