Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3264179imm; Fri, 24 Aug 2018 13:42:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYejx/1QfUA5gTb59tKRY6lCp0f58NqJ+WUCTkqYs1VDLhalvn7HJS5Q7DSjirpU4yiFAqJ X-Received: by 2002:a62:1c7:: with SMTP id 190-v6mr3485500pfb.1.1535143359576; Fri, 24 Aug 2018 13:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535143359; cv=none; d=google.com; s=arc-20160816; b=LxpqgaTDvC3eQ2FilXHBz8/TPvAoBgOhk+ALOAKYzSsLFL11uidbsv+uAhmO9N5Dc+ 3YhIzP/WPRtf7nTqLQ7DVW3fA5//8VJHMfVbvdntsxsm7GbewQxbZnKYCemSJARCl/+A bCEzi+a55W6dKRihp6MFsaXMnwu8tFPkK5GTlNsMld2YC7LBqnDTK48ZlhzlZH7UNsYR ji7MuW10v31pkb+WCGQB9vGLzngn57N6vfoKff7J0Zfs6rPGLPZUr56AgOrOI1xOzoUQ Oc/qnefLKCrAQr1PJqpn5GgPjhKoQEuT4oYS1IhwmLDPhKI7G+BexUgIDUegB+Qz8hx4 uQSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=BMgAfttewyFfgkwQ2QRWUOGzNBUh8dZNVwn2QkNi5Os=; b=GMvHsFWpBG0U/L9xshivGTjHqRfOjWvIoIuTh1XmfvSP4RXKGFGPNr6XTABcz0bduJ 2b915Z/wU/oqOubrqISrmXdrm3az00FHPdURCjQqCvps7F7Nb5cm+1broSKCbyezEwLN /ZkalL+HHsLHXAOTdtKghSgqMMqjzGbXPVH8SLV8y7aYxuFnE5AYoHmCH8Yf2DVz9wxw 4J37VQ/tswnQ7Is16LzvdbNUm5NqEvLkofk6D2hsBbhsaT1IDB9GtDoMPM/pmVQhA9Vg 0W/OcwJB8HGwa76khStOWY4xAzn3Tj1YxSzgHzGwdpOSaE0rTn/m03Ei+p9H7ZJ1g2T3 XYLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=uYsR37Db; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62-v6si7518311pge.536.2018.08.24.13.42.24; Fri, 24 Aug 2018 13:42:39 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=uYsR37Db; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727342AbeHYARY (ORCPT + 99 others); Fri, 24 Aug 2018 20:17:24 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:32883 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbeHYARY (ORCPT ); Fri, 24 Aug 2018 20:17:24 -0400 Received: by mail-io0-f195.google.com with SMTP id r196-v6so8186976iod.0 for ; Fri, 24 Aug 2018 13:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BMgAfttewyFfgkwQ2QRWUOGzNBUh8dZNVwn2QkNi5Os=; b=uYsR37DbSSrbcw+YAdHwK/6Ww68+Z+kTXVklxFK50ER7vU0MSu34Mdr+kti5+yucvY wfOY2xtifwYxMzMABVLTJIdzHreZ9uH7fcLMxAmRtzW/FWMVi+m650zqMnY92R2qp+Wh p0UMQ60l1OpKpK8ekxisSAL5I2x5fiXoPS8/z97WPxLmoipEx04+WgGvapvwwcmDBNfk 5v0djhyU9rBHjpQGbXa4xVkQg0HiFSaIVjXJGBfTI5pAJP6QdnFa43fc0Ix0Rl/tKlbG JfV9SzgSEDkQicoaNkp6itMrFKG4ZXBNquS3aWUH+RGno98siWAyiD0tZyLP2mSrqA2O IQXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BMgAfttewyFfgkwQ2QRWUOGzNBUh8dZNVwn2QkNi5Os=; b=rRU8v45yR4EeHgEOkpWLCDyGiwdY4sT2sNQiVYvpe8fN7ouvq0p1lvus7L3Zx+KCcp 0pERh85bQbzwtfFKtGTw3ApqWLykFb96recp8owycC9Ut8ynqAESRe9YUlOiRDG9H+BC NU3Di/BIKM2J6tx5YAtMXOu6urRNId8HpUd5rG1r42W4mey51NSuuGLwle4skqlMwkaX 8xLtLSalRpkCqIp8AcgSpRho8uCXphdKcgfc2/4Jug7QCLkQxJVEJpOXoTu2XX+ISdXE m7TNHsKZCShJOlYEG3gwCfShIROuhqHj8xNsQ2dOXidXY5oe9m0u2gp8Lt9pf0yP0KMU ACeQ== X-Gm-Message-State: APzg51DFL6kbJtqpANQCMVSuLq9MNoekh4Ff0BgIVSpVZ7fRKBhFYrQH xHdfcsYZN10/z0SOq6pKc07myNOCTwg= X-Received: by 2002:a5e:860d:: with SMTP id z13-v6mr2670099ioj.28.1535143269851; Fri, 24 Aug 2018 13:41:09 -0700 (PDT) Received: from [192.168.1.212] (107.191.0.22.static.utbb.net. [107.191.0.22]) by smtp.gmail.com with ESMTPSA id p13-v6sm1073762itp.3.2018.08.24.13.41.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 13:41:08 -0700 (PDT) Subject: Re: [PATCH] blk-wbt: get back the missed wakeup from __wbt_done To: Anchal Agarwal Cc: fllinden@amazon.com, Jianchao Wang , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <1535029718-17259-1-git-send-email-jianchao.w.wang@oracle.com> <20180823210144.GB5624@kaos-source-ops-60001.pdx1.amazon.com> <3eaa20ce-0599-c405-d979-87d91ea331d2@kernel.dk> <20180824181223.GA9049@kaos-source-ops-60001.pdx1.amazon.com> <677c8648-63fd-601c-b906-40a8502f9782@kernel.dk> <20180824203305.GA4690@kaos-source-ops-60001.pdx1.amazon.com> From: Jens Axboe Message-ID: Date: Fri, 24 Aug 2018 14:41:07 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180824203305.GA4690@kaos-source-ops-60001.pdx1.amazon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/24/18 2:33 PM, Anchal Agarwal wrote: > On Fri, Aug 24, 2018 at 12:50:44PM -0600, Jens Axboe wrote: >> On 8/24/18 12:12 PM, Anchal Agarwal wrote: >>> That's totally fair. As compared to before the patch it was way too high >>> and my test case wasn't even running due to the thunderign herd issues and >>> queue re-ordering. Anyways as I also mentioned before 10 times >>> contention is not too bad since its not really affecting much the number of >>> files read in my applciation. Also, you are right waking up N tasks seems >>> plausible. >> >> OK, I'm going to take that as a positive response. I'm going to propose >> the last patch as the final addition in this round, since it does fix a >> gap in the previous. And I do think that we need to wake as many tasks >> as can make progress, otherwise we're deliberately running the device at >> a lower load than we should. >> >>> My application is somewhat similar to database workload. It does uses fsync >>> internally also. So what it does is it creates files of random sizes with >>> random contents. It stores the hash of those files in memory. During the >>> test it reads those files back from storage and checks their hashes. >> >> How many tasks are running for your test? >> >> -- >> Jens Axboe >> >> > > So there are 128 Concurrent reads/writes happening. Max files written before > reads start is 16384 and each file is of size 512KB. Does that answer your > question? Yes it does, thanks. That's not a crazy amount of tasks or threads. > BTW, I still have to test the last patch you send but by looking at the patch > I assumed it will work anyways! Thanks for the vote of confidence, I'd appreciate if you would give it a whirl. Your workload seems nastier than what I test with, so would be great to have someone else test it too. -- Jens Axboe