Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp275579ybc; Tue, 19 Nov 2019 00:56:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzsgnWicbiqZF2equjwCOeyQeTTOGJWlv08BXNTyl4sG6zxaxpb5YRVgIb2cc0wDfxBI9Rb X-Received: by 2002:a17:907:206d:: with SMTP id qp13mr32409066ejb.92.1574153819430; Tue, 19 Nov 2019 00:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574153819; cv=none; d=google.com; s=arc-20160816; b=amUXklt9dydtlsAmdsUA618iBZAar3pUtt8SCul+vtAaPQyL9qrYElXM4Mc8eEAjpK eX5peMuUOo2VrYJRAAYKjVmUwoBq5cwCBqjllPdvNZoeqvceNcTiGetCxXO4y5xekeWE y9zvNoCt64Ld5Vi8M4xj6vzOpbpXe0XTTwnpefSPYL2dOIsNvVohoqsEZeASWwPCEZrf eeq35CPIFFxA0Mz+JhbTlJG0i5NwSGj6oYz9B9GvEIydq4jIb2HtFNT+CP1wyLpOBLRP PK2wtA04HL+Y4m7owIwZiweShEfY1XS5bk+GGBHccUZPz4yup8FWETbNixI87vXP5Di9 +1rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e8OB6fCB1y6zlTa1uYexcpvgkBoKI6v48iGviwUiQTo=; b=HJq2bOLXMqGvj0PZt1nLf7sxFcrqtlIVCbOaWHDjdbX1tHbMgRbi/51+S1F7qNTbuo 2u0NxRIVZzXALu37MSBveeylFEdovvqWJ3SQ/wsYE0fjpOLh1Jk8lRQ70I/EndA6cIlc kZqXdaBIFjRIgzxErhmvfas682ssY+4idbZ58ia/liTRKdStf4ULzEB+mJX7Lg2WWZKX BvH5r2IJYhGBD565lokRv99LtN/1EYlMW9YYCLnMnd5w+VtcPPyumn9nf7c6jnz4YZFI GxHwywM650NmoihMdgFJI2d79cb5cS7T1d5h84On3Obb1HM5c7yQWAoy2PiZ1I1d9A+H VlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CxR33jRj; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k43si14987601edb.150.2019.11.19.00.56.33; Tue, 19 Nov 2019 00:56:59 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=CxR33jRj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726840AbfKSIzW (ORCPT + 99 others); Tue, 19 Nov 2019 03:55:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:22350 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726722AbfKSIzV (ORCPT ); Tue, 19 Nov 2019 03:55:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574153720; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e8OB6fCB1y6zlTa1uYexcpvgkBoKI6v48iGviwUiQTo=; b=CxR33jRjXFZR3YL/3fECcI30ZotdW68OFRMbJI+tLPk7j59FKzBhRGPoY13KTnKopD1yKB SsEa9wAIJkoMu9JGG9/cJLudHHLH+BfGdsNnxUc0vB6D8K0vbRxSgU8VK6ymgzG4qxOQtn xWeo6CfPhRYr9Lmedr6xgh/K5K4oPec= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-335-imTtDVtfOrmhV9elyPYRGw-1; Tue, 19 Nov 2019 03:55:17 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 48BB1DB61; Tue, 19 Nov 2019 08:55:15 +0000 (UTC) Received: from ming.t460p (ovpn-8-32.pek2.redhat.com [10.72.8.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 532532AF82; Tue, 19 Nov 2019 08:54:56 +0000 (UTC) Date: Tue, 19 Nov 2019 16:54:52 +0800 From: Ming Lei To: Dave Chinner Cc: Srikar Dronamraju , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Moyer , Dave Chinner , Eric Sandeen , Christoph Hellwig , Jens Axboe , Ingo Molnar , Peter Zijlstra , Tejun Heo Subject: Re: single aio thread is migrated crazily by scheduler Message-ID: <20191119085452.GA8252@ming.t460p> References: <20191114113153.GB4213@ming.t460p> <20191114235415.GL4614@dread.disaster.area> <20191115010824.GC4847@ming.t460p> <20191115045634.GN4614@dread.disaster.area> <20191115070843.GA24246@ming.t460p> <20191115234005.GO4614@dread.disaster.area> <20191118162633.GC32306@linux.vnet.ibm.com> <20191118211804.GW4614@dread.disaster.area> MIME-Version: 1.0 In-Reply-To: <20191118211804.GW4614@dread.disaster.area> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: imTtDVtfOrmhV9elyPYRGw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 19, 2019 at 08:18:04AM +1100, Dave Chinner wrote: > On Mon, Nov 18, 2019 at 09:56:33PM +0530, Srikar Dronamraju wrote: > > * Dave Chinner [2019-11-16 10:40:05]: > >=20 > > > On Fri, Nov 15, 2019 at 03:08:43PM +0800, Ming Lei wrote: > > > > On Fri, Nov 15, 2019 at 03:56:34PM +1100, Dave Chinner wrote: > > > > > On Fri, Nov 15, 2019 at 09:08:24AM +0800, Ming Lei wrote: > > > > I can reproduce the issue with 4k block size on another RH system, = and > > > > the login info of that system has been shared to you in RH BZ. > > > >=20 > > > > 1) > > >=20 > > > Almost all the fio task migrations are coming from migration/X > > > kernel threads. i.e it's the scheduler active balancing that is > > > causing the fio thread to bounce around. > > >=20 > >=20 > > Can we try with the below patch. >=20 > That makes things much, much worse. Yeah, it is same with my test result, basically the fio io thread migration counts is increased from 5k to 8k. Thanks, Ming