* [PATCH v3 0/5] xen/blk: persistent grant rework
@ 2018-08-13 14:01 Juergen Gross
0 siblings, 0 replies; 9+ messages in thread
From: Juergen Gross @ 2018-08-13 14:01 UTC (permalink / raw)
To: linux-kernel, xen-devel, linux-block
Cc: axboe, Juergen Gross, boris.ostrovsky, roger.pau
Persistent grants are used in the Xen's blkfront/blkback drivers to
avoid mapping/unmapping of I/O buffers in the backend for each I/O.
While this speeds up processing quite a bit there are problems related
to persistent grants in some configurations: domains with multiple
block devices making use of persistent grants might suffer from a lack
of grants if each of the block devices experienced a high I/O load at
some time. This is due to the number of persistent grants per device
only to be limited by a rather high maximum value, but never being
released even in case of longer times without any I/O.
This series modifies xen-blkback to unmap any domU page mapped via a
persistent grant after a timeout (default: 60 seconds). The timeout
is set to its default value again when a persistent grant has been
used for an I/O.
xen-blkfront is modified to scan every 10 seconds for persistent grants
not in use by blkback any more and to remove such grants.
The last 3 patches are small cleanups of blkfront and blkback drivers.
V3:
- patch 1: make timeout parameter static
V2:
- patch 1: added new module parameter doc
- patch 1: removed PERSISTENT_GNT_WAS_ACTIVE flag
- patch 2: removed global worker active flag
- added new patch 4
Juergen Gross (5):
xen/blkback: don't keep persistent grants too long
xen/blkfront: cleanup stale persistent grants
xen/blkfront: reorder tests in xlblk_init()
xen/blkback: move persistent grants flags to bool
xen/blkback: remove unused pers_gnts_lock from struct xen_blkif_ring
Documentation/ABI/testing/sysfs-driver-xen-blkback | 10 ++
drivers/block/xen-blkback/blkback.c | 99 ++++++++++---------
drivers/block/xen-blkback/common.h | 14 +--
drivers/block/xen-blkfront.c | 110 ++++++++++++++++++---
4 files changed, 163 insertions(+), 70 deletions(-)
--
2.13.7
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-24 13:52 ` Juergen Gross
@ 2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
1 sibling, 0 replies; 9+ messages in thread
From: Konrad Rzeszutek Wilk @ 2018-08-27 16:10 UTC (permalink / raw)
To: Juergen Gross
Cc: Roger Pau Monné,
linux-kernel, xen-devel, linux-block, axboe, boris.ostrovsky
On Fri, Aug 24, 2018 at 03:52:23PM +0200, Juergen Gross wrote:
> On 17/08/18 17:59, Roger Pau Monn=E9 wrote:
> > On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
> >> Persistent grants are used in the Xen's blkfront/blkback drivers to
> >> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
> >>
> >> While this speeds up processing quite a bit there are problems relat=
ed
> >> to persistent grants in some configurations: domains with multiple
> >> block devices making use of persistent grants might suffer from a la=
ck
> >> of grants if each of the block devices experienced a high I/O load a=
t
> >> some time. This is due to the number of persistent grants per device
> >> only to be limited by a rather high maximum value, but never being
> >> released even in case of longer times without any I/O.
> >>
> >> This series modifies xen-blkback to unmap any domU page mapped via a
> >> persistent grant after a timeout (default: 60 seconds). The timeout
> >> is set to its default value again when a persistent grant has been
> >> used for an I/O.
> >>
> >> xen-blkfront is modified to scan every 10 seconds for persistent gra=
nts
> >> not in use by blkback any more and to remove such grants.
> >>
> >> The last 3 patches are small cleanups of blkfront and blkback driver=
s.
> >>
> >> V3:
> >> - patch 1: make timeout parameter static
> >=20
> > Konrad if you are OK with this series, could you please send a pull
> > request to Jens?
>=20
> Ping?
Yes, let me do that now.
>=20
>=20
> Juergen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
@ 2018-08-27 16:10 ` Konrad Rzeszutek Wilk
0 siblings, 0 replies; 9+ messages in thread
From: Konrad Rzeszutek Wilk @ 2018-08-27 16:10 UTC (permalink / raw)
To: Juergen Gross
Cc: Roger Pau Monné,
linux-kernel, xen-devel, linux-block, axboe, boris.ostrovsky
On Fri, Aug 24, 2018 at 03:52:23PM +0200, Juergen Gross wrote:
> On 17/08/18 17:59, Roger Pau Monné wrote:
> > On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
> >> Persistent grants are used in the Xen's blkfront/blkback drivers to
> >> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
> >>
> >> While this speeds up processing quite a bit there are problems related
> >> to persistent grants in some configurations: domains with multiple
> >> block devices making use of persistent grants might suffer from a lack
> >> of grants if each of the block devices experienced a high I/O load at
> >> some time. This is due to the number of persistent grants per device
> >> only to be limited by a rather high maximum value, but never being
> >> released even in case of longer times without any I/O.
> >>
> >> This series modifies xen-blkback to unmap any domU page mapped via a
> >> persistent grant after a timeout (default: 60 seconds). The timeout
> >> is set to its default value again when a persistent grant has been
> >> used for an I/O.
> >>
> >> xen-blkfront is modified to scan every 10 seconds for persistent grants
> >> not in use by blkback any more and to remove such grants.
> >>
> >> The last 3 patches are small cleanups of blkfront and blkback drivers.
> >>
> >> V3:
> >> - patch 1: make timeout parameter static
> >
> > Konrad if you are OK with this series, could you please send a pull
> > request to Jens?
>
> Ping?
Yes, let me do that now.
>
>
> Juergen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-24 13:52 ` Juergen Gross
@ 2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
1 sibling, 0 replies; 9+ messages in thread
From: Konrad Rzeszutek Wilk @ 2018-08-27 16:10 UTC (permalink / raw)
To: Juergen Gross
Cc: axboe, linux-kernel, linux-block, xen-devel, boris.ostrovsky,
Roger Pau Monné
On Fri, Aug 24, 2018 at 03:52:23PM +0200, Juergen Gross wrote:
> On 17/08/18 17:59, Roger Pau Monné wrote:
> > On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
> >> Persistent grants are used in the Xen's blkfront/blkback drivers to
> >> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
> >>
> >> While this speeds up processing quite a bit there are problems related
> >> to persistent grants in some configurations: domains with multiple
> >> block devices making use of persistent grants might suffer from a lack
> >> of grants if each of the block devices experienced a high I/O load at
> >> some time. This is due to the number of persistent grants per device
> >> only to be limited by a rather high maximum value, but never being
> >> released even in case of longer times without any I/O.
> >>
> >> This series modifies xen-blkback to unmap any domU page mapped via a
> >> persistent grant after a timeout (default: 60 seconds). The timeout
> >> is set to its default value again when a persistent grant has been
> >> used for an I/O.
> >>
> >> xen-blkfront is modified to scan every 10 seconds for persistent grants
> >> not in use by blkback any more and to remove such grants.
> >>
> >> The last 3 patches are small cleanups of blkfront and blkback drivers.
> >>
> >> V3:
> >> - patch 1: make timeout parameter static
> >
> > Konrad if you are OK with this series, could you please send a pull
> > request to Jens?
>
> Ping?
Yes, let me do that now.
>
>
> Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-17 15:59 ` Roger Pau Monné
@ 2018-08-24 13:52 ` Juergen Gross
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-24 13:52 ` Juergen Gross
1 sibling, 2 replies; 9+ messages in thread
From: Juergen Gross @ 2018-08-24 13:52 UTC (permalink / raw)
To: Roger Pau Monné
Cc: linux-kernel, xen-devel, linux-block, konrad.wilk, axboe,
boris.ostrovsky
On 17/08/18 17:59, Roger Pau Monné wrote:
> On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
>> Persistent grants are used in the Xen's blkfront/blkback drivers to
>> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
>>
>> While this speeds up processing quite a bit there are problems related
>> to persistent grants in some configurations: domains with multiple
>> block devices making use of persistent grants might suffer from a lack
>> of grants if each of the block devices experienced a high I/O load at
>> some time. This is due to the number of persistent grants per device
>> only to be limited by a rather high maximum value, but never being
>> released even in case of longer times without any I/O.
>>
>> This series modifies xen-blkback to unmap any domU page mapped via a
>> persistent grant after a timeout (default: 60 seconds). The timeout
>> is set to its default value again when a persistent grant has been
>> used for an I/O.
>>
>> xen-blkfront is modified to scan every 10 seconds for persistent grants
>> not in use by blkback any more and to remove such grants.
>>
>> The last 3 patches are small cleanups of blkfront and blkback drivers.
>>
>> V3:
>> - patch 1: make timeout parameter static
>
> Konrad if you are OK with this series, could you please send a pull
> request to Jens?
Ping?
Juergen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-17 15:59 ` Roger Pau Monné
2018-08-24 13:52 ` Juergen Gross
@ 2018-08-24 13:52 ` Juergen Gross
1 sibling, 0 replies; 9+ messages in thread
From: Juergen Gross @ 2018-08-24 13:52 UTC (permalink / raw)
To: Roger Pau Monné
Cc: axboe, linux-kernel, linux-block, xen-devel, boris.ostrovsky
On 17/08/18 17:59, Roger Pau Monné wrote:
> On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
>> Persistent grants are used in the Xen's blkfront/blkback drivers to
>> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
>>
>> While this speeds up processing quite a bit there are problems related
>> to persistent grants in some configurations: domains with multiple
>> block devices making use of persistent grants might suffer from a lack
>> of grants if each of the block devices experienced a high I/O load at
>> some time. This is due to the number of persistent grants per device
>> only to be limited by a rather high maximum value, but never being
>> released even in case of longer times without any I/O.
>>
>> This series modifies xen-blkback to unmap any domU page mapped via a
>> persistent grant after a timeout (default: 60 seconds). The timeout
>> is set to its default value again when a persistent grant has been
>> used for an I/O.
>>
>> xen-blkfront is modified to scan every 10 seconds for persistent grants
>> not in use by blkback any more and to remove such grants.
>>
>> The last 3 patches are small cleanups of blkfront and blkback drivers.
>>
>> V3:
>> - patch 1: make timeout parameter static
>
> Konrad if you are OK with this series, could you please send a pull
> request to Jens?
Ping?
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-13 14:01 Juergen Gross
2018-08-17 15:59 ` Roger Pau Monné
@ 2018-08-17 15:59 ` Roger Pau Monné
2018-08-24 13:52 ` Juergen Gross
2018-08-24 13:52 ` Juergen Gross
1 sibling, 2 replies; 9+ messages in thread
From: Roger Pau Monné @ 2018-08-17 15:59 UTC (permalink / raw)
To: Juergen Gross
Cc: linux-kernel, xen-devel, linux-block, konrad.wilk, axboe,
boris.ostrovsky
On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
> Persistent grants are used in the Xen's blkfront/blkback drivers to
> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
>
> While this speeds up processing quite a bit there are problems related
> to persistent grants in some configurations: domains with multiple
> block devices making use of persistent grants might suffer from a lack
> of grants if each of the block devices experienced a high I/O load at
> some time. This is due to the number of persistent grants per device
> only to be limited by a rather high maximum value, but never being
> released even in case of longer times without any I/O.
>
> This series modifies xen-blkback to unmap any domU page mapped via a
> persistent grant after a timeout (default: 60 seconds). The timeout
> is set to its default value again when a persistent grant has been
> used for an I/O.
>
> xen-blkfront is modified to scan every 10 seconds for persistent grants
> not in use by blkback any more and to remove such grants.
>
> The last 3 patches are small cleanups of blkfront and blkback drivers.
>
> V3:
> - patch 1: make timeout parameter static
Konrad if you are OK with this series, could you please send a pull
request to Jens?
Thanks, Roger.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v3 0/5] xen/blk: persistent grant rework
2018-08-13 14:01 Juergen Gross
@ 2018-08-17 15:59 ` Roger Pau Monné
2018-08-17 15:59 ` Roger Pau Monné
1 sibling, 0 replies; 9+ messages in thread
From: Roger Pau Monné @ 2018-08-17 15:59 UTC (permalink / raw)
To: Juergen Gross
Cc: axboe, linux-kernel, linux-block, xen-devel, boris.ostrovsky
On Mon, Aug 13, 2018 at 04:01:09PM +0200, Juergen Gross wrote:
> Persistent grants are used in the Xen's blkfront/blkback drivers to
> avoid mapping/unmapping of I/O buffers in the backend for each I/O.
>
> While this speeds up processing quite a bit there are problems related
> to persistent grants in some configurations: domains with multiple
> block devices making use of persistent grants might suffer from a lack
> of grants if each of the block devices experienced a high I/O load at
> some time. This is due to the number of persistent grants per device
> only to be limited by a rather high maximum value, but never being
> released even in case of longer times without any I/O.
>
> This series modifies xen-blkback to unmap any domU page mapped via a
> persistent grant after a timeout (default: 60 seconds). The timeout
> is set to its default value again when a persistent grant has been
> used for an I/O.
>
> xen-blkfront is modified to scan every 10 seconds for persistent grants
> not in use by blkback any more and to remove such grants.
>
> The last 3 patches are small cleanups of blkfront and blkback drivers.
>
> V3:
> - patch 1: make timeout parameter static
Konrad if you are OK with this series, could you please send a pull
request to Jens?
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v3 0/5] xen/blk: persistent grant rework
@ 2018-08-13 14:01 Juergen Gross
2018-08-17 15:59 ` Roger Pau Monné
2018-08-17 15:59 ` Roger Pau Monné
0 siblings, 2 replies; 9+ messages in thread
From: Juergen Gross @ 2018-08-13 14:01 UTC (permalink / raw)
To: linux-kernel, xen-devel, linux-block
Cc: konrad.wilk, roger.pau, axboe, boris.ostrovsky, Juergen Gross
Persistent grants are used in the Xen's blkfront/blkback drivers to
avoid mapping/unmapping of I/O buffers in the backend for each I/O.
While this speeds up processing quite a bit there are problems related
to persistent grants in some configurations: domains with multiple
block devices making use of persistent grants might suffer from a lack
of grants if each of the block devices experienced a high I/O load at
some time. This is due to the number of persistent grants per device
only to be limited by a rather high maximum value, but never being
released even in case of longer times without any I/O.
This series modifies xen-blkback to unmap any domU page mapped via a
persistent grant after a timeout (default: 60 seconds). The timeout
is set to its default value again when a persistent grant has been
used for an I/O.
xen-blkfront is modified to scan every 10 seconds for persistent grants
not in use by blkback any more and to remove such grants.
The last 3 patches are small cleanups of blkfront and blkback drivers.
V3:
- patch 1: make timeout parameter static
V2:
- patch 1: added new module parameter doc
- patch 1: removed PERSISTENT_GNT_WAS_ACTIVE flag
- patch 2: removed global worker active flag
- added new patch 4
Juergen Gross (5):
xen/blkback: don't keep persistent grants too long
xen/blkfront: cleanup stale persistent grants
xen/blkfront: reorder tests in xlblk_init()
xen/blkback: move persistent grants flags to bool
xen/blkback: remove unused pers_gnts_lock from struct xen_blkif_ring
Documentation/ABI/testing/sysfs-driver-xen-blkback | 10 ++
drivers/block/xen-blkback/blkback.c | 99 ++++++++++---------
drivers/block/xen-blkback/common.h | 14 +--
drivers/block/xen-blkfront.c | 110 ++++++++++++++++++---
4 files changed, 163 insertions(+), 70 deletions(-)
--
2.13.7
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-08-27 16:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 14:01 [PATCH v3 0/5] xen/blk: persistent grant rework Juergen Gross
-- strict thread matches above, loose matches on Subject: below --
2018-08-13 14:01 Juergen Gross
2018-08-17 15:59 ` Roger Pau Monné
2018-08-17 15:59 ` Roger Pau Monné
2018-08-24 13:52 ` Juergen Gross
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-27 16:10 ` Konrad Rzeszutek Wilk
2018-08-24 13:52 ` Juergen Gross
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.