Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1249450 > unrolled thread
| Started by | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| First post | 2015-10-17 22:40 +0200 |
| Last post | 2015-10-18 06:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] tty: Use unbound workqueue for all input workers Peter Hurley <peter@hurleysoftware.com> - 2015-10-17 22:40 +0200
Re: [PATCH 2/2] tty: Use unbound workqueue for all input workers Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-10-18 06:40 +0200
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Date | 2015-10-17 22:40 +0200 |
| Subject | [PATCH 2/2] tty: Use unbound workqueue for all input workers |
| Message-ID | <qkGqK-8ts-11@gated-at.bofh.it> |
The commonly accepted wisdom that scheduling work on the same cpu that handled interrupt i/o benefits from cache-locality is only true if the cpu is idle (since bound kworkers are often the highest vruntime and thus the lowest priority). Measurements of scheduling via the unbound queue show lowered worst-case latency responses of up to 5x over bound workqueue, without increase in average latency or throughput. pty i/o test measurements show >3x (!) reduced total running time; tests previously taking ~8s now complete in <2.5s. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> --- drivers/tty/tty_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 7cc16db..9a479e6 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c @@ -403,7 +403,7 @@ void tty_schedule_flip(struct tty_port *port) * flush_to_ldisc() sees buffer data. */ smp_store_release(&buf->tail->commit, buf->tail->used); - schedule_work(&buf->work); + queue_work(system_unbound_wq, &buf->work); } EXPORT_SYMBOL(tty_schedule_flip); -- 2.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2015-10-18 06:40 +0200 |
| Message-ID | <qkNVf-2KP-9@gated-at.bofh.it> |
| In reply to | #1249450 |
On Sat, Oct 17, 2015 at 04:36:24PM -0400, Peter Hurley wrote: > The commonly accepted wisdom that scheduling work on the same cpu > that handled interrupt i/o benefits from cache-locality is only > true if the cpu is idle (since bound kworkers are often the highest > vruntime and thus the lowest priority). > > Measurements of scheduling via the unbound queue show lowered > worst-case latency responses of up to 5x over bound workqueue, without > increase in average latency or throughput. > > pty i/o test measurements show >3x (!) reduced total running time; tests > previously taking ~8s now complete in <2.5s. Wow, nice job with this, that's unexpected. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web