Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1329557
| From | Johannes Weiner <hannes@cmpxchg.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/5] mm: workingset: make shadow node shrinker memcg aware |
| Date | 2016-02-08 21:50 +0100 |
| Message-ID | <r00UW-1XR-37@gated-at.bofh.it> (permalink) |
| References | <qZBjQ-Sz-9@gated-at.bofh.it> <qZBjR-Sz-23@gated-at.bofh.it> <qZNuF-1eE-1@gated-at.bofh.it> <qZUZc-6vM-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Feb 08, 2016 at 05:28:35PM +0300, Vladimir Davydov wrote: > On Mon, Feb 08, 2016 at 01:23:53AM -0500, Johannes Weiner wrote: > > It's true that both the shrinking of the active list and subsequent > > activations to regrow it will reduce the number of actionable > > refaults, and so it wouldn't be unreasonable to also shrink shadow > > nodes when the active list shrinks. > > > > However, I think these are too many assumptions to encode in the > > shrinker, because it is only meant to prevent a worst-case explosion > > of radix tree nodes. I'd prefer it to be dumb and conservative. > > > > Could we instead go with the current usage of the memcg? Whether > > reclaim happens globally or due to the memory limit, the usage at the > > time of reclaim gives a good idea of the memory is available to the > > group. But it's making less assumptions about the internal composition > > of the memcg's memory, and the consequences associated with that. > > But that would likely result in wasting a considerable chunk of memory > for stale shadow nodes in case file caches constitute only a small part > of memcg memory consumption, which isn't good IMHO. Hm, that's probably true. But I think it's a separate patch at this point - going from total memory to the cache portion for overhead reasons - that shouldn't be conflated with the memcg awareness patch.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] mm: workingset: make shadow node shrinker memcg aware Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-07 18:30 +0100
[PATCH 1/5] mm: memcontrol: enable kmem accounting for all cgroups in the legacy hierarchy Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-07 18:30 +0100
Re: [PATCH 1/5] mm: memcontrol: enable kmem accounting for all cgroups in the legacy hierarchy Johannes Weiner <hannes@cmpxchg.org> - 2016-02-08 06:50 +0100
[PATCH 4/5] radix-tree: account radix_tree_node to memory cgroup Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-07 18:30 +0100
Re: [PATCH 4/5] radix-tree: account radix_tree_node to memory cgroup Johannes Weiner <hannes@cmpxchg.org> - 2016-02-08 07:10 +0100
[PATCH 5/5] mm: workingset: make shadow node shrinker memcg aware Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-07 18:30 +0100
Re: [PATCH 5/5] mm: workingset: make shadow node shrinker memcg aware Johannes Weiner <hannes@cmpxchg.org> - 2016-02-08 07:30 +0100
Re: [PATCH 5/5] mm: workingset: make shadow node shrinker memcg aware Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-08 15:30 +0100
Re: [PATCH 5/5] mm: workingset: make shadow node shrinker memcg aware Johannes Weiner <hannes@cmpxchg.org> - 2016-02-08 21:50 +0100
[PATCH 3/5] mm: memcontrol: zap memcg_kmem_online helper Vladimir Davydov <vdavydov@virtuozzo.com> - 2016-02-07 18:30 +0100
Re: [PATCH 3/5] mm: memcontrol: zap memcg_kmem_online helper Johannes Weiner <hannes@cmpxchg.org> - 2016-02-08 06:50 +0100
csiph-web