Received: by 10.223.164.202 with SMTP id h10csp2086388wrb; Fri, 24 Nov 2017 05:44:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMYlEpbGLk1dr1PyxdB6nW+biFJRvbTA9Dz0RpZsUfBJgg948fUeGzGEd8EfdXZLMqxBGiB1 X-Received: by 10.84.238.193 with SMTP id l1mr29181521pln.106.1511531065572; Fri, 24 Nov 2017 05:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511531065; cv=none; d=google.com; s=arc-20160816; b=V230VBtfBwPzj5BzTb++bztvGGbBIbsubF+MwXiurQeEL0k5yH441cvWwJr97rtOKV rEKYbeaWKcwnqXnF+38kMoe8yjI5OK5A44jxC+UwRLj9Yto+o3VNhkBMB5EvDEnofmJJ O0cq9FKX+u7MdvZxpxCtz/zlwPRNtWh4CmdiXzbRDj9aTWMtAiSC1e1s5/0rl0KulTUf D21qGuvmv2AT8jqclQioe4B/3MdpKzNnf8uTS1ECc8DsVUCy8ACSQzPj/gIDrgMVzQ9j 7rL/z5XImg4o3q3l7r6m577ZrNp7rZXul3l4vuMcKVYTba3OZna4YDlF4DnPIBs0aMje qwUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=ycFcRKIDoj51+7S/8hBJg2+HJc/U7LpvNIBsSGVTMog=; b=kKP9RP9SS0AOPHOWXVlr3OtHgGYsjjnJb84T9iescoz4ReghjTNBgIb4vZQXB8JBZo G/dKwhGZdZOyknqOSLs8ksGhOISTu4x2yjINs+0a93OzTJuec/hks1WTIat0KJFcwxMi ML0bFoNoHSrPyL+O8nX7Z0rjDeB/hXAP9OgfWsxqcmfPKl9QF6a1kSw9VnYVG3a0MDOr 4PS0uiv0MdcNsLoliCRYUEhWhCquhpFEOAkxQP5tgwDjYeMK2r/4zMy9bIK07BogVPRN LgLRZvQRP6FU8OWC2ox+6nxg2WvaMn6ctaK/8XJuixvu68SfLvdCg+/9oKdubZ/toMLH 5nXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=on8ykamn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si18569665plk.144.2017.11.24.05.44.13; Fri, 24 Nov 2017 05:44:25 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=on8ykamn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbdKXNmS (ORCPT + 76 others); Fri, 24 Nov 2017 08:42:18 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:48620 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbdKXNmQ (ORCPT ); Fri, 24 Nov 2017 08:42:16 -0500 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20171124134215epoutp01f72deef74d51837eae07be8ad658f163~6CWCJILcj3263032630epoutp01T for ; Fri, 24 Nov 2017 13:42:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20171124134215epoutp01f72deef74d51837eae07be8ad658f163~6CWCJILcj3263032630epoutp01T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511530935; bh=ycFcRKIDoj51+7S/8hBJg2+HJc/U7LpvNIBsSGVTMog=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=on8ykamno72E+Zq1xnMM5UKoZLm9m/qLfXwrH5QLjRMpNwDOl0IlORzHPDEIn8O6d oXOPfrBSEwXisG+zv6xBL+KFbqnNmZMHMhozUvlbgggICywWuH2CsoYWGZaEMpWyN+ d1HE+kYEluRDN1Zu/vv8ZnF6XuBpPCFVGa0dQXJY= Received: from epsmges5p3new.samsung.com (unknown [182.195.40.75]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20171124134213epcas5p129e73049e550d44a3ea0b04d432feba2~6CWA1mljf0853608536epcas5p1S; Fri, 24 Nov 2017 13:42:13 +0000 (GMT) X-AuditID: b6c32a4b-cdfff700000011c1-4a-5a1821b5bd2a Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 94.77.04545.5B1281A5; Fri, 24 Nov 2017 22:42:13 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: Re: [PATCH 1/1] stackdepot: interface to check entries and size of stackdepot. Reply-To: v.narang@samsung.com From: Vaneet Narang To: Michal Hocko 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 X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20171124124429.juonhyw4xbqc65u7@dhcp22.suse.cz> X-Drm-Type: Y,confirm X-EPWebmail-Msg-Type: personal X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20171124133025epcms5p7dc263c4a831552245e60193917a45b07@epcms5p7> Date: Fri, 24 Nov 2017 13:30:25 +0000 X-CMS-MailID: 20171124133025epcms5p7dc263c4a831552245e60193917a45b07 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE X-MTR: 20171124133025epcms5p7dc263c4a831552245e60193917a45b07 CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJsWRmVeSWpSXmKPExsWy7bCmpu5WRYkog2XrtC0u7k61mLN+DZvF hIdt7BbNi9ezWXx7uILNYvecxSwWB36eYLRY8ew+k0XPnCZGi/7FZhaXd81hs7i35j+rxeH5 bSwWr78tY7a492Yrk8X/3+dYLWY39jFarN96gN1ByONyXy+Tx4JNpR57Jp5k89i0qhNIfJrE 7nFixm8Wj/1z17B7LN9p4vF+31U2j74tqxg9ziw4wu7xeZNcAE9Uqk1GamJKapFCal5yfkpm XrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0HNKCmWJOaVAoYDE4mIlfTubovzS klSFjPziElulaENDIz1DA3M9IyMjPRPTWCsjU6CShNSMI+vvsxcs5as4v3cycwPjB94uRk4O CQETiaVrrzGB2EICuxklTnTHdjFycPAKCEr83SEMYgoLJErM38YMUSEncfzGbkYQW1hAR+LE vDWMICVsAloSH1vCQcIiAioS6/vusHcxcnEwC2xlkzjX+4oZYhOvxIz2pywQtrTE9uVbweZw CthKHNlxkxEiLirxpwGmRk5i2tc1zDDx98fmQ9WISLTeOwsVF5R48HM3VFxG4vvXflaQxRIC 3YwS999+ZYFwpjBKLJr3D2qqucT5k/PBunkFfCUmHu0H+4BFQFXi+RNuiBIXiZ3b/rOC2MwC 2hLLFr5mBilhFtCUWL9LH6JEVmLqqXVMELatxM0F95kgyvkken8/YYL5d8c8GFtJ4tzBnWwQ toTEk86ZzBMYlWchAnoWkmWzEJYtYGRexSiZWlCcm55abFpgnJdarlecmFtcmpeul5yfu4kR nMS1vHcwbjrnc4hRgINRiYe34JFYlBBrYllxZe4hRgkOZiURXvmnQCHelMTKqtSi/Pii0pzU 4kOMpkBfT2SWEk3OB2aYvJJ4QxNLAxMzM3NDAwNLEyVx3mM7SyOFBNITS1KzU1MLUotg+pg4 OKUaGJ0fKKY+ZV6RP6fpyfV7k3Mc9qabmb0W1XtUVyrk7SbUsPXA++83um7fD329ebn75UCR eXWOMa1aNr8WF11qavnLNW3i96j+mS7qwrObv8ZOnL9bJSnGcNuEly+u9ew+NGWraFPduk1l URohOSdro2xd9AUF1+Ry6D1+s+mt01ONJ8rKbx9t+KrEUpyRaKjFXFScCADOTRjB+AMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20171122105142epcas5p173b7205da12e1fc72e16ec74c49db665 X-RootMTR: 20171122105142epcas5p173b7205da12e1fc72e16ec74c49db665 References: <20171124124429.juonhyw4xbqc65u7@dhcp22.suse.cz> <20171123162835.6prpgrz3qkdexx56@dhcp22.suse.cz> <1511347661-38083-1-git-send-email-maninder1.s@samsung.com> <20171124094108epcms5p396558828a365a876d61205b0fdb501fd@epcms5p3> <20171124095428.5ojzgfd24sy7zvhe@dhcp22.suse.cz> <20171124115707epcms5p4fa19970a325e87f08eadb1b1dc6f0701@epcms5p4> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, >>=C2=A0We=C2=A0have=C2=A0been=C2=A0getting=C2=A0similar=C2=A0kind=C2=A0of= =C2=A0such=C2=A0entries=C2=A0and=C2=A0eventually=0D=0A>>=C2=A0stackdepot=C2= =A0reaches=C2=A0Max=C2=A0Cap.=C2=A0So=C2=A0we=C2=A0found=C2=A0this=C2=A0int= erface=C2=A0useful=C2=A0in=C2=A0debugging=0D=0A>>=C2=A0stackdepot=C2=A0issu= e=C2=A0so=C2=A0shared=C2=A0in=C2=A0community.=0D=0A=C2=A0=0D=0A>Then=C2=A0u= se=C2=A0it=C2=A0for=C2=A0internal=C2=A0debugging=C2=A0and=C2=A0provide=C2= =A0a=C2=A0code=C2=A0which=C2=A0would=C2=A0scale=0D=0A>better=C2=A0on=C2=A0s= maller=C2=A0systems.=C2=A0We=C2=A0do=C2=A0not=C2=A0need=C2=A0this=C2=A0in= =C2=A0the=C2=A0kernel=C2=A0IMHO.=C2=A0We=C2=A0do=0D=0A>not=C2=A0merge=C2=A0= all=C2=A0the=C2=A0debugging=C2=A0patches=C2=A0we=C2=A0use=C2=A0for=C2=A0int= ernal=C2=A0development.=0D=0A=60=C2=A0=0D=0ANot=20just=20debugging=20but=20= this=20information=20can=20also=20be=20used=20to=20profile=20and=20tune=20s= tack=20depot.=20=0D=0AGetting=20count=20of=20stack=20entries=20would=20help= =20in=20deciding=20hash=20table=20size=20and=20=0D=0Apage=20order=20used=20= by=20stackdepot.=20=0D=0A=0D=0AFor=20less=20entries,=20bigger=20hash=20tabl= e=20and=20higher=20page=20order=20slabs=20might=20not=20be=20required=20as= =20=0D=0Amaintained=20by=20stackdepot.=20As=20i=20already=20mentioned=20sma= ller=20size=20hashtable=20can=20be=20choosen=20and=20=0D=0Asimilarly=20lowe= r=20order=20=20pages=20can=20be=20used=20for=20slabs.=0D=0A=0D=0AIf=20you= =20think=20its=20useful,=20we=20can=20share=20scalable=20patch=20to=20confi= gure=20below=20two=20values=20based=20on=20=0D=0Anumber=20of=20stack=20entr= ies=20dynamically.=0D=0A=0D=0A=23define=20STACK_ALLOC_ORDER=202=20=0D=0A=23= define=20STACK_HASH_SIZE=20(1L=20<<=20STACK_HASH_ORDER)=0D=0A=0D=0A=0D=0ARe= gards,=0D=0AVaneet=20Narang From 1584951515745933685@xxx Fri Nov 24 12:45:53 +0000 2017 X-GM-THRID: 1584763196629983480 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread