From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0051.outbound.protection.outlook.com [104.47.34.51]) by dpdk.org (Postfix) with ESMTP id 412A1FE5 for ; Wed, 6 Sep 2017 06:35:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1CLaSRIbV+Sw8+RC0EnpC86Amb6jmG08bdMWWmjUSZo=; b=m34eNAjCmM/w2/RRU5CnuBsYXXIPVOetM7mH8MR37zQAYJpZ1n5g1osjK1ECKEKjTdtweUmR4xOSFfOWJ6jBcoPZA2WoXgxouTowK37Ua8UxMCsRN/RnLMdRGh9YKeYwpcB+4wSpMBY1otuGSYM3nhumEy3ZLvWAEGJKoJBLlfc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT (103.16.71.100) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Wed, 6 Sep 2017 04:35:31 +0000 Date: Wed, 6 Sep 2017 10:05:17 +0530 From: Pavan Nikhilesh Bhagavatula To: =?utf-8?B?546L5b+X5YWL?= Cc: dev@dpdk.org Message-ID: <20170906043516.GB27242@PBHAGAVATULA-LT> References: <6DAF063A35010343823807B082E5681F1A72FDB1@mbx05.360buyAD.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6DAF063A35010343823807B082E5681F1A72FDB1@mbx05.360buyAD.local> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [103.16.71.100] X-ClientProxiedBy: KL1PR0601CA0005.apcprd06.prod.outlook.com (10.170.160.143) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c994006a-8d36-4f54-a655-08d4f4e0b5d8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:wU8NHYUsWesOu/DMyvcT5ALmjZZfidSa+r0B0uojwSYBjZdrkNNCguoLpM5MJxkfjR++EjG0Ay4cnxPck7r/PVn+wnyUzYs0oJxqMzUgwWm4z0MWgHcgCB5YJxOoQYP06ZaRz9g65bLPj9OqI+GubYPLiX2oWUwE2wk977ng9sPXrZD+PZLcekkOJW2lcG2+8uNsl9wOZpZX3x5aJzZOdNPr4/uM8f8MbOdYQxkbghhnDcQyXFaLKAGjH3iSQ9Z1; 25:xlA7AxOVwidGd24C6hOKdB9ZGlbfe1UWhcNowwnt7CD0wJMlQDPPsOVivpWkKOi4tLL4vFY49Lfwwv+P/oWTLer/89WrN3/ttqkWNJ4cs0cux1W9siU9PhRKJ9lMzsZX91T8WjZajDa0ydVNcx4QHN4ggUJ8OLoy9rx2MvKE/WlwIaPraGGS9Qoa7RvxN+T9CY2ETApRMFFZX2iK4vz1PwTeJpGn/J7LDDdfvg7oqm502pdnviR1zkH0Up8Mkh3JJVpUB0mhfMz3GTOMSYPbs8cQ7q4yyNVuIWAeY/hv+sY6fhTp8W9vcEc50pTQWQ8cgpCGP9s1xI+x512+CuTe5w==; 31:X4BNxYpbAyMQLxE//VuIL2uK/nnlUeIqbRohaDntau84hYD28MBFR+UQiJLoNq2s9Tj+gAWzvlMAKZt2Z9Hb/y2iGlvXL9r26n2QQg57pIcO6Mn1dnQBz62XD6bXW3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-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(100000703101)(100105400095)(3002001)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 0422860ED4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(53754006)(189002)(199003)(24454002)(42882006)(68736007)(6246003)(42186005)(189998001)(50466002)(7736002)(305945005)(6496005)(23676002)(66066001)(110136004)(33656002)(9686003)(81156014)(81166006)(8676002)(55016002)(105586002)(33716001)(47776003)(53936002)(6666003)(50986999)(76176999)(8936002)(97736004)(101416001)(6116002)(83506001)(6916009)(4001350100001)(106356001)(561944003)(3846002)(2950100002)(1076002)(478600001)(54356999)(2906002)(72206003)(229853002)(4326008)(5660300001)(2870700001)(25786009)(18370500001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; H:PBHAGAVATULA-LT; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjA3TUIzNDY0OzIzOkFrMEZIMzBLRlFDTjRveDB2ZDY3Wk00OUNz?= =?utf-8?B?K09HUmFKYi9GRUdUaUNBd1BPUmh2UWtBVTZqQnRHK0dKcHZGYkdtTmFGdCtr?= =?utf-8?B?cjVUc09jd1VmM0NvZENQb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kEZM1gUN/D6vvz3kDMXn8p97KiW4gW3WwB+TkszVWny1dypq5xfTiz/+CKowqn4kApk6SWNgJBIh8E9lRC6x1yehtLbuLBY0VRoRv0/U8j+C5WbZP7swDxT0e34LMA==; 5:ycRHbzJlkxj2+Ox3jHgzo3i6aW7AgObmW2jDJXnEmmoYCvhCP46BKhHkxpTS1uaRnVUoiwegtVRL21isRbw0mO0Gdz1u9k+jlppDjOMT+S1JBol7dp7HmEQnTbiXdMWMP/KUTjkUe/OARghRj9lNXQ==; 24:zj5iPQBNRfLZIPNC/ivbXncX80ojLESuc4s3pe05aB7Bf5fDP6oDf7H+aPHMN8jrkUzeh3XZzUaOqNU1EJzvTPqHcMZ1T1MAhvuYGVdFURs=; 7:jIGdG0YpUwbjfyryuq4OY1VqgjAxCp1Va3Yz2cwe2c8fjulEimWMVetEEB8iPc4DAD43rF8i/3k4Q4lanW11jNWk65vCT+PNIyojaXNfu5Ygt1/rn2Fh7JTaI1/tzC8EvssFdQSjROoOzrkKRup8Aw4vMC1eDBLECPMTZiXL/wf3ZM6AGlSUtSpJAPmwfaAZAr9qnKDfAu88zz1nlUtkBlJR65nzMkLpgoGOKgFFjZw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2017 04:35:31.4464 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: Re: [dpdk-dev] long initialization of rte_eal_hugepage_init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2017 04:35:34 -0000 On Wed, Sep 06, 2017 at 03:24:52AM +0000, 王志克 wrote: > Hi All, > > I observed that rte_eal_hugepage_init() will take quite long time if there are lots of huge pages. Example I have 500 1G huge pages, and it takes about 2 minutes. That is too long especially for application restart case. > > If the application only needs limited huge page while the host have lots of huge pages, the algorithm is not so efficent. Example, we only need 1G memory from each socket. > There is a EAL option --socket-mem which can be used to limit the memory aquired from each socket. > What is the proposal from DPDK community? Any solution? > > Note I tried version dpdk 16.11. > > Br, > Wang Zhike -Pavan