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 27990A0032; Thu, 16 Jun 2022 09:53:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CEF94281E; Thu, 16 Jun 2022 09:53:24 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id A34CB4114F for ; Thu, 16 Jun 2022 09:53:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655366002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5w2ipSoM7RAq7/OKffs0WTqreGb+nVBHkgXsESGcA/E=; b=SXL9tfyZqe2fbFyxiISX0zI7H1PWkXUcyQyQG3XWVW9UmWqVkNd0h2APht87m+Y/Xd/qTM y9IxWb6ab5PnI53hqlog9KuAnF6ly+drYje6MQzUUxCu5MeRFzkuxrr8Z25l2eMemblnU9 KQA/LD/H45/CaYct+QHDAeMPbAGBEuo= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-224-uIfrCdVyO7q5ejqy1WxuIw-1; Thu, 16 Jun 2022 03:53:20 -0400 X-MC-Unique: uIfrCdVyO7q5ejqy1WxuIw-1 Received: by mail-lf1-f69.google.com with SMTP id c25-20020ac25f79000000b00478f05f8f49so384622lfc.20 for ; Thu, 16 Jun 2022 00:53:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5w2ipSoM7RAq7/OKffs0WTqreGb+nVBHkgXsESGcA/E=; b=zQzQPufmeHWtEN5nDVHvp0GF4qNLzlz7axR+ynAWxRGfadSyjme/J1dLdoGY19USle xSQHPpAkxwQatr4L3aitUoSJqRLTWB97EpIA9h/+xEdJME0aQZUUyai49P2W/Et7Duce W6cHWig9UqGKbi5WnK4neXZy/S/qGpOCs1y34fy0dydLvtQon7EH+sGfPtW2QhGttX4B TVoyl7qNDO6SySvZd0kT3wGzPr2ZoamNLOsVHUoDWPgOVdki5zhNMFJkz+D8Xl4Hjkbk qAILk/U2SM07TAJKA2PbVhEHq7zwbyKukqqCoPrPlINmgPYBdogFnmH90n5x4wLh73Cz G+dg== X-Gm-Message-State: AJIora+dWD2+pqcakRLHcnoLTex/kWKiCPZjTiRPxtqkgtLINPTOHVeK 157ouK+BRfB/oUkwyaDd65apxNxT0g6RlUuYb74VYv8uvIzkAW54wDYom5roVqPGYoxV120SBPj R7+dFuZti1GZrTx1IUC0= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr1924720lfl.553.1655365999472; Thu, 16 Jun 2022 00:53:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdw7gf3iPQxTzloAJaKZ+B+EhzAaLFquqYYJkAYAcfD7WJsf+U9/XBViKEmJmMH4+EMhTUN8BYVEhZwRJ3GPk= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr1924711lfl.553.1655365999255; Thu, 16 Jun 2022 00:53:19 -0700 (PDT) MIME-Version: 1.0 References: <20220525051837.247255-1-fidaullah.noonari@emumba.com> In-Reply-To: <20220525051837.247255-1-fidaullah.noonari@emumba.com> From: David Marchand Date: Thu, 16 Jun 2022 09:53:08 +0200 Message-ID: Subject: Re: [PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory To: "Burakov, Anatoly" , Dmitry Kozlyuk Cc: dev , Fidaullah Noonari Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Wed, May 25, 2022 at 7:18 AM Fidaullah Noonari wrote: > > if rte malloc is called to allocate memory of size > is between multiple of hugepage size minus malloc_header_len > and hugepage size rte_malloc fails to allocate memory. > this fix replaces malloc_elem_trailer_len with > malloc_elem_overhead in try_expand_heap() to include > malloc_elem_header_len when calculating n_seg. > > Bugzilla ID: 800 > > Signed-off-by: Fidaullah Noonari Anatoly, Dmitry, can you have a look? Thanks. -- David Marchand