Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1676386
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Paolo Valente <paolo.valente@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split |
| Date | Wed, 28 Jun 2017 07:40:02 +0200 |
| Message-ID | <tXdRM-2J1-9@gated-at.bofh.it> (permalink) |
| References | <tU3lW-25Y-71@gated-at.bofh.it> <tWRRf-4Sk-1@gated-at.bofh.it> <tWZYt-1RV-7@gated-at.bofh.it> <tX3pn-4kt-1@gated-at.bofh.it> <tX3po-4kt-43@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IfTEMSy11ImKuAi5U1I32yeE28/5nEhSv+tGmz4Jc14=; b=IU1fZwuUnHMlFNW2JLgXvCjJAw9SLI1oauIEeDe1fQ5hzaB3XnB3avE42ss9bR9NJY 7zPY9s9q8VV6maMvEYZbr3z6BbF6VI4p2P3FbrPKl2iEHJ/Ko6hfjgzJjSGtcKLFu27Z dGZAW2lqcFsXi0Yl2a4pv2z93W7Ov/rPflRjI= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=IfTEMSy11ImKuAi5U1I32yeE28/5nEhSv+tGmz4Jc14=; b=X5at8whd9KOsobW2tPvIkx5MQOzKfc9wZXBmmgEMnoxfSglm4LgP+ajULszKE96R5j q2KtImooL4gr6d4sWTErvu/JmW8fMk7HEQJMlQTCHnYknnSRcqusOMpSTL8PW8Qouij/ QoyxjFjElwzHI3p+PtzR17wzfhBSZYq0SyadYelaoNuqid0zBLHyGUhlEtK6sZH3ihIw 67R40PKNFKd6OoT12pJkq2qRimGPFbpkA648JB0l8bcz6MxClWyqAGM4wTa6kV1VfS0g VdGzB5T8LdmaXLIOaC4SaatL21Q3neA7WCD5P85WYp3RVw6Wo4Zf3t4sJEjDx3ooq5O1 OBIw== |
| X-Gm-Message-State | AKS2vOyTw0sTZBRFvS3/al0snNpKKJIJf+I2xojcWBfOfbUzpPsN00NR 99oSkBcBbQuTQO/a |
| X-Received | by 10.223.169.145 with SMTP id b17mr5186180wrd.179.1498628348218; Tue, 27 Jun 2017 22:39:08 -0700 (PDT) |
| Content-Type | text/plain; charset=us-ascii |
| MIME-Version | 1.0 (Mac OS X Mail 9.3 \(3124\)) |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailer | Apple Mail (2.3124) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 88 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-block@vger.kernel.org, Linux-Kernal <linux-kernel@vger.kernel.org>, ulf.hansson@linaro.org, broonie@kernel.org |
| X-Original-Date | Wed, 28 Jun 2017 07:39:05 +0200 |
| X-Original-Message-ID | <70E1F6F9-407A-4A43-9FC3-D6EBE2980026@linaro.org> |
| X-Original-References | <20170619114316.2587-1-paolo.valente@linaro.org> <8520D3AF-C161-439F-A7E8-A6B7202DA2D9@linaro.org> <e070788e-8a62-024d-7aac-8f8801722ffe@kernel.dk> <4AFF2E52-DCE4-4DC7-9CB0-849EEED3A9AB@linaro.org> <3b5987e2-fa11-af94-27f4-5760612c0f22@kernel.dk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1676386 |
Show key headers only | View raw
> Il giorno 27 giu 2017, alle ore 20:29, Jens Axboe <axboe@kernel.dk> ha scritto: > > On 06/27/2017 12:27 PM, Paolo Valente wrote: >> >>> Il giorno 27 giu 2017, alle ore 16:41, Jens Axboe <axboe@kernel.dk> ha scritto: >>> >>> On 06/27/2017 12:09 AM, Paolo Valente wrote: >>>> >>>>> Il giorno 19 giu 2017, alle ore 13:43, Paolo Valente <paolo.valente@linaro.org> ha scritto: >>>>> >>>>> This commit fixes a bug triggered by a non-trivial sequence of >>>>> events. These events are briefly described in the next two >>>>> paragraphs. The impatiens, or those who are familiar with queue >>>>> merging and splitting, can jump directly to the last paragraph. >>>>> >>>>> On each I/O-request arrival for a shared bfq_queue, i.e., for a >>>>> bfq_queue that is the result of the merge of two or more bfq_queues, >>>>> BFQ checks whether the shared bfq_queue has become seeky (i.e., if too >>>>> many random I/O requests have arrived for the bfq_queue; if the device >>>>> is non rotational, then random requests must be also small for the >>>>> bfq_queue to be tagged as seeky). If the shared bfq_queue is actually >>>>> detected as seeky, then a split occurs: the bfq I/O context of the >>>>> process that has issued the request is redirected from the shared >>>>> bfq_queue to a new non-shared bfq_queue. As a degenerate case, if the >>>>> shared bfq_queue actually happens to be shared only by one process >>>>> (because of previous splits), then no new bfq_queue is created: the >>>>> state of the shared bfq_queue is just changed from shared to non >>>>> shared. >>>>> >>>>> Regardless of whether a brand new non-shared bfq_queue is created, or >>>>> the pre-existing shared bfq_queue is just turned into a non-shared >>>>> bfq_queue, several parameters of the non-shared bfq_queue are set >>>>> (restored) to the original values they had when the bfq_queue >>>>> associated with the bfq I/O context of the process (that has just >>>>> issued an I/O request) was merged with the shared bfq_queue. One of >>>>> these parameters is the weight-raising state. >>>>> >>>>> If, on the split of a shared bfq_queue, >>>>> 1) a pre-existing shared bfq_queue is turned into a non-shared >>>>> bfq_queue; >>>>> 2) the previously shared bfq_queue happens to be busy; >>>>> 3) the weight-raising state of the previously shared bfq_queue happens >>>>> to change; >>>>> the number of weight-raised busy queues changes. The field >>>>> wr_busy_queues must then be updated accordingly, but such an update >>>>> was missing. This commit adds the missing update. >>>>> >>>> >>>> Hi Jens, >>>> any idea of the possible fate of this fix? >>> >>> I sort of missed this one. It looks trivial enough for 4.12, or we >>> can defer until 4.13. What do you think? >>> >> >> It should actually be something trivial, and hopefully correct, >> because a further throughput improvement (for BFQ), which depends on >> this fix, is now working properly, and we didn't see any regression so >> far. In addition, since this improvement is virtually ready for >> submission, further steps may be probably easier if this fix gets in >> sooner (whatever the luck of the improvement will be). > > OK, let's queue it up for 4.13 then. > My arguments was in favor of 4.12 actually. Maybe you did mean 4.12 here? Thanks, Paolo > -- > Jens Axboe
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Paolo Valente <paolo.valente@linaro.org> - 2017-06-27 08:10 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Jens Axboe <axboe@kernel.dk> - 2017-06-27 16:50 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Paolo Valente <paolo.valente@linaro.org> - 2017-06-27 20:30 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Jens Axboe <axboe@kernel.dk> - 2017-06-27 20:30 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Paolo Valente <paolo.valente@linaro.org> - 2017-06-28 07:40 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Jens Axboe <axboe@kernel.dk> - 2017-06-28 14:50 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Paolo Valente <paolo.valente@linaro.org> - 2017-06-28 15:50 +0200
Re: [PATCH BUGFIX V2] block, bfq: update wr_busy_queues if needed on a queue split Jens Axboe <axboe@kernel.dk> - 2017-06-28 16:00 +0200
csiph-web