Re: [PATCH 2/2] fs/writeback: do memory cgroup related writeback firstly

2018-08-01 Thread Michal Hocko
On Wed 01-08-18 18:48:36, Li RongQing wrote: > When a machine has hundreds of memory cgroups, and some cgroups > generate more or less dirty pages, but a cgroup of them has lots > of memory pressure and always tries to reclaim dirty page, then it > will trigger all cgroups to writeback, which is le

[PATCH 2/2] fs/writeback: do memory cgroup related writeback firstly

2018-08-01 Thread Li RongQing
When a machine has hundreds of memory cgroups, and some cgroups generate more or less dirty pages, but a cgroup of them has lots of memory pressure and always tries to reclaim dirty page, then it will trigger all cgroups to writeback, which is less efficient: 1.if the used memory in a memory cgrou