Received: by 10.223.164.202 with SMTP id h10csp2014975wrb; Fri, 24 Nov 2017 04:45:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMZOrg9qkOyvfyBREsiOwHRlosopRTGyRyhEr5c/m4wJS9/8fMykT2LGC46X3a31s2gHO0U1 X-Received: by 10.159.231.23 with SMTP id w23mr29387933plq.436.1511527553493; Fri, 24 Nov 2017 04:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511527553; cv=none; d=google.com; s=arc-20160816; b=TRO0wdSx4OmwS21jk0hOrcvui0CYFNl98XsH7ZFBzlOBcNW9unsEg131e3npVo3Rfm jXsDRQhhRs7yoZZLPk2e0fvjQRIRAWKk21HFfJZ/yx0NiC++wT0ZbAKPybHcDYL6oY9b UiZiT55ZsiT95KN1htUdu74+ISYVtaT16/sDhGRGtPps0dPrRjq3i6bhoBIU2pch+0+K r5TqiiNiG+k5ITONkHrxcADh92Zz4BmsQy71dMrGoRxh6iOQJkXtGAThO33g+/tnpMdY M4XpcjVTfBPCNWb1yEo0f4Pxgvya2Y4qJiUopjBdIOnxc+ocZHhbexCSNmZK9X/abRuh rX5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=78nx1PHYYRVt/rMuHbLNaSacdEPj98V398gwWFRbmKc=; b=wF6TGWE5U1fr4PglgTB2hesTO1CHXfBb/bK6r+7B5yQGBhppYcYz++bRmVVyFxXdb8 j6C9SkI2LUX6RaIF34qsjI6XbS3WQvut2tsV+5Rkoutx+GoznF0v830xbPft0v0Dg2bg WgWEd5KNjZL2YkZNfuwNfOTE8y64PhXW8y3Ivx8fZY75K7mLDJhgByM1sIMESoX2aiRG iQ58lc/CK1zzswiLInqy8kcTB1XVCgj58Nmo0b9HLaTmcsixcLVbrH9cYuYyntTO6SL2 MOgDQSfCReaGm0JCtt834YSRX1v6bh8HRdVWh4YW4VysxNMuVyLlsNsCtcA8vzKEwz1m ZO6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si18548686plm.520.2017.11.24.04.45.33; Fri, 24 Nov 2017 04:45:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753476AbdKXMof (ORCPT + 76 others); Fri, 24 Nov 2017 07:44:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:45980 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbdKXMoc (ORCPT ); Fri, 24 Nov 2017 07:44:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A72BBAC95; Fri, 24 Nov 2017 12:44:30 +0000 (UTC) Date: Fri, 24 Nov 2017 13:44:29 +0100 From: Michal Hocko To: Vaneet Narang Cc: Dmitry Vyukov , Maninder Singh , "kstewart@linuxfoundation.org" , "gregkh@linuxfoundation.org" , "jkosina@suse.cz" , "pombredanne@nexb.com" , "jpoimboe@redhat.com" , "akpm@linux-foundation.org" , "vbabka@suse.cz" , "guptap@codeaurora.org" , "vinmenon@codeaurora.org" , AMIT SAHRAWAT , PANKAJ MISHRA , Lalit Mohan Tripathi , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , kasan-dev Subject: Re: Re: [PATCH 1/1] stackdepot: interface to check entries and size of stackdepot. Message-ID: <20171124124429.juonhyw4xbqc65u7@dhcp22.suse.cz> References: <20171123162835.6prpgrz3qkdexx56@dhcp22.suse.cz> <1511347661-38083-1-git-send-email-maninder1.s@samsung.com> <20171124094108epcms5p396558828a365a876d61205b0fdb501fd@epcms5p3> <20171124095428.5ojzgfd24sy7zvhe@dhcp22.suse.cz> <20171124115707epcms5p4fa19970a325e87f08eadb1b1dc6f0701@epcms5p4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171124115707epcms5p4fa19970a325e87f08eadb1b1dc6f0701@epcms5p4> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 24-11-17 11:57:07, Vaneet Narang wrote: [...] > > OK, so debugging a debugging facility... I do not think we want to > > introduce a lot of code for something like that. > > We enabled stackdepot on our system and realised, in long run stack depot consumes > more runtime memory then it actually needs. we used shared patch to debug this issue. > stack stores following two unique entries. Page allocation done in interrupt > context will generate a unique stack trace. Consider following two entries. [...] > We have been getting similar kind of such entries and eventually > stackdepot reaches Max Cap. So we found this interface useful in debugging > stackdepot issue so shared in community. Then use it for internal debugging and provide a code which would scale better on smaller systems. We do not need this in the kernel IMHO. We do not merge all the debugging patches we use for internal development. -- Michal Hocko SUSE Labs From 1584950840089968403@xxx Fri Nov 24 12:35:08 +0000 2017 X-GM-THRID: 1584763196629983480 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread