Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1455696
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH stable 4.6+] radix-tree: account nodes to memcg only if explicitly requested |
| Date | 2016-08-03 10:30 +0200 |
| Message-ID | <s1ZIR-8a-17@gated-at.bofh.it> (permalink) |
| References | <s1HCi-4RK-37@gated-at.bofh.it> <s1VFf-5Kv-11@gated-at.bofh.it> <s1ZIR-8a-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Aug 03, 2016 at 11:15:25AM +0300, Vladimir Davydov wrote: > On Wed, Aug 03, 2016 at 05:51:39AM +0200, Greg KH wrote: > > On Tue, Aug 02, 2016 at 03:45:34PM +0300, Vladimir Davydov wrote: > > > Radix trees may be used not only for storing page cache pages, so > > > unconditionally accounting radix tree nodes to the current memory cgroup > > > is bad: if a radix tree node is used for storing data shared among > > > different cgroups we risk pinning dead memory cgroups forever. So let's > > > only account radix tree nodes if it was explicitly requested by passing > > > __GFP_ACCOUNT to INIT_RADIX_TREE. Currently, we only want to account > > > page cache entries, so mark mapping->page_tree so. > > > > > > Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com> > > > Acked-by: Johannes Weiner <hannes@cmpxchg.org> > > > Acked-by: Michal Hocko <mhocko@suse.com> > > > Cc: <stable@vger.kernel.org> [4.6+] > > > --- > > > fs/inode.c | 2 +- > > > lib/radix-tree.c | 14 ++++++++++---- > > > 2 files changed, 11 insertions(+), 5 deletions(-) > > > > Is this patch in Linus's tree already? > > Not yet, it should only be added to 4.8, so I shouldn't have sent this > (didn't know how patches are submitted to stable). Please ignore. Please read Documentation/stable_kernel_rules.txt, it should help answer this question (hint, you almost got it right...) thanks, greg k-h
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH stable 4.6+] radix-tree: account nodes to memcg only if explicitly requested Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-08-02 15:10 +0200
Re: [PATCH stable 4.6+] radix-tree: account nodes to memcg only if explicitly requested Greg KH <gregkh@linuxfoundation.org> - 2016-08-03 06:10 +0200
Re: [PATCH stable 4.6+] radix-tree: account nodes to memcg only if explicitly requested Greg KH <gregkh@linuxfoundation.org> - 2016-08-03 10:30 +0200
csiph-web