Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp578631pxh; Wed, 10 Nov 2021 06:20:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJy72ZB7tMqBfNvF7F/9rUXXN+JVbq9rkl4FI2SY4ksael3VnSYQuROTwzGgQXUQn51kH7g8 X-Received: by 2002:a17:906:17d5:: with SMTP id u21mr2886eje.16.1636554046520; Wed, 10 Nov 2021 06:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636554046; cv=none; d=google.com; s=arc-20160816; b=M0XibBgiAJ9M6WFXXBDREnHHLAA+LDLGTXMRhUoUvD5SZURvkmCOvElquh3r/4ebD8 lOBJU/RCjQ2JkljXBy46JG3Uv8RPnk/QmUJOyvthke+gK+AWI5NrJa9nfzDybdzdLGJ3 J6VENmd3jsseUWepMqc3K/WySDE/J6HXQRSBl+8JlHFcuKleqZorEPw4D12URd/O5guR iKMg4XyTMWInkcmQFYWHAxqwXA5n4ToypPv/3oHII8g0IzI/Nu4bf6p5CsUxCh5utQBW rAHnaVV9vBTEdgkHD2tfniJ/6ssaTYD4MAB4Bp5igqGHi/p5qs2zFzQ2DfP6QuaeyRHr 613g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OI7XzQR/AItkA9UXractExmowE/uf8KHxKzx9i9f84E=; b=NAuUM8tRqUvfSeF5e3YZ/eaM6vhjKighTYYrf/8DnNY5wBYeS7P0VKDXWyyYQg7VDv Hn7V9dRFRlSmiYeY61PDfKZk9ZwdmuDayT9pz9oTn/ffScNOsK8+xErKO4BiD9Qdunw1 K5udeRhD64XucT+aUIEZHvnSkNqVUqEJVRxxLjZEnC6gswNhLQmW2hUqCBoy/PL/Rzo2 lDTAef5IDpcfGPHpQmAKJ/qaMLAckys1yVPrZpCZj+5GscSRr2CGhmSLxPpJuaXPhYEy 9VT4x6D6EPbwoswlVWAriYY3UnllJvmKgJU1Tj3hnBNGJP5JdRKHPddp1+rspryTq7cq 2fKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W9sj3aA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz8si53861ejc.182.2021.11.10.06.20.21; Wed, 10 Nov 2021 06:20:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=W9sj3aA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232057AbhKJOUq (ORCPT + 99 others); Wed, 10 Nov 2021 09:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbhKJOUp (ORCPT ); Wed, 10 Nov 2021 09:20:45 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9EEFC061764 for ; Wed, 10 Nov 2021 06:17:57 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id o17so2230442qtk.1 for ; Wed, 10 Nov 2021 06:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OI7XzQR/AItkA9UXractExmowE/uf8KHxKzx9i9f84E=; b=W9sj3aA3V6wCJyzZa5Z/r0Rjs+GTdf1AeXM8lXWs1ItRDO7+/hHWiyfr1RghfNFD52 2ZObYc1/Ev5HuxwoRne4mRAn4wb1QH9I3ysUrEpYnc4eEB46JeKLOWZiqgrE6DjK3Zon nefZrsy1IaVWEAdg46Qadpl7KhTIOSgEExbsa5Bv6mapZ3XZa/2p93DF5c3Gsx8MkJ0Q hnpRJPUjyvMHgc3TVNkmsE4VYufI35RUt0Fe9/75Gf/6hwjUpuUUISCYC2OC8coiza+4 AqiKpoWOhrDQ+lFAZVlC3XJLuxgpu8Lj0e4+M0hzxv+/JGEELvzEe9dICC/UVJ59F1tv oA9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OI7XzQR/AItkA9UXractExmowE/uf8KHxKzx9i9f84E=; b=exLPm+x0nMq66waK//3bYbImLw2NxQ142ln/h53lNJHq5+qfc1hzLXyn7QzdbcmLQI CuyOBSBx2lRjMHkzIi62TwhPNZLxmy+YdmEti8vMtBQlpZBPnhI4Ul6ai4E7ESSsoCJ1 ExEcg7Z/ABQ/ZCTq6szhUS5IWXjr/fMh/upfTAQ/vpgEeuPBRcI5ygzDNNBk5I2S4uYH 4cu+WOHyzVT+qmMnc6mFY9NIVwsh9GdQkCELRvuT98oaXFJu+wXuFmgf5ynvl4MEMFCt sZ6scfJhJcAv2rM/1rOaV9jwBQaendZnGS+X/2x4D+XVIRh781YCk9qbqzNt2r/uhyIY ZuXA== X-Gm-Message-State: AOAM532kWHcehBmvyY0tzb8mRS22TQJtI1oiAGHfP9T/il137fCILyUn LNC2m9TV5OpYzHURsyRZ56nBtN23/6EfyX/trH8= X-Received: by 2002:ac8:7e83:: with SMTP id w3mr6986536qtj.160.1636553876858; Wed, 10 Nov 2021 06:17:56 -0800 (PST) MIME-Version: 1.0 References: <20211104145713.4419-1-laoar.shao@gmail.com> <20211104145713.4419-3-laoar.shao@gmail.com> <87a6iitu3r.mognet@arm.com> <87tuglsj0l.mognet@arm.com> In-Reply-To: <87tuglsj0l.mognet@arm.com> From: Yafang Shao Date: Wed, 10 Nov 2021 22:17:20 +0800 Message-ID: Subject: Re: [RFC PATCH 2/4] sched/fair: Introduce cfs_migration To: Valentin Schneider Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Mel Gorman , Daniel Bristot de Oliveira , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 9, 2021 at 6:47 PM Valentin Schneider wrote: > > On 06/11/21 15:40, Yafang Shao wrote: > > It seems we'd better take the patch[1] I sent several weeks back. > > > > [1]. https://lore.kernel.org/lkml/20210615121551.31138-1-laoar.shao@gmail.com/ > > > > As Peter stated in that thread, this only reduces the race window and > doesn't eliminate it. The FIFO-1 smpboot idea is still a good one IMO. > Of course. I will think about how to avoid the migration happening in the smpboot thread_fn. -- Thanks Yafang