Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4538676ybc; Fri, 15 Nov 2019 06:19:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyWAwLQmCy2Lw8YrJDENgpItxlhAQoTjFXW0iuzkB4VCsvH2ImhZ049P3CfTr/RGraa47UW X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr1288388ejb.252.1573827588037; Fri, 15 Nov 2019 06:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573827588; cv=none; d=google.com; s=arc-20160816; b=noenhCGps3UpwnZZonh6fkc2ZcGetwLTjJbQ8NfVO+r22CM6l8g1aqRGfWW/FmyhsL rcVoDfEgd9/AQGlvQ0s3KmMjCDewoxk5qFmPmkbMbDmb+RwNJPysHekCoolP4jHep6lJ dIMgcIPWQXRzoYZPK6/CcbcpZ/RUvOArY+kJ29xLkiK8KAGcj2EnjVT+sqsO99SXXYQB 5Fqg3ofBExVKo4WkYDj/E+Du1g1Wqpzqghrx51F5hh4WduQL0+uaDrCGm12Efq+8SUjM 0eN+sL9ongnlIZKOrTHnFju0kn0wy+VSvktmJd4H/phFzmBsXwbdeLg+UzvzlFIxMWzU Tnyg== 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=z2e5+UW0tK//TE2S4dwCVwmhkXMhlbynSTZrZr8XjC8=; b=QMRBtKz882rN7PhX6i1K7BcBJAFL5sRFYjSesS219r14YpkCR3Rao2xW7OgBvhJY/a q/SIGVPPsxVK2slyEyk14sDS6jqE3EWUgwgTdm/86+gaIavIP/uhvcIpHaDnq1Lp7Um1 RGasogQOD05XvFnAkJS1FTM4mHYnPBCOhVq3x4oSBMAQ2al+4yMzTkSI5zR9vd1Ha3Se yzDAEmXNqyw0cUbLD62Iw+irQymhVW31plyw7/ZrEswQ5hZNFs5jxrWi8I6gDcTYABbt VrUd6JW0bsM27kOgrL1MfjdVfjrF9ImiZdckkDhyZ/0C/rc1UWuFdzKshoQYAgdZSpOP t7IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a9gXLVhn; 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 d18si5499505ejr.423.2019.11.15.06.19.22; Fri, 15 Nov 2019 06:19:48 -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=a9gXLVhn; 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 S1727612AbfKOOQd (ORCPT + 99 others); Fri, 15 Nov 2019 09:16:33 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:47676 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727420AbfKOOQc (ORCPT ); Fri, 15 Nov 2019 09:16:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573827392; 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=z2e5+UW0tK//TE2S4dwCVwmhkXMhlbynSTZrZr8XjC8=; b=a9gXLVhnm/99H37z9pPRS5L0tAtOURTcvhOz7+5GHvYkT71OWeFoKpO1i1bEhJ9GeCorpT Idr8jVnJ6uWGo9PJR7uVMm7bLhLAu/bPE3KUljcpFa9AnHb3+VT3uT97UnYZ5VON5k8jvc sJETnONwOu5D06rW/biqUEim06TCUTg= 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-396-J0vUecp5NuK4wnoKV_yKsw-1; Fri, 15 Nov 2019 09:16:29 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40F3E102C86E; Fri, 15 Nov 2019 14:16:27 +0000 (UTC) Received: from ming.t460p (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B5C157BF99; Fri, 15 Nov 2019 14:16:15 +0000 (UTC) Date: Fri, 15 Nov 2019 22:16:10 +0800 From: Ming Lei To: Peter Zijlstra Cc: 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 , Tejun Heo Subject: Re: single aio thread is migrated crazily by scheduler Message-ID: <20191115141610.GA3283@ming.t460p> References: <20191114113153.GB4213@ming.t460p> <20191114131434.GQ4114@hirez.programming.kicks-ass.net> <20191115000925.GB4847@ming.t460p> MIME-Version: 1.0 In-Reply-To: <20191115000925.GB4847@ming.t460p> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: J0vUecp5NuK4wnoKV_yKsw-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 Fri, Nov 15, 2019 at 08:09:25AM +0800, Ming Lei wrote: > On Thu, Nov 14, 2019 at 02:14:34PM +0100, Peter Zijlstra wrote: > > On Thu, Nov 14, 2019 at 07:31:53PM +0800, Ming Lei wrote: > > > Hi Guys, > > >=20 > > > It is found that single AIO thread is migrated crazely by scheduler, = and > > > the migrate period can be < 10ms. Follows the test a): > >=20 > > What does crazy mean? Does it cycle through the L3 mask? > >=20 >=20 > The single thread AIO thread is migrated in several milliseconds once. Today I found the migrate rate of single fio IO thread can reach 11~12K/sec when I run './xfs_complete 512' on another real machine (single numa node, 8 cores). And the number is very close to IOPS of the test, that said the fio IO thread can be migrated once just when completing one IO on the scsi_debug device. Thanks, Ming