From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D4E48A0C4F; Mon, 9 Aug 2021 11:45:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C1ED4069D; Mon, 9 Aug 2021 11:45:41 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2059.outbound.protection.outlook.com [40.107.220.59]) by mails.dpdk.org (Postfix) with ESMTP id F40414068A for ; Mon, 9 Aug 2021 11:45:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jnm8GbWFzxhEdHf2RSmSlXCjkbA6ijwXFax/waSUaRII53TX1X/wN3ZOEh6VV4b/0fWbmgF70RnjTBGPMtG1rabrgFCeujlo2ml0iF7It6CtCwoSX1oDvohcaUZ40IkbbhVLMmbTHHFbYwb8oja7l9Bua2SqwAl0l8bAvkzOdNkpra1aNmaoR2zt6r9Bza++ITy4VZeWqCNqQYGUH3vdMK87hqBEvT9DVVKnQ+KoX7rEa+S4uEFWu2m7H2PrBVBEUpOd9LutGIs0gqaLoPc1xgJjGH8Wu7+b9j+/ywfk9sUBusJhwdOqK3J0+flqVAGjHPd51u+xjxXWzr5uR9LUYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fV+I1yJM2DwzRzi4y91Mt6flP8jdSVe+qlW8SHN10mM=; b=f+RVuMkLps2HLt24SBpuo2k/BYBfFzlqiDXO6tv/wcRH1F4DP1TRNihktgsHYvz3Wr6NAjhv1iuni8xuWd8Da11IrTasMagXXEIQ/gssnNTPHiEOSq9EgtR/iuQs0UlBTWaQS85pYhAw6N8QWy/AmstmQQ68N5mTE2lNxPCF867IC1I37fxxEzLBQG7J4Fytb6L423eW7EuDIuKvzou5HBBK1IDW6DpI/XtjLIZKLtAi7yMALUVz6z8CC2eXucpnkgvYfgGFzkOp183wzKeoabYd4jBa9nC5R3cyxDLTUFi++AaOy7hKoozu5eaUcwnONzXMm7g0SvNgag0mOmTlTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fV+I1yJM2DwzRzi4y91Mt6flP8jdSVe+qlW8SHN10mM=; b=JDsKmivOJnawrIhn7angzIPaaa8uC1m62BM9CAkcGujfd/getqmQbVO5wUY1ZWynmRNe3zynn/1wqsQfSpLGMO/DiBPAh4QVxp3UAJ8lxxNcy+w9aobeMvNe+5PFVw4dKx5n2IOlGMI43vtzkkJDj57MzaaYkB6Lg0OkU81iMngQxFEro6X1huMmedKgy0GsGoP+F+5gETTkPrBF2DrWCJDoFE7cHE4l5+a6cnLyEUg1IAOycM+LvJjPhvW4TSNDOHsP3wFy59PLZJs/ZH0xGr4f87MD966Wmg95IaVf2PZYzDW8N5bHMZ8yyqJ8m4bnTAMpQogsC0EsaZW3zMk3OA== Received: from BN9PR03CA0279.namprd03.prod.outlook.com (2603:10b6:408:f5::14) by DM5PR1201MB0057.namprd12.prod.outlook.com (2603:10b6:4:5b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Mon, 9 Aug 2021 09:45:38 +0000 Received: from BN8NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f5:cafe::99) by BN9PR03CA0279.outlook.office365.com (2603:10b6:408:f5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16 via Frontend Transport; Mon, 9 Aug 2021 09:45:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT006.mail.protection.outlook.com (10.13.177.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4394.16 via Frontend Transport; Mon, 9 Aug 2021 09:45:37 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Aug 2021 09:45:36 +0000 From: Dmitry Kozlyuk To: CC: , Date: Mon, 9 Aug 2021 12:45:21 +0300 Message-ID: <20210809094521.1902210-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210716110806.2566788-1-dkozlyuk@nvidia.com> References: <20210716110806.2566788-1-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f4a1f803-60f5-4971-96ad-08d95b1a7193 X-MS-TrafficTypeDiagnostic: DM5PR1201MB0057: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: syBlBfJO9GdB//TvXc0cNB8Gdy+8q+H8Wl+ICNHlymMcqR/6LzBwr2NUffvGKmJDrGzmGE1mBtPxEzIYSVpdbihxeiyIsE3P6vSMiyrogkB2jygVoP+uNmrqZJoPzzPHPWOe00uJoggzqp5m0BH75WLehzYZvBTRbNTcITOzuMETAz1wj5i05jjqjLXqSTZ1Y7LbRkseqP7Q6gWHI46OzH7jlRs8H0vCyVdhWs0EfG6e/PnECJgqGvAwX3DfEw7K30veA3kwf1UxWETfjQM0XyLjwLpdKmHS0I9Xu3w0QGfU4Not3d1N/2b0cUqFeei3emkKjwwFOys/neKUqV19SvhQZxhJemKPfQSXl7NpBftMHnVdcVKOnfhkO/sMZwxIjUzlU/yFkKSiuK0pKinP4wP7wW+UttVjE2+U0FfwPDiIwzLUqM6e2baPjiI4avkdZrvDf2Wmkts/8qIwm0vzFhi0NJVZ/FYNqP/FsdNZlq+kPc0FobJp41LalXXMQeQmJpJmz0BreyWMMB94t63R2Lcpn7wL7JQmbLNIOfFtA0oZmgghTcPp4qcuVbQsnCBcu7J9S1MKETY8vQWf+zhG17nLTwIYP+iTZgpe72yFzoU3vh/Rc/nn5U37s8IXdCo/plnr4snEyzHduK8NuXD4nqQlQm/fVfIRDoW/LYNLqN3OCj3YF63LSY7fChSlfVIyoIRRclgEUYlzhOC/QkYnJw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(136003)(39860400002)(376002)(346002)(36840700001)(46966006)(8676002)(26005)(16526019)(36860700001)(70206006)(186003)(316002)(6916009)(36906005)(4744005)(70586007)(36756003)(2906002)(7696005)(356005)(55016002)(82310400003)(7636003)(86362001)(6286002)(47076005)(83380400001)(426003)(6666004)(478600001)(2616005)(4326008)(54906003)(336012)(1076003)(5660300002)(82740400003)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2021 09:45:37.9392 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4a1f803-60f5-4971-96ad-08d95b1a7193 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0057 Subject: Re: [dpdk-dev] [PATCH 21.11 v2 0/3] eal: add memory pre-allocation from existing files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2021-07-16 14:08 (UTC+0300), Dmitry Kozlyuk: > Hugepage allocation from the system takes time, resulting in slow > startup or sporadic delays later. Most of the time spent in kernel > is zero-filling memory for security reasons, which may be irrelevant > in a controlled environment. The bottleneck is memory access speed, > so for speeduup the amount of memory cleared must be reduced. > We propose a new EAL option --mem-file FILE1,FILE2,... to quickly > allocate dirty pages from existing files and clean it as necessary. > A new malloc_perf_autotest is provided to estimate the impact. > More details are explained in relevant patches. > > v2: fix CI failures Hi Anatoly, could you review please?