Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756206AbdDPIOg (ORCPT ); Sun, 16 Apr 2017 04:14:36 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:57158 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755625AbdDPIO2 (ORCPT ); Sun, 16 Apr 2017 04:14:28 -0400 Date: Sun, 16 Apr 2017 10:14:12 +0200 From: Heinz Diehl To: linux-kernel@vger.kernel.org Cc: Jens Axboe , Tejun Heo , Fabio Checconi , Arianna Avanzini , linux-block@vger.kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, broonie@kernel.org, Paolo Valente Subject: Re: [PATCH V3 00/16] Introduce the BFQ I/O scheduler Message-ID: <20170416081412.GA1966@fritha.org> References: <20170411134315.44135-1-paolo.valente@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170411134315.44135-1-paolo.valente@linaro.org> X-Accept-Language: no,dk,se,en,de Organization: private site OpenPGP: id=60F4A92C; url=http://www.fritha.org/htd.asc; preference=signencrypt User-Agent: Mutt/1.8.1+3 (39bf12dccf0c) (2017-04-11) X-Provags-ID: V03:K0:JnpNlfC4UO9Brk1ev3CsyM7oo8zHTOUxxaWCOt6gJeh2sc2G0Ih tsfORjEQ++1eMIVjODfgDFqnBq2x2BWGv+Ko12pbFiN1s/l7gwVcyDiBjAeJFfKYHet+r14 YuZxo0RY/vOkRfLkfdyNl8UnopJifvas9vOEtSqoOIlmN03nNo4MRSboqYVVu8NLorBo3U3 yxol9TY5mMnGMEKqwLz2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:RxE8eIdPblY=:Sxfob1DkoqsbHAV8yJmg3e y40shP6MjFgJC0dFwqs8QZPnPoAmPLm2fXoxWJyVbgjaULUpWYyFvOtnMo1kU35jnM/IP2+FD 4w0AqSq7CyCCDAPwE4eWFQ+763/lY607JeHwSxArJ1K957AC1VHv/P65dltu0H2qiiXZuHMVt RaEW44hRT15LHNYWFD3BmcSv1DkmdL/NoTbPh0yaQJkmNUanF0HHgqFudeISh0MHOiU1xxKhG 61j2KaOMQScAi9MCe8lf5FCpcoQ1hKs1+wOgoVDN7ZRKdfw+EMhjqy97ozRvKSg1b1Z2fI9xC c8l+e5QdxPQ5RwRYO2k9gGS6Sy+LZv41C8EmkhdYryH4Z4Xa+XO8r3uR4bHtlLHYODcUoWVh1 BSXJmw9ZfStdg2QYKBv0dRkHOB1ldJV+AtCqRR3hKYL67osvENqqORqL3+TlRAS373fCYVq/I n0PPwroWZs5YKZ06j5zC0SKSjqlt3Z3DBXWADyfW1y2+C3WImtHe4gQRKgrFfZVa5FeyI5XV1 ELxyjmoqhvZBkcM7oid5QUi2kwcYTtGqe9m6aqe/90/RvyhbZuc0RCIXfOQSflQj7/a7lk3Ru nb9b6ON8UT/yTcyaNvxmp7Dn1/zBU+l9h9+ravjpqXigIfWBH2aEaHHe532WwHdE3pS39MXnV F77K1mCBQxOPWStxXcrhhGCa3GKpMe3h95Md19Tq0+bhHXg7EfRo3WyKpL0VPAPO45S0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2284 Lines: 49 On 11.04.2017, Paolo Valente wrote: > new patch series, addressing (both) issues raised by Bart [1]. I'm doing a lot of automatic video transcoding in order to get my collection of homemade videos down to an acceptable size (mainly landscapes and boats all over the Norwegian west coast, taken with an old cam that only produces uncompressed files). This process involves heavy permanent writing to disk, often over a period of 10 min and more. When this happens, the whole system is kind of unresponsive. I'm running Fedora 25, but with a self-customised kernel that is fully low-latency, and the machine is a quadcore Intel Xeon which should have enough power (Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz). Using plain blk-mq, the system is very sluggish when there is heavy disk writing, and it can take up to several minutes (up to the point where the disk writing actually finishes) to start programs like gimp or Libreoffice. In fact, when I click on the "applications" button within XFCE, it can take a long time before the window even opens. I played with deadline-mq too, and the situation remains the same unless I do some heavy tuning like this: echo "mq-deadline" > /sys/block/nvme0n1/queue/scheduler echo "1" > /sys/block/nvme0n1/queue/iosched/fifo_batch echo "4" > /sys/block/nvme0n1/queue/iosched/writes_starved echo "100" > /sys/block/nvme0n1/queue/iosched/read_expire echo "2000" > /sys/block/nvme0n1/queue/iosched/write_expire With deadline-mq tuned like this, overall responsiveness is a little bit better, but not nearly as good as when using bfq. With plain bfq, no tuning is needed. The system is no longer sluggish. Any program starts within seconds, and all is very much responsive. Max throughput isn't important to me, the nvme "harddisk" is fast enough that some MB/s more or less do not really matter. [root@chiara ~]# lspci -v | grep -i nvme 01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 (rev 01) (prog-if 02 [NVM Express]) Kernel driver in use: nvme Kernel modules: nvme As an end-user with no relevant programming skills to be able to contribute, I would wish that developers would combine their forces and help Paolo to get bfq into the kernel and to make bfq even better. Thanks, Heinz