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 3023DA00C2; Fri, 24 Apr 2020 19:33:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 04F1F1D523; Fri, 24 Apr 2020 19:33:30 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id C60331D44F 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-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-373-Htq9oQJoNG6QTmCyMq-QyA-1; Fri, 24 Apr 2020 13:33:25 -0400 X-MC-Unique: Htq9oQJoNG6QTmCyMq-QyA-1 Received: by mail-vk1-f198.google.com with SMTP id o194so5135931vke.2 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=CpB4nzifyXVBTrF0zWVhy+DAVS9GgO+jFh7ZCJobg3+j7jlf9aykBfW8bUzgYot/ha 9QzkFFJ/Zcx2J3NXejBJHkNm+ngsskqkp6vSgWAVqC3SG/gSM+Fidvbf70aUe8fLsoQw ZPc0Od08H4xS1rrwwyG6BSVTesaqiSqB6ZIYqGvrrKqC5GZ5q4hY0pbMcc/voJEI4kMM Zw9m2L9SPzEfMRNyL2qHUnD7dKnLNdz94CAvXP8F8rGp1JhjqoiBgLkJEsxHTrOhjhK3 so9JsBzddXB4awIx69qGDjHPyhq5mlJY+j9KRWSLqSlRwfMU7uQupbBlasykX4jCGh2I 4qug== X-Gm-Message-State: AGi0PuZztxemTXsyGCY97ZalvIlJK732Qu5tG6ACi8fbz8gUxJc5rilh +uF81qNSR3W3At9bRABmGUOmgcRHlPKE3SYBuzg5MDqZ8YZZF8mnifxN0H8j/CIksJAI8tLAzRF JDFU0hQyS+kH+xXwoowE= X-Received: by 2002:a67:487:: with SMTP id 129mr9088472vse.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-dev] [PATCH v6] eal: use madvise to exclude unmapped memory from being dumped X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" 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