Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2073263imm; Wed, 16 May 2018 07:29:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpKl2DY6N9LFFhOpi3KCOk0OsfRk2i8hFrwpXQWIOUhZxDBf+HrXyYPtdonoBTOcM3rPdSE X-Received: by 2002:a17:902:5597:: with SMTP id g23-v6mr1165501pli.347.1526480982605; Wed, 16 May 2018 07:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526480982; cv=none; d=google.com; s=arc-20160816; b=KlngmjdDyH2RNJgpRpVvJg304XVIVCnQ3APkkp/jp4Z44Dl1PX/lrzUIGV869d2g39 pp2zWcOwzzAjmdMvaPi+z4O/lXBg0NH156m+0E81KGGJGcQ0vMt2Y6JPOCv7BW3XTUNB xMGK/sm7VWzoDaxdkHkArXBqw7BVLMOa/KFR5NKYGU1ysI8nEfQtZbisz0mfnjdNS+eL 7zqIZ0lVCCuZdTp2IB3TUoT0q64bMFMveVUB+mTDuj5AjFUrQVxnFNLKM9I3H4VkQxRD 3oyzuw78MTJsvz85QScExzSqCbF4PwobevvU9ZlfsiLgYbNqvAIPvp8Ebg7caPc8WfUq KfZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=yVsnqSE6GVUGN43fcWMVDmgrr+9ArVTa+sY+UZHbREc=; b=MbvVGfKaWDDfn9MxkM9x/dcqbEQGUiAI1xOMwFtbgc65rLL1XXhC2Uzmb9MxCXKRHd difbnoT6b9FxqP7F8h8xRxUPFA2eoDVb0l7SJK38oAUyecY7Ukc7EshxM0Dh02OYuqQD o+7v/akemgsVlp7j9qbh9tfgFeYKl73ZI+PfN8DLpgYSVyrQFE2fpd6zM06nSJT1QYHN PiIKBjWsK4AdLFaXOlnRKIAAy9xNF1jX2oENCO+zv7+tWeD+qpVUTEEBDzqPMGrHzeyG T30J15w3O2cGQZijKOqKFGVtrm2BuqqWfdzkHeDsguKgj5u8RG8Dbd/LIT/BJIiJ3no9 +sVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V1AaHrb1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g15-v6si2182587pgu.112.2018.05.16.07.29.28; Wed, 16 May 2018 07:29:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V1AaHrb1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbeEPO3K (ORCPT + 99 others); Wed, 16 May 2018 10:29:10 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:55451 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458AbeEPO3I (ORCPT ); Wed, 16 May 2018 10:29:08 -0400 Received: by mail-it0-f44.google.com with SMTP id 144-v6so2306705iti.5 for ; Wed, 16 May 2018 07:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yVsnqSE6GVUGN43fcWMVDmgrr+9ArVTa+sY+UZHbREc=; b=V1AaHrb1kwNXl9vGmHx2xVLrih2O3SDVFSSIgwvNwbSl31rGT6iajvD8v+WBGaP/kB 1ojROxtk7akB/D0k/rsTWINJ6xJJWyyCM3+oQiQVjvRr+3mnyxJWXlsow/sIFUyiBemD NpoI4JfIIJfEf2JzP5p0+4QGXy8l2hiDBno0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yVsnqSE6GVUGN43fcWMVDmgrr+9ArVTa+sY+UZHbREc=; b=Wns3R4AA4SmsB/9m7gBZPCfRvrKPSLx46RYaw78HBC+6p2YiHPUFsOapvHojVwi2VR teOb2l9NYlfSYHUIH1Zxk5gSLFBKwdWVRT9Ifi+HgvhvKrM4/rkLfIflbqomIqRVl3t4 1CrcRo0fkp1wicO1awtQF9WxeFFtGX92taL8wT/ku4e+slqrvmvlb0/UPaHjPZa/eV+H 4Ppcd3AqXhVNEePAqws++eEpApc/xT4z9cl6VJ872PL7L8F5se1TQbfYc92T5SIsDSf4 MIfdcqShWa41VZ2zIaDHq6X70aid+aS56SIoDaX/4L15fpmLEsk8vDoWK96K5SzM05gL aBIQ== X-Gm-Message-State: ALKqPweRssmTKcJCUBJmTOeCJBUsrIZMBz6Pe1nJcTc/BHSoBeYozsYO fsG0andYcGgYknjKoy8ZdIJB89dBjlj89M9Rw6cqWw== X-Received: by 2002:a6b:8b58:: with SMTP id n85-v6mr1225000iod.109.1526480947719; Wed, 16 May 2018 07:29:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:4c95:0:0:0:0:0 with HTTP; Wed, 16 May 2018 07:29:06 -0700 (PDT) In-Reply-To: <3e2c96fa-273e-192f-1caf-788de7659592@ti.com> References: <0ea1d2bf-fa0f-4b3d-556a-5dca5afbf2a9@ti.com> <3e2c96fa-273e-192f-1caf-788de7659592@ti.com> From: Linus Walleij Date: Wed, 16 May 2018 16:29:06 +0200 Message-ID: Subject: Re: MMC performance degradation due to too many requests To: Faiz Abbas , Will Newton , ext Tony Lindgren Cc: "linux-kernel@vger.kernel.org" , linux-omap , linux-mmc , Ulf Hansson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 5:11 PM, Faiz Abbas wrote: > On Tuesday 15 May 2018 06:09 PM, Linus Walleij wrote: >> On Mon, May 14, 2018 at 1:30 PM, Faiz Abbas wrote: >> >>> Also, I see many times the number of interrupts for mmc1 in 4.14. >> (...) >>> I also printed out the size of the DMA transfers in the omap_hsmmc >>> driver during the dd command. I see that the maximum size of the dma >>> transfer has decreased from 1 MB to 256kB between 4.13 and 4.14. >> >> This seems like my fault for removing the bounce buffer. >> (The name bounce buffer is misleading, I suspect the right >> term for what is was doing was "merge buffer" or something, >> coalescing physically consecutive requests.) >> >> commit de3ee99b097dd51938276e3af388cd4ad0f2750a >> "mmc: Delete bounce buffer handling" >> should be the culprit. > > I don't think so. I checked out to the commit before that and see that > the interrupts are still too high. OK phew then I'm safe :) >> The bounce buffer only makes any performance impact if the >> host DMA controller is unable to handle scatter-gather lists >> so the number of segments is set down to 1. >> >> Can you verifty that: >> - mmc->max_segs == 1 > > No. It is 64 in v4.14. It was 1024 in v4.13. This smells like: commit 9442400486a1ec28915e9ab31517a5665ed35705 "mmc: omap_hsmmc: Reduce max_segs for reliability" Can you test reverting that and notify Will Newton if this commit is causing performance regressions. Yours, Linus Walleij