From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 45FDA312 for ; Tue, 13 May 2014 18:33:07 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 13 May 2014 09:33:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,1044,1389772800"; d="scan'208";a="531237261" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga001.fm.intel.com with ESMTP; 13 May 2014 09:33:02 -0700 Received: from orsmsx160.amr.corp.intel.com (10.22.226.43) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 13 May 2014 09:33:01 -0700 Received: from orsmsx102.amr.corp.intel.com ([169.254.1.253]) by ORSMSX160.amr.corp.intel.com ([169.254.13.252]) with mapi id 14.03.0123.003; Tue, 13 May 2014 09:33:01 -0700 From: "Venkatesan, Venky" To: David Marchand , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] eal: change default per socket memory allocation Thread-Index: AQHPa4rzlmPSwQlm2kWClWtIEngaSZs+urCA Date: Tue, 13 May 2014 16:33:00 +0000 Message-ID: <1FD9B82B8BF2CF418D9A1000154491D9740AADF4@ORSMSX102.amr.corp.intel.com> References: <1399642242-19725-1-git-send-email-david.marchand@6wind.com> In-Reply-To: <1399642242-19725-1-git-send-email-david.marchand@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.138] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] eal: change default per socket memory allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X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