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 529B5A00C3; Thu, 23 Jun 2022 09:51:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC65F4069D; Thu, 23 Jun 2022 09:51:02 +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 613284067B for ; Thu, 23 Jun 2022 09:51:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655970660; 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=FZrO78OaKd2CkLiCVM4uU/2qyzOvlopnXcPptvDU1SA=; b=YzG4KKomLX6MLZU92fx15CVeOaxv67NZcIv/pSyVEsGSdy9mUX+bJLcmjZoSyKFeA9xoCw pAz6U1yxNAnGlO/m6CZQlnkpiHi9Qb0BacY/5kBm2Z5aBFnZ9NmdHi0Z9HYEIR1fYCxCva 6jWqUq6mSDH4gK0JMs37PPRPhnGTCMc= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-572-VVO01ymzN5i_7jd1zkT18g-1; Thu, 23 Jun 2022 03:50:59 -0400 X-MC-Unique: VVO01ymzN5i_7jd1zkT18g-1 Received: by mail-lf1-f72.google.com with SMTP id q22-20020a0565123a9600b0047f6b8e1babso5694292lfu.21 for ; Thu, 23 Jun 2022 00:50:59 -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=FZrO78OaKd2CkLiCVM4uU/2qyzOvlopnXcPptvDU1SA=; b=xRqh1w2ys/um90KPBZY/Gl08lvo+y87w820YR7dB9OrK03AJKnbnBs60f/PK+oJu3C uivqGdOR+pcOR+7vowY7TJnt4OIBEKSAKpcpIEhrL1P8vNryGF++cNtvgAugm71lk3ff 4rms0pB8GyklUsM0bGbUxVqQG9tTQnhlDpQaYbSP75mfWe9IHVMSl8TLA6jRPWbBEqHh yavkfOEAEuHh16Q72+AuNURVwLd/NWrYpvRGFKNTJWNORNeJrCAaeh7CZ2DTjkG4cwLZ /wldNgbJ6vNtcElWI1l6iKY2KtIttOY1oR2M+7c/FSsfcgqGaEEHX2P9fOh/9Sw+jRPK YD5Q== X-Gm-Message-State: AJIora8gyRWs35EFZvjaL06nNm7zKiZ49tozAlnQvXjnKFCKPngOWxgO dmsEA1oxDJU1C4kQD6ITSRzNSfRWOLT20sE0bmSdYy7FWnFQazWrHHo1ojUyRi+rTq+JlLbNWk9 MF+u+IOaLN5hxAVGqzS4= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr4647945lfl.553.1655970657874; Thu, 23 Jun 2022 00:50:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEMoZSJZfn1iDzjookTsmGcBWy73Td1JzJmDQq83XhtrfL0Qk0SwbhZB0n1nu6ZbJLBi1fWrwmEo2DcmQL/4A= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr4647938lfl.553.1655970657643; Thu, 23 Jun 2022 00:50:57 -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, 23 Jun 2022 09:50:46 +0200 Message-ID: Subject: Re: [PATCH] eal: fixes the bug where rte_malloc() fails to allocates memory To: Fidaullah Noonari Cc: "Burakov, Anatoly" , dev , Dmitry Kozlyuk 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 Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug") Cc: stable@dpdk.org > > Signed-off-by: Fidaullah Noonari Acked-by: Dmitry Kozlyuk Applied, thanks. -- David Marchand