All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xie Yongmei <yongmeixie@hotmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	linux-fsdevel@vger.kernel.org
Cc: yongmeixie@hotmail.comc, Xie Yongmei <yongmeixie@hotmail.com>
Subject: [PATCH 0/3] writeback: support dirty flush parameters per memcg
Date: Wed, 27 Apr 2022 05:32:38 -0400	[thread overview]
Message-ID: <TYYP286MB1115E4ABCE9016358CE0029FC5FA9@TYYP286MB1115.JPNP286.PROD.OUTLOOK.COM> (raw)

When analyzing the offline applications in co-location scenario, we
found they consume memory aggressively. Sometimes, they tend to fetch
massive data from the other machine and store them in the local
directory. Offline apps usually generate visible burst pressure upon
memory subsystem, especially the download phase. Because it kept
allocating pages from memory and producing dirty pages against the
global pool and cgroup pool.

How to get rid of dirty pages smoothly is challenge to make the system
as stable as before. So we'd to tune flush behavior per cgroup level.

This patchset only provide per memcg settings. No functional change.

BTW: bdi_writeback is bridge between memcg and blckcg. This patch chooses
to include those parameters in memcg, because dirty pages affect the
efficiency of memory reclaim more intuitively.

Xie Yongmei (3):
  writeback: refine trace event balance_dirty_pages
  writeback: per memcg dirty flush
  writeback: specify writeback period and expire interval per memcg

 fs/fs-writeback.c                |  11 +-
 include/linux/memcontrol.h       |  38 +++++
 include/trace/events/writeback.h |  25 ++--
 init/Kconfig                     |   7 +
 mm/backing-dev.c                 |   4 +-
 mm/memcontrol.c                  | 250 +++++++++++++++++++++++++++++++
 mm/page-writeback.c              |  15 +-
 7 files changed, 331 insertions(+), 19 deletions(-)

-- 
2.27.0


                 reply	other threads:[~2022-04-27  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TYYP286MB1115E4ABCE9016358CE0029FC5FA9@TYYP286MB1115.JPNP286.PROD.OUTLOOK.COM \
    --to=yongmeixie@hotmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=yongmeixie@hotmail.comc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.