Increase max fd limit to support 256 bridges (#873072)

f38
Thomas Graf 12 years ago
parent c095cf8a72
commit c76aa5e651

@ -0,0 +1,11 @@
--- openvswitch-1.7.1.orig/utilities/ovs-ctl.in 2012-11-20 13:36:38.782614801 +0800
+++ openvswitch-1.7.1.orig/utilities/ovs-ctl.in 2012-11-20 13:37:20.466628024 +0800
@@ -212,7 +212,7 @@ start () {
# Increase the limit on the number of open file descriptors.
# ovs-vswitchd needs 16 per datapath, plus a few extra, so this
# should allow for 256 (or more) bridges.
- ulimit -n 5000
+ ulimit -n 6000
# Start ovs-vswitchd.
set ovs-vswitchd unix:"$DB_SOCK"

@ -1,6 +1,6 @@
Name: openvswitch Name: openvswitch
Version: 1.7.1 Version: 1.7.1
Release: 5%{?dist} Release: 6%{?dist}
Summary: Open vSwitch daemon/database/utilities Summary: Open vSwitch daemon/database/utilities
# Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the # Nearly all of openvswitch is ASL 2.0. The bugtool is LGPLv2+, and the
@ -21,6 +21,7 @@ Source7: openvswitch-configure-ovskmod-var.patch
# Source7 is not applied, it's used to generate patch0 # Source7 is not applied, it's used to generate patch0
Patch0: openvswitch-configure-ovskmod-var-autoconfd.patch Patch0: openvswitch-configure-ovskmod-var-autoconfd.patch
Patch1: openvswitch-ovs-pki-perm.patch Patch1: openvswitch-ovs-pki-perm.patch
Patch2: openvswitch-ovs-ctl-ulimit.patch
BuildRequires: systemd-units openssl openssl-devel BuildRequires: systemd-units openssl openssl-devel
BuildRequires: python python-twisted-core python-twisted-conch python-zope-interface PyQt4 BuildRequires: python python-twisted-core python-twisted-conch python-zope-interface PyQt4
@ -85,6 +86,7 @@ causing them to function as L2 MAC-learning switches or hub.
%setup -q %setup -q
%patch0 -p1 -b .ovskmod %patch0 -p1 -b .ovskmod
%patch1 -p1 -b .openvswitch-ovs-pki-perm %patch1 -p1 -b .openvswitch-ovs-pki-perm
%patch2 -p1 -b .openvswitch-ovs-ctl-ulimit
%build %build
%configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki OVSKMOD=openvswitch %configure --enable-ssl --with-pkidir=%{_sharedstatedir}/openvswitch/pki OVSKMOD=openvswitch
@ -205,6 +207,9 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
%changelog %changelog
* Tue Nov 20 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-6
- Increase max fd limit to support 256 bridges (#873072)
* Tue Nov 1 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-5 * Tue Nov 1 2012 Thomas Graf <tgraf@redhat.com> - 1.7.1-5
- Don't create world writable pki/*/incomming directory (#845351) - Don't create world writable pki/*/incomming directory (#845351)

Loading…
Cancel
Save