Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1649396
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Wei Yang <richard.weiyang@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 0/6] refine and rename slub sysfs |
| Date | Wed, 24 May 2017 12:00:02 +0200 |
| Message-ID | <tKBfc-EZ-27@gated-at.bofh.it> (permalink) |
| References | <tI7XX-48K-3@gated-at.bofh.it> <tIpBw-8eh-21@gated-at.bofh.it> <tK8Gd-60t-1@gated-at.bofh.it> <tKbE5-7Qs-5@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tFgda63KK+w0kZHIWBWIuirFibC9Ht3skkOVreHEBIo=; b=lBBDkjZ/vN/iUAD23wZK1d9xbVIf8M83MwALY/GrqkgvqbMehTErDv0FK324EKlMjq Mi72jDwPk39m+1nV5/8VghazIColRsroaedEja5utdFSjHAegriJIcwkuVE4ewYIvkrM bo1ikiX6iNiFRa36qJDZ/4fwOUQ89wEhH/Rpjz6QfxMBFUMpVD8DIczSR3ezNUvHC47Y gYxuXm0WB3wpMGHVUpxNWRdFjEYJINg6cVrCpN9WCAkHoc3+ym0r1Eh5HejleIauEW/j pgtZy1je504lLVKWBLEJ4CB9eDak88Pn2hclBym3yoiJcrDBQY2hM39CqXraXhBkL6Mk gafA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=tFgda63KK+w0kZHIWBWIuirFibC9Ht3skkOVreHEBIo=; b=onYq1MC+szpZOtFng0EgGwl0SgMVMaEZNc0pSjO5JwG3og6jwnkTFcebj7HpPmg4wg HPyGMF/dQgJf8Ksh1awYLSuNV/AM+qyCICvWSUXTOkf1o2KgKTEjGmE6FJSZCwRhuNU8 j5TWO7X7I24Um0QeED8V5wGSah3T/0HPTW15y3eS7bpbm6Iv37rCScChVDpxKpo94DC1 5B6EK+Zh2PoFgjl1YptTPfrrZDjyk+v9IGfsHO55+vpIxWK9JCDeoYgf+8eCAbhs9jy4 gkYDIfpXlmPOeQFCde9zyr8PCtKWrOqPmmpuqBv0J6a1pR72WTl/4K4xSy8Etmop+YJP Ah3Q== |
| X-Gm-Message-State | AODbwcA6Q/qXlIE5XO8YO+xwEqekkZ0f+Wqx50GjXbfENvmqhvrTbaX/ Yqv+cn6MlIHasw== |
| X-Received | by 10.99.110.202 with SMTP id j193mr37395447pgc.141.1495619693677; Wed, 24 May 2017 02:54:53 -0700 (PDT) |
| Reply-To | Wei Yang <richard.weiyang@gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" |
| Content-Disposition | inline |
| User-Agent | Mutt/1.7.2 (2016-11-26) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 147 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Wei Yang <richard.weiyang@gmail.com>, cl@linux.com, penberg@kernel.org, rientjes@google.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Wed, 24 May 2017 17:54:50 +0800 |
| X-Original-Message-ID | <20170524095450.GA7706@WeideMBP.lan> |
| X-Original-References | <20170517141146.11063-1-richard.weiyang@gmail.com> <20170518090636.GA25471@dhcp22.suse.cz> <20170523032705.GA4275@WeideMBP.lan> <20170523063911.GC12813@dhcp22.suse.cz> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1649396 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Tue, May 23, 2017 at 08:39:11AM +0200, Michal Hocko wrote: >On Tue 23-05-17 11:27:05, Wei Yang wrote: >> On Thu, May 18, 2017 at 11:06:37AM +0200, Michal Hocko wrote: >> >On Wed 17-05-17 22:11:40, Wei Yang wrote: >> >> This patch serial could be divided into two parts. >> >> >> >> First three patches refine and adds slab sysfs. >> >> Second three patches rename slab sysfs. >> >> >> >> 1. Refine slab sysfs >> >> >> >> There are four level slabs: >> >> >> >> CPU >> >> CPU_PARTIAL >> >> PARTIAL >> >> FULL >> >> >> >> And in sysfs, it use show_slab_objects() and cpu_partial_slabs_show() to >> >> reflect the statistics. >> >> >> >> In patch 2, it splits some function in show_slab_objects() which makes sure >> >> only cpu_partial_slabs_show() covers statistics for CPU_PARTIAL slabs. >> >> >> >> After doing so, it would be more clear that show_slab_objects() has totally 9 >> >> statistic combinations for three level of slabs. Each slab has three cases >> >> statistic. >> >> >> >> slabs >> >> objects >> >> total_objects >> >> >> >> And when we look at current implementation, some of them are missing. So patch >> >> 2 & 3 add them up. >> >> >> >> 2. Rename sysfs >> >> >> >> The slab statistics in sysfs are >> >> >> >> slabs >> >> objects >> >> total_objects >> >> cpu_slabs >> >> partial >> >> partial_objects >> >> cpu_partial_slabs >> >> >> >> which is a little bit hard for users to understand. The second three patches >> >> rename sysfs file in this pattern. >> >> >> >> xxx_slabs[[_total]_objects] >> >> >> >> Finally it looks Like >> >> >> >> slabs >> >> slabs_objects >> >> slabs_total_objects >> >> cpu_slabs >> >> cpu_slabs_objects >> >> cpu_slabs_total_objects >> >> partial_slabs >> >> partial_slabs_objects >> >> partial_slabs_total_objects >> >> cpu_partial_slabs >> > >> >_Why_ do we need all this? >> >> To have a clear statistics for each slab level. > >Is this worth risking breakage of the userspace which consume this data >now? Do you have any user space code which will greatly benefit from the >new data and which couldn't do the same with the current format/output? > >If yes this all should be in the changelog. The answer is no. I have the same concern as yours. So this patch set could be divided into two parts: 1. add some new entry with current name convention, 2. change the name convention. If there are many userspace tools use these entries, the changing is really risky, I agree. Hmm, I still send this out, since current name convention is a little difficult for users to understand, especially after we have several levels slabs. Is it possible to use the name convention I proposed and add link to them to keep the userspace interface? And the second part is to fully utilize current functions. In function show_slab_objects(), we have 9 combinations of slab statistics. 3 for each slab level. And currently code just enable 6 of them. So the first three tries to enable the missing 3 to make it a more complete statistics. BTW, I found we don't have any entry for full slabs statistics. Not sure this is omitted intendedly or not. If the community agrees, I still have a path to enable the statistics for full slabs. Thanks for your comments~ Michal > >-- >Michal Hocko >SUSE Labs -- Wei Yang Help you, Help me
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] refine and rename slub sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-17 16:20 +0200
[PATCH 1/6] mm/slub: add total_objects_partial sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-17 16:20 +0200
Re: [PATCH 1/6] mm/slub: add total_objects_partial sysfs Christoph Lameter <cl@linux.com> - 2017-05-17 17:00 +0200
[PATCH 3/6] mm/slub: add cpu_slabs_[total_]objects sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-17 16:20 +0200
[PATCH 6/6] mm/slub: rename cpu_partial_slab sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-17 16:20 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Christoph Lameter <cl@linux.com> - 2017-05-17 17:00 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Michal Hocko <mhocko@kernel.org> - 2017-05-18 11:10 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-23 05:30 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Michal Hocko <mhocko@kernel.org> - 2017-05-23 08:40 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Christoph Lameter <cl@linux.com> - 2017-05-23 18:10 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-24 12:00 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Michal Hocko <mhocko@kernel.org> - 2017-05-24 14:10 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Wei Yang <richard.weiyang@gmail.com> - 2017-05-24 17:30 +0200
Re: [PATCH 0/6] refine and rename slub sysfs Christoph Lameter <cl@linux.com> - 2017-05-24 18:10 +0200
csiph-web