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 CE8B9A00C5; Thu, 28 Jul 2022 20:03:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 697F540151; Thu, 28 Jul 2022 20:03:31 +0200 (CEST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mails.dpdk.org (Postfix) with ESMTP id 5E7F24014F for ; Thu, 28 Jul 2022 20:03:30 +0200 (CEST) Received: by mail-lf1-f46.google.com with SMTP id t17so4018388lfk.0 for ; Thu, 28 Jul 2022 11:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aFmDQzHv2V1PAqt/FZVV2P4j7i9JIIUMBcz7DWXPCRs=; b=OifSmqGEp8TGzMa3arM51UyN6TPC+GeVp98JR3bqcqz0qGJaX/qWGK3jqv6yXR9szT N3qmz3OT6rDmwwpnZSxmkfG5p2Vo5xLmjmlFR+bW9IzvMjncEv4cRJeHQRUGAadt1rDt nBTqOwAIL5XKMqorjxOA1H9L2WC6QDw2efNPWeVXHh9udmwLEWuBHmxw7rgiEhPh1+DN SH2fNblkI2KkBgJ4VzSL5STjyktHsAQbXjaYk77/Lzx5myWjY6MqBkHqloH0fgSNZ1Nb 7+0Elwu79PizJYdGw7NbZw0MdPidyjKCMxmfEV+f1DuA4FlMg+raXJw7dkc0L6nEEcUm xPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aFmDQzHv2V1PAqt/FZVV2P4j7i9JIIUMBcz7DWXPCRs=; b=e4/nUjz7/8eb/FSQn8X04kBrXleXM1zZkvA3jHEzess2FdvzqRMnlRWKi6fipinEpi 91yKHwmJavSflf/wA+tND0LDXekQpDX5dVZN7EbiCvB8y+ncyqk1QhoZJ9AmF/apagNg RU+rYtLYJKLG77PCz4SSfAnFH0eoPqY/pLLOXEAhu5+QKe7uRA2TZ6dEDHRWCZyZgRpH VhdFl2nzJsS8OMOlxSIlFDYYXW0kzG0gUSKqZiaXkSc0Erc97vpyd1bs56Ii77mahCYC Y+tomMK+HxkJxdsLA2LGIXrvAFnA5EoQdp0traiJhZgy5CAEAfaHjgVMr8HDBLuAXKlm PGLw== X-Gm-Message-State: AJIora9HyqETt3/3Z3whVB8eAgjlQxIIno9f+usgpaym9cQp94C5m/HX rb1rTWTkbWnUVAZx3MMKdmiv1PpennU= X-Google-Smtp-Source: AGRyM1vyfCjySv7GiLkzeCiI6iAEvBUScdOyon/bf+QcDeTITa45UQdDf6QWPOmDz3LS1QR09wOLHw== X-Received: by 2002:a05:6512:c27:b0:48a:ba8b:5171 with SMTP id z39-20020a0565120c2700b0048aba8b5171mr12540lfu.680.1659031409441; Thu, 28 Jul 2022 11:03:29 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id u13-20020ac2518d000000b0048a72f6037esm296474lfi.170.2022.07.28.11.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 11:03:28 -0700 (PDT) Date: Thu, 28 Jul 2022 21:03:27 +0300 From: Dmitry Kozlyuk To: Fidaullah Noonari Cc: dev@dpdk.org Subject: Re: [PATCH v2] eal: change alloc_sz calculation which may cause unnecessarily allocation Message-ID: <20220728210327.7077be93@sovereign> In-Reply-To: <20220728094103.137862-1-fidaullah.noonari@emumba.com> References: <20220728094103.137862-1-fidaullah.noonari@emumba.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 2022-07-28 14:41 (UTC+0500), Fidaullah Noonari: > The amount of memory to allocate from the system for heap expansion > was calculated in a way that may yield one page more than needed. > This could hit the allocation limit from the system or EAL. > The allocation would fail despite enough memory being available. > > In response to mail: > http://inbox.dpdk.org/dev/CAEYuUWCnRZNwxiOHEeTHw0Gy9aFJRLZtvAG9g=smuUvUEMcFXg@mail.gmail.com/ > > Signed-off-by: Fidaullah Noonari Acked-by: Dmitry Kozlyuk