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

dev at openvswitch.org dev at openvswitch.org
Sat Jun 30 00:18:27 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.6 has been updated
       via  cd74f7c0fa6585f2cda9d79ed4857ea2b1cc3889 (commit)
      from  51bcf14564e0155a492d160e360e89d4bb527fc1 (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 cd74f7c0fa6585f2cda9d79ed4857ea2b1cc3889
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=cd74f7c0fa6585f2cda9d79ed4857ea2b1cc3889
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 |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list