From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by kanga.kvack.org (Postfix) with ESMTP id 525316B025E for ; Wed, 4 May 2016 11:45:47 -0400 (EDT) Received: by mail-pa0-f72.google.com with SMTP id gw7so77146775pac.0 for ; Wed, 04 May 2016 08:45:47 -0700 (PDT) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com. [2607:f8b0:4003:c06::232]) by mx.google.com with ESMTPS id y77si2142751oie.130.2016.05.04.08.45.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 May 2016 08:45:46 -0700 (PDT) Received: by mail-oi0-x232.google.com with SMTP id x19so69951101oix.2 for ; Wed, 04 May 2016 08:45:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1462252984-8524-1-git-send-email-iamjoonsoo.kim@lge.com> <1462252984-8524-7-git-send-email-iamjoonsoo.kim@lge.com> <20160503085356.GD28039@dhcp22.suse.cz> <20160504021449.GA10256@js1304-P5Q-DELUXE> <20160504092133.GG29978@dhcp22.suse.cz> Date: Thu, 5 May 2016 00:45:45 +0900 Message-ID: Subject: Re: [PATCH 6/6] mm/page_owner: use stackdepot to store stacktrace From: Joonsoo Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: Joonsoo Kim , Andrew Morton , Vlastimil Babka , Mel Gorman , Minchan Kim , Alexander Potapenko , Linux Memory Management List , LKML 2016-05-05 0:30 GMT+09:00 Joonsoo Kim : > 2016-05-04 18:21 GMT+09:00 Michal Hocko : >> On Wed 04-05-16 11:14:50, Joonsoo Kim wrote: >>> On Tue, May 03, 2016 at 10:53:56AM +0200, Michal Hocko wrote: >>> > On Tue 03-05-16 14:23:04, Joonsoo Kim wrote: >> [...] >>> > > Memory saving looks as following. (Boot 4GB memory system with page_owner) >>> > > >>> > > 92274688 bytes -> 25165824 bytes >>> > >>> > It is not clear to me whether this is after a fresh boot or some workload >>> > which would grow the stack depot as well. What is a usual cap for the >>> > memory consumption. >>> >>> It is static allocation size after a fresh boot. I didn't add size of >>> dynamic allocation memory so it could be larger a little. See below line. >>> > >>> > > 72% reduction in static allocation size. Even if we should add up size of >>> > > dynamic allocation memory, it would not that big because stacktrace is >>> > > mostly duplicated. >> >> This would be true only if most of the allocation stacks are basically >> same after the boot which I am not really convinced is true. But you are >> right that the number of sublicates will grow only a little. I was >> interested about how much is that little ;) > > After a fresh boot, it just uses 14 order-2 pages. I missed to add other information. Even after building the kernel, it takes 20 order-2 pages. 20 * 4 * 4KB = 320 KB. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org