From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2290A00C2 for ; Fri, 24 Apr 2020 19:33:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D39491D447; Fri, 24 Apr 2020 19:33:28 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 92AF21D447 for ; Fri, 24 Apr 2020 19:33:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587749607; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kiWsEkd95nOhN083QjGTtqOLbyLAaL2YcflNZ4W35RM=; b=C6uvdoP/LqcfzJCk0Tq/kyaT62OB5MliPQ20+HGZ/00LKKLnmq8szdTPdwTWlaB8A03RM9 XLmihk7UoPgdTjkQ/WEAUmqaKO4wwsXRBmIgmTjBvP94qxHpjI8ubtkzhE30OhbdwKHnGa mdp6rstUa2R7eSaVG/m0FtnIsKXQNX8= Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-248-MUVS-4VcNzaSKTrrEgovUg-1; Fri, 24 Apr 2020 13:33:25 -0400 X-MC-Unique: MUVS-4VcNzaSKTrrEgovUg-1 Received: by mail-vk1-f197.google.com with SMTP id l188so5083840vke.23 for ; Fri, 24 Apr 2020 10:33:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vzh69yHm5XUt7eDjrDmq85UjtuSss4JFnCvtEamWboc=; b=SmKpyD1gZzIoODd1GfreDxHF88/sB7QY2y9jmrjsFUcGVTI3o5/jci5uA1gUe7HUsq siG2NGOxV4uQt30qmXldVcRcOwKsmbuzefVjdAlglb9RkcM8fYFrsw3LHNWO9ZqIQMh7 sxzh7WU/RpSDDgS2dktnSnpd46fUMQJ+ns65P73X8vDRizFpaWRBs6BBqtYKdLkMwVNy 8OIEbRtlohonMapjFaThjbxHS2L1kqSwfxfzVQlXf++Oe5m5gox3BX0OoCimqoki3296 w6eWKeh3oPvH/bLuosqZCExEZqla2kkGSzhgrk0c/koHjtP7nZ0ELFbQkW3F4AI+BqHc xHtQ== X-Gm-Message-State: AGi0PuYc2Y61dKySO12DdCdsX9yKm4l4zKL7KjIGxEYDOc7re2ygdhIk WM9AWyClBUxtsPxs87LTeh2NGnXrjhc/7hP5K3b120Fn6ADXMJlZC3beoCn7SmgXBuz9jNNIL5u tICpkt2QlOKqmm+8tYOrcxoQ= X-Received: by 2002:a67:487:: with SMTP id 129mr9088473vse.105.1587749605059; Fri, 24 Apr 2020 10:33:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIyvFHq+zWj5J9ShfqrwRlSnNRpf4+TO2B5gMWpHx9Jl/+4RlI5FI1VYlz7POySg4x3TZc++J/BiQnvC3eEZeI= X-Received: by 2002:a67:487:: with SMTP id 129mr9088447vse.105.1587749604775; Fri, 24 Apr 2020 10:33:24 -0700 (PDT) MIME-Version: 1.0 References: <20200424105016.28974-1-fengli@smartx.com> <20200424131905.18315-1-fengli@smartx.com> In-Reply-To: <20200424131905.18315-1-fengli@smartx.com> From: David Marchand Date: Fri, 24 Apr 2020 19:33:13 +0200 Message-ID: To: Li Feng Cc: Anatoly Burakov , dev , dpdk stable , Kyle Zhang , Feng Li , fanyang@smartx.com, Bruce Richardson X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v6] eal: use madvise to exclude unmapped memory from being dumped X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Fri, Apr 24, 2020 at 3:19 PM Li Feng wrote: > > Currently, even though memory is mapped with PROT_NONE, this does not > cause it to be excluded from core dumps. This is counter-productive, > because in a lot of cases, this memory will go unused (e.g. when the > memory subsystem preallocates VA space but hasn't yet mapped physical > pages into it). > > Use `madvise()` call with MADV_DONTDUMP parameter to exclude the > unmapped memory from being dumped. > > Signed-off-by: Li Feng Acked-by: Anatoly Burakov Applied, thanks. --=20 David Marchand