Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp395397rwi; Mon, 31 Oct 2022 02:52:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Z6FggLQnGTMAd5zwK9JlEV1sYUfBl3feEQYdGeM2Ue2ZICAprh+QCAa0F4vdIodpOoxQS X-Received: by 2002:a17:907:3206:b0:780:a882:a9ac with SMTP id xg6-20020a170907320600b00780a882a9acmr11947128ejb.765.1667209933203; Mon, 31 Oct 2022 02:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667209933; cv=none; d=google.com; s=arc-20160816; b=JvF/j5JPF9KmT5Sv1gVyhQGRaJe4ZYP09mRVKxgln2P4X8OhsHVR+BxVA+MzeE2Zlh EI5rVt3TAxdQT82id0iDp667Eh/Ek01ko7bw9N5kXCTDDR4Z6cPIt2rCRP/4T7cnA6z3 /6xaTQe8Bfs8eWXAAqX40/+wJe3AlMoJV6zy94mRnTb12YwIqzCtIW3iNLSy1jmL4pu0 LV04CtZuaXMfMn3m3c+1Cnrmpf+hHMbGWa8o8W+HL4baSKb2jZtx31pbEF7JERE7+OCJ 4zRktT/wKMkATxBpjcmj29QROrBiQeLGcZj1sXs86WqMJiADIeGjGuAC1K0ofgyDkaYd Ze6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=vaFWOjTWquyOz/D3ylRsnJiy3BX6ecaN+Xv/rYT59dM=; b=IxgyOIOtEVcSBuBEXqc06sQDn78A1C4Hopmvj5EL47tuMsG63PHZL63ks4Mdx91Dtf lbYukPAu8zJjxvqnBeTa283rpXPoPgJ0K3xpSgimQgAFf55KZBSUFPTm7BfGqsBNWRLu LU4yjXUwRyV88Q4xsXAeHwXWBqLMzj3T3xkYfF/pfMpnw1kiClFXzxjd0kOHJtWvkYHF PX+xj3vJ0e2tRY6GjhRdFPzIWZqqEMpkG0MjWHoXlseV9OsVld9sgG7r8ziWBV89DHYr zfiBbr38ebQkzV3zXL4712URTphTPb067LDu1wIBGQnjEYT+5ALP/a9LjkJqwIXD3dMn u7Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AYULtybq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a50d78b000000b00461b84a010fsi6964112edi.295.2022.10.31.02.51.49; Mon, 31 Oct 2022 02:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AYULtybq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiJaIwC (ORCPT + 99 others); Mon, 31 Oct 2022 04:52:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiJaIwA (ORCPT ); Mon, 31 Oct 2022 04:52:00 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4150965C2; Mon, 31 Oct 2022 01:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667206320; x=1698742320; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version; bh=GJpd8Xm2kiIYix/9b/pSxjuZ+hynXQIIYAwXtN4bVMk=; b=AYULtybqnhrIw9RC05HZSf8Gc7Lpj+0vOpILorUOas0iHikw/TQTnmLj y8zJv4COZx92nKcm4otcbwtB3thH6yyEv0rm2kLDePbxwk08DsBAUJAgf N43upRaTkFO/SgBgI29RT7VRn4ccNN2TYbZXulRk4WR8nI/j2Trk8Ptp4 iRQeXO9BmNeLH7Jc6Ck2N5KLiFK3Ni6Vdn3wbpbkwkIakezFhMPlA+bEr unJTR9uX622oGg5/guUxSVrZ1KJtUIIBM4BZSjWsiaAyYlT8MgYvWlcIF 6frBrIKy7lSqru3WcO9XAJ4/3kAqIf5UYO+0JCOuzG/Q2YOHIm81dVxma Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10516"; a="308848698" X-IronPort-AV: E=Sophos;i="5.95,227,1661842800"; d="scan'208";a="308848698" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 01:52:00 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10516"; a="722741094" X-IronPort-AV: E=Sophos;i="5.95,227,1661842800"; d="scan'208";a="722741094" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 01:51:57 -0700 From: "Huang, Ying" To: Michal Hocko Cc: Feng Tang , Aneesh Kumar K V , Andrew Morton , Johannes Weiner , Tejun Heo , Zefan Li , Waiman Long , "linux-mm@kvack.org" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Hansen, Dave" , "Chen, Tim C" , "Yin, Fengwei" Subject: Re: [PATCH] mm/vmscan: respect cpuset policy during page demotion References: <87wn8lkbk5.fsf@yhuang6-desk2.ccr.corp.intel.com> <87o7txk963.fsf@yhuang6-desk2.ccr.corp.intel.com> <87fsf9k3yg.fsf@yhuang6-desk2.ccr.corp.intel.com> <87bkpwkg24.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Mon, 31 Oct 2022 16:51:11 +0800 In-Reply-To: (Michal Hocko's message of "Mon, 31 Oct 2022 09:40:15 +0100") Message-ID: <87wn8gcr5s.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Hocko writes: > On Fri 28-10-22 07:22:27, Huang, Ying wrote: >> Michal Hocko writes: >> >> > On Thu 27-10-22 17:31:35, Huang, Ying wrote: > [...] >> >> I think that it's possible for different processes have different >> >> requirements. >> >> >> >> - Some processes don't care about where the memory is placed, prefer >> >> local, then fall back to remote if no free space. >> >> >> >> - Some processes want to avoid cross-socket traffic, bind to nodes of >> >> local socket. >> >> >> >> - Some processes want to avoid to use slow memory, bind to fast memory >> >> node only. >> > >> > Yes, I do understand that. Do you have any specific examples in mind? >> > [...] >> >> Sorry, I don't have specific examples. > > OK, then let's stop any complicated solution right here then. Let's > start simple with a per-mm flag to disable demotion of an address > space. I'm not a big fan of per-mm flag. Because we don't have users for that too and it needs to add ABI too. > Should there ever be a real demand for a more fine grained solution > let's go further but I do not think we want a half baked solution > without real usecases. I'm OK to ignore per-task (and missing per-process) memory policy support for now. Best Regards, Huang, Ying