[ovs-git] Open vSwitch: ovs-vswitchd: Call mlockall() from the daemon, not the parent or monitor. (branch-1.5)

dev at openvswitch.org dev at openvswitch.org
Mon Jul 2 17:17:31 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.5 has been updated
       via  75b5078fdc40f56cfaaadc773489cbf000d9d008 (commit)
      from  b5c58bea9ac5a7ca4d1c9ee70e110b1ab8bd05cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 75b5078fdc40f56cfaaadc773489cbf000d9d008
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=75b5078fdc40f56cfaaadc773489cbf000d9d008
Author: Ben Pfaff <blp at nicira.com>
		
ovs-vswitchd: Call mlockall() from the daemon, not the parent or monitor.
		
mlockall(2) says:

       Memory  locks  are not inherited by a child created via fork(2) and are
       automatically removed  (unlocked)  during  an  execve(2)  or  when  the
       process terminates.

which means that --mlockall was ineffective in combination with --detach
or --monitor or both.  Both are used in the most common production
configuration of Open vSwitch, so this means that --mlockall has never been
effective in production.

Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 vswitchd/ovs-vswitchd.c |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list