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

dev at openvswitch.org dev at openvswitch.org
Sat Jun 30 00:17:26 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, master has been updated
       via  908ff19af7ab2b6e0a865bcf566aaa47e32889ff (commit)
      from  9360d9b7b50c52298c9bd47ab07b5c8c8ae074de (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 908ff19af7ab2b6e0a865bcf566aaa47e32889ff
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=908ff19af7ab2b6e0a865bcf566aaa47e32889ff
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