From: SeongJae Park <sj38.park@gmail.com> To: sjpark@amazon.com Cc: axboe@kernel.dk, konrad.wilk@oracle.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, pdurrant@amazon.com, roger.pau@citrix.com, sj38.park@gmail.com, xen-devel@lists.xenproject.org, SeongJae Park <sjpark@amazon.de> Subject: [PATCH v5 0/2] xenbus/backend: Add a memory pressure handler callback Date: Tue, 10 Dec 2019 08:06:26 +0000 [thread overview] Message-ID: <20191210080628.5264-1-sjpark@amazon.de> (raw) Granting pages consumes backend system memory. In systems configured with insufficient spare memory for those pages, it can cause a memory pressure situation. However, finding the optimal amount of the spare memory is challenging for large systems having dynamic resource utilization patterns. Also, such a static configuration might lack a flexibility. To mitigate such problems, this patchset adds a memory reclaim callback to 'xenbus_driver' (patch 1) and use it to mitigate the problem in 'xen-blkback' (patch 2). Base Version ------------ This patch is based on v5.4. A complete tree is also available at my public git repo: https://github.com/sjp38/linux/tree/blkback_squeezing_v5 Patch History ------------- Changes from v4 (https://lore.kernel.org/xen-devel/20191209194305.20828-1-sjpark@amazon.com/) - Remove domain id parameter from the callback (suggested by Jergen Gross) Changes from v3 (https://lore.kernel.org/xen-devel/20191209085839.21215-1-sjpark@amazon.com/) - Add general callback in xen_driver and use it (suggested by Juergen Gross) Changes from v2 (https://lore.kernel.org/linux-block/af195033-23d5-38ed-b73b-f6e2e3b34541@amazon.com) - Rename the module parameter and variables for brevity (aggressive shrinking -> squeezing) Changes from v1 (https://lore.kernel.org/xen-devel/20191204113419.2298-1-sjpark@amazon.com/) - Adjust the description to not use the term, `arbitrarily` (suggested by Paul Durrant) - Specify time unit of the duration in the parameter description, (suggested by Maximilian Heyne) - Change default aggressive shrinking duration from 1ms to 10ms - Merge two patches into one single patch SeongJae Park (2): xenbus/backend: Add memory pressure handler callback xen/blkback: Squeeze page pools if a memory pressure is detected drivers/block/xen-blkback/blkback.c | 23 +++++++++++++++-- drivers/block/xen-blkback/common.h | 1 + drivers/block/xen-blkback/xenbus.c | 3 ++- drivers/xen/xenbus/xenbus_probe_backend.c | 31 +++++++++++++++++++++++ include/xen/xenbus.h | 1 + 5 files changed, 56 insertions(+), 3 deletions(-) -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: SeongJae Park <sj38.park@gmail.com> To: sjpark@amazon.com Cc: axboe@kernel.dk, sj38.park@gmail.com, konrad.wilk@oracle.com, pdurrant@amazon.com, SeongJae Park <sjpark@amazon.de>, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, xen-devel@lists.xenproject.org, roger.pau@citrix.com Subject: [Xen-devel] [PATCH v5 0/2] xenbus/backend: Add a memory pressure handler callback Date: Tue, 10 Dec 2019 08:06:26 +0000 [thread overview] Message-ID: <20191210080628.5264-1-sjpark@amazon.de> (raw) Granting pages consumes backend system memory. In systems configured with insufficient spare memory for those pages, it can cause a memory pressure situation. However, finding the optimal amount of the spare memory is challenging for large systems having dynamic resource utilization patterns. Also, such a static configuration might lack a flexibility. To mitigate such problems, this patchset adds a memory reclaim callback to 'xenbus_driver' (patch 1) and use it to mitigate the problem in 'xen-blkback' (patch 2). Base Version ------------ This patch is based on v5.4. A complete tree is also available at my public git repo: https://github.com/sjp38/linux/tree/blkback_squeezing_v5 Patch History ------------- Changes from v4 (https://lore.kernel.org/xen-devel/20191209194305.20828-1-sjpark@amazon.com/) - Remove domain id parameter from the callback (suggested by Jergen Gross) Changes from v3 (https://lore.kernel.org/xen-devel/20191209085839.21215-1-sjpark@amazon.com/) - Add general callback in xen_driver and use it (suggested by Juergen Gross) Changes from v2 (https://lore.kernel.org/linux-block/af195033-23d5-38ed-b73b-f6e2e3b34541@amazon.com) - Rename the module parameter and variables for brevity (aggressive shrinking -> squeezing) Changes from v1 (https://lore.kernel.org/xen-devel/20191204113419.2298-1-sjpark@amazon.com/) - Adjust the description to not use the term, `arbitrarily` (suggested by Paul Durrant) - Specify time unit of the duration in the parameter description, (suggested by Maximilian Heyne) - Change default aggressive shrinking duration from 1ms to 10ms - Merge two patches into one single patch SeongJae Park (2): xenbus/backend: Add memory pressure handler callback xen/blkback: Squeeze page pools if a memory pressure is detected drivers/block/xen-blkback/blkback.c | 23 +++++++++++++++-- drivers/block/xen-blkback/common.h | 1 + drivers/block/xen-blkback/xenbus.c | 3 ++- drivers/xen/xenbus/xenbus_probe_backend.c | 31 +++++++++++++++++++++++ include/xen/xenbus.h | 1 + 5 files changed, 56 insertions(+), 3 deletions(-) -- 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-12-10 8:06 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-10 8:06 SeongJae Park [this message] 2019-12-10 8:06 ` [Xen-devel] [PATCH v5 0/2] xenbus/backend: Add a memory pressure handler callback SeongJae Park 2019-12-10 8:06 ` [PATCH v5 1/2] xenbus/backend: Add " SeongJae Park 2019-12-10 8:06 ` [Xen-devel] " SeongJae Park 2019-12-10 8:17 ` Jürgen Groß 2019-12-10 8:17 ` [Xen-devel] " Jürgen Groß 2019-12-10 10:16 ` Roger Pau Monné 2019-12-10 10:16 ` [Xen-devel] " Roger Pau Monné 2019-12-10 10:21 ` Roger Pau Monné 2019-12-10 10:21 ` Roger Pau Monné 2019-12-10 10:24 ` SeongJae Park 2019-12-10 10:24 ` SeongJae Park 2019-12-11 3:50 ` SeongJae Park 2019-12-11 3:50 ` [Xen-devel] " SeongJae Park 2019-12-11 10:51 ` Roger Pau Monné 2019-12-11 10:51 ` [Xen-devel] " Roger Pau Monné 2019-12-11 11:52 ` Re: " SeongJae Park 2019-12-11 11:52 ` [Xen-devel] " SeongJae Park 2019-12-10 8:06 ` [PATCH v5 2/2] xen/blkback: Squeeze page pools if a memory pressure is detected SeongJae Park 2019-12-10 8:06 ` [Xen-devel] " SeongJae Park 2019-12-10 11:04 ` Roger Pau Monné 2019-12-10 11:04 ` [Xen-devel] " Roger Pau Monné 2019-12-11 4:08 ` SeongJae Park 2019-12-11 4:08 ` [Xen-devel] " SeongJae Park 2019-12-11 11:14 ` Roger Pau Monné 2019-12-11 11:14 ` [Xen-devel] " Roger Pau Monné 2019-12-11 11:52 ` Re: " SeongJae Park 2019-12-11 11:52 ` [Xen-devel] " SeongJae Park
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=20191210080628.5264-1-sjpark@amazon.de \ --to=sj38.park@gmail.com \ --cc=axboe@kernel.dk \ --cc=konrad.wilk@oracle.com \ --cc=linux-block@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=pdurrant@amazon.com \ --cc=roger.pau@citrix.com \ --cc=sjpark@amazon.com \ --cc=sjpark@amazon.de \ --cc=xen-devel@lists.xenproject.org \ /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: linkBe 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.