Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp111398ybb; Fri, 27 Mar 2020 17:18:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvJ5xMGAi9TaLObIaANZ2Ezh15mEhnggYKueFh4+z/4ODn4RaTD2oCzPx+e8MZI5oV2TvEV X-Received: by 2002:a05:6830:18f4:: with SMTP id d20mr1013502otf.91.1585354689011; Fri, 27 Mar 2020 17:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585354688; cv=none; d=google.com; s=arc-20160816; b=fBdRuivSjT5sLFQZLg81nTpRGVLS6yHvpiM/EMURvSEDHhknJX185cjjvCfDzOH4e5 vlb/rnosD8lsw7tZTH/ZE+avw1wvQ9LLBQsQeLSW8OgPzRGBwAOWRwBrOuVGoGQXV3Xd nscGgLEp10GOYLRxKLpQuBpD/MpaYqXIN22Tvh8+ZLbhVldECDrIDd7wZpggbwFwaG/w fW7GAr9wsZXFJ5dbXSxCgSepJrhe3U8Pc+qTC/+tUCeC7s9DcDo/7vfaQw0kb9eyct+r VJuY9CaqYlN8y39xYN8Na/uRKXssH3c86tlk4X1O42qHOT5rIaXAc3QuxiONPlq+kOm/ Bbgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TkczSJTHT6DjomI7Gw7mr8sP9DJiwrHZ4XBhfGDHUog=; b=jIRzN5DdEbnLbUpT+ITE2PfPPJDd6hWaxvjQdlFu1U4sMYwWnxdPyW2t1bFzogg4to Mw4dvvd2eYTPS6wxTVsstAv7T7WLFuqKGTYyLh0Ygtv5QQOW5Q94kR9wfXY2eJ6zwop3 VOu0kbaBcSNmX9ls5nVIdDSGxnTZQM7C2TXhBMjMJqYTPBoOkKhS0qcgj/rh0jVRs83n 1ArfGU3fS3szspp77adwCj9e29QCoeBwiIrJ88VjPmcijH4ZPrP2yx/cw10SaDymKKq6 QzBslJ+JQZBDtx9DmfOSv8lCnJOplABS90FCLjKgkcbzOgl1Ur3468PUc31QPLdw5cSK dLCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=tE2x0AnF; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si2802998oie.6.2020.03.27.17.17.55; Fri, 27 Mar 2020 17:18:08 -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=@oracle.com header.s=corp-2020-01-29 header.b=tE2x0AnF; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726318AbgC1ARa (ORCPT + 99 others); Fri, 27 Mar 2020 20:17:30 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:52418 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbgC1ARa (ORCPT ); Fri, 27 Mar 2020 20:17:30 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02S0ECts067141; Sat, 28 Mar 2020 00:17:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=TkczSJTHT6DjomI7Gw7mr8sP9DJiwrHZ4XBhfGDHUog=; b=tE2x0AnFwkzquTjPYPJtSSUOTIUr5cRQKsQ6brqtxlZahHmQiWQDNndbDOlVL4RCJPHr rDFSGgqeERza5Cgh8aWadUkNKf0JpDP6ImP12/AkMx9+Z2AXtjfmhpDOVKYrdAtgavij fyFSq3maRkdaitDBud33m1ofY85n+ll+p0YVa4XjNssXfzj8aaRwkrnP6oAi8vBJV5Gw FfVQMyPnuyHcUUZPqBgFH0/9DCcmVbOgcKiav7bi8+CmhhsUY5ZNiL334z2u2klXxnD6 pbpcddjahDptASZ0UAYhMZaiTayoE65khSpAxJdCnOsE1n3x+6PgvmyxsQUlQ2WvFw7l LQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 301m49hyy1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 Mar 2020 00:17:19 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02S0BmQ3110319; Sat, 28 Mar 2020 00:17:19 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 3003gpy4q0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 28 Mar 2020 00:17:19 +0000 Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 02S0HGS6032130; Sat, 28 Mar 2020 00:17:17 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 27 Mar 2020 17:17:16 -0700 Date: Fri, 27 Mar 2020 20:17:36 -0400 From: Daniel Jordan To: Shile Zhang Cc: Pavel Tatashin , Daniel Jordan , Andrew Morton , Kirill Tkhai , linux-mm , LKML Subject: Re: [PATCH v3] mm: fix tick timer stall during deferred page init Message-ID: <20200328001736.pxcnabxvrr3d6bty@ca-dmjordan1.us.oracle.com> References: <20200311123848.118638-1-shile.zhang@linux.alibaba.com> <20200319190512.cwnvgvv3upzcchkm@ca-dmjordan1.us.oracle.com> <20200326185822.6n56yl2llvdranur@ca-dmjordan1.us.oracle.com> <427ce795-0274-56e5-16e4-7be00c7145f7@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427ce795-0274-56e5-16e4-7be00c7145f7@linux.alibaba.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9573 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270199 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9573 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 clxscore=1015 bulkscore=0 impostorscore=0 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270199 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2020 at 12:39:18PM +0800, Shile Zhang wrote: > On 2020/3/27 03:36, Pavel Tatashin wrote: > > I agree with Daniel, we should look into approach where > > pgdat_resize_lock is taken only for the duration of updating tracking > > values such as pgdat->first_deferred_pfn (perhaps we would need to add > > another tracker that would show chunks that are currently being worked > > on). > > > > The vast duration of struct page initialization process should happen > > outside of this lock, and only be taken when we update globally seen > > data structures: lists, tracking variables. This way we can solve > > several problems: 1. allow interrupt threads to grow zones if > > required. 2. keep jiffies happy. 3. allow future scaling when we will > > add inner node threads to initialize struct pages (i.e. ktasks from > > Daniel). > > It make sense, looking forward to the inner node parallel init. > > @Daniel > Is there schedule about ktasks? Yep, and it's now padata multithreading instead of ktask since we already have 'task' in the kernel. Current plan is to start with users in the system context, that is those that don't require userland resource controls such as cgroup. So I'll post a new version of this timestamp fix pretty soon and then likely post a series that multithreads page init. Future work is tentatively doing other system users, remote charging for the CPU controller, and then users that can be accounted with cgroup etc.