From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753433AbeEOPJd (ORCPT ); Tue, 15 May 2018 11:09:33 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:31425 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752606AbeEOPJb (ORCPT ); Tue, 15 May 2018 11:09:31 -0400 Subject: Re: MMC performance degradation due to too many requests To: Linus Walleij CC: "linux-kernel@vger.kernel.org" , linux-omap , linux-mmc , Ulf Hansson References: <0ea1d2bf-fa0f-4b3d-556a-5dca5afbf2a9@ti.com> From: Faiz Abbas Message-ID: <3e2c96fa-273e-192f-1caf-788de7659592@ti.com> Date: Tue, 15 May 2018 20:41:02 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, 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. > > 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. v4.14 https://pastebin.ubuntu.com/p/4wXB2jb6zw/ v4.13 https://pastebin.ubuntu.com/p/dpd6kb4YJY/ > - You were previously enabling CONFIG_MMC_BLOCK_BOUNCE Yes. Regards, Faiz