From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id BB66B8D95 for ; Tue, 1 Dec 2015 15:09:09 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 0F9B732D3BF; Tue, 1 Dec 2015 14:09:09 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-6-72.ams2.redhat.com [10.36.6.72]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB1E97Bu025733; Tue, 1 Dec 2015 09:09:08 -0500 From: Panu Matilainen To: "Traynor, Kevin" , "dev@openvswitch.org" References: Message-ID: <565DAA03.3070102@redhat.com> Date: Tue, 1 Dec 2015 16:09:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Cc: "users@dpdk.org" Subject: Re: [dpdk-users] [ovs-dev] OVS with DPDK Meetup notes X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 14:09:10 -0000 On 11/26/2015 07:56 PM, Traynor, Kevin wrote: > Hi All, > > Just wanted to post some summary notes on the recent OVS with DPDK Meetup we > had after the OVS conference. Thanks to everyone for the often lively discussion. > I've collated and condensed Maryam's notes (Thank you Maryam) with my own. > Corrections and additions are welcome. > > Usability > ========== > * Command line options > - Create defaults which can be overridden on the command line. > -c 0x1 > -n 4 (this will be in DPDK 2.2 also) > -socket-mem 1024,0 Another possibility might be saving these in Open_vSwitch other_config db along with pmd-cpu-mask and the like. DPDK init could be delayed until the config db is available I think. OTOH the command line variant is perhaps less effort. I've been carrying the following patch in my packages to allow passing arbitrary DPDK options to OVS service start via DPDK_OPTIONS in /etc/sysconfig/openvswitch,: diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in index 6d2e938..7db1500 100755 --- a/utilities/ovs-ctl.in +++ b/utilities/ovs-ctl.in @@ -240,8 +240,11 @@ start_forwarding () { fi # Start ovs-vswitchd. - set ovs-vswitchd unix:"$DB_SOCK" - set "$@" -vconsole:emer -vsyslog:err -vfile:info + set ovs-vswitchd + if test X"$DPDK_OPTIONS" != X; then + set "$@" --dpdk $DPDK_OPTIONS -- + fi + set "$@" unix:"$DB_SOCK" -vconsole:emer -vsyslog:err -vfile:info if test X"$MLOCKALL" != Xno; then set "$@" --mlockall fi With that, the truly trivial (if a bit cheap) way of adding workable defaults becomes basically just: diff --git a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template index 3050a07..d5bfe9d 100644 --- a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template +++ b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template @@ -21,3 +21,6 @@ # --ovsdb-server-wrapper=valgrind # OPTIONS="" + +# Uncomment to enable DPDK +#DPDK_OPTIONS="-c0x1 -n4 --socket-mem 1024,0" - Panu -