Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp398749rwi; Mon, 31 Oct 2022 02:55:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6blQDv6IvDx2YieGV/BIwsaP1FPUogGuFjN2yGDn+uwXbYwTQip0WzG7cCIMzMz38Gynd7 X-Received: by 2002:a17:902:d4c7:b0:187:17bd:44df with SMTP id o7-20020a170902d4c700b0018717bd44dfmr7626456plg.108.1667210136480; Mon, 31 Oct 2022 02:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667210136; cv=none; d=google.com; s=arc-20160816; b=fKxkiYmCaoPihDmpuN0OzDklg11s6PbN8IQsRxr6YO1Vx/J02NGaCJvbxtE7J9MnHQ eRJrY8dCyNY6OUA44tfV+m2+wF2ragX4gc1CjNXmfvhdGIzXvzTMfMnOfcBe6FNIv0mT U+nrkhQNwleMHmdDLuVdkzhOR8OjE4TojE1czuY9gqVfNyPrDIDFQEfZaBmKz/6SryW3 Lw62qY4uOYmN5uXNK5ouVL+W1tZna6zl89lsTGZaSJsrLUaggrCvVUlrxalkxodryd4l /AZI2Vx69b44zH3GpxTYLFiEI9bhNDq4bzchzJUIJzJadjNL1v16cuH8g9at6TNDhOFG oJYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5f+L4lFYRpVQJbtga4qXT/E9MSZAjXCdeB1iVrLLAwE=; b=s7FfHx1cdi+yVRwmHVr3hMSDNg67xJZtW4Hn6HFIdHFyGBZ4wJGvpJpjQi0q5Q3oU2 w2m7cJKu8ay58iX9fUjnUYwOmCDOK4SOMdDv4FwQjEowcQOlI2mm7QPCxU3K4X+eQ3D9 OrLdms6/iFklaTqs88Sf63+CDJ9pVow8vcWeNLjBbhSvEKUXPwBq/A5SzQlSUQA7lQLz vSOPFl/LYlCSPI5kjCiFRYJosGYU4zBLGQvSdEnE9w5adt9mp6yuVeblxykbt+QFFuRF JKm6UKrP5C1YRWcrhUgn+EijP1KXbrWlQJ7U8+cXWZBZpMs9iM0WLZkTU04inuwjFC10 ux5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nuddbqq6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me8-20020a17090b17c800b0020aeaa98ed4si9795002pjb.93.2022.10.31.02.55.23; Mon, 31 Oct 2022 02:55:36 -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=@suse.com header.s=susede1 header.b=nuddbqq6; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiJaJS7 (ORCPT + 99 others); Mon, 31 Oct 2022 05:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJaJS4 (ORCPT ); Mon, 31 Oct 2022 05:18:56 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 864B1BE15; Mon, 31 Oct 2022 02:18:55 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1FAA41F91D; Mon, 31 Oct 2022 09:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667207934; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5f+L4lFYRpVQJbtga4qXT/E9MSZAjXCdeB1iVrLLAwE=; b=nuddbqq6TZ5pf7kcq2IG5RchiKUxQQg5buEf9Z/wa2aKMhbg7b3HUcgyRFp3A6JPC0e4Qc 7IwSXh9euPvo2ECab2gA2wkXzqpsEoE/cAkSKxkTiovPpHcG+WOi708agMeYmFKIJzN6EH P5RsnzkHClZu3MXCxPxAvl0nryGA4GE= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F31D213AAD; Mon, 31 Oct 2022 09:18:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gYQdOf2SX2OMVwAAMHmgww (envelope-from ); Mon, 31 Oct 2022 09:18:53 +0000 Date: Mon, 31 Oct 2022 10:18:53 +0100 From: Michal Hocko To: "Huang, Ying" 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 Message-ID: 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> <87wn8gcr5s.fsf@yhuang6-desk2.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wn8gcr5s.fsf@yhuang6-desk2.ccr.corp.intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 On Mon 31-10-22 16:51:11, Huang, Ying wrote: > 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. OK, if there are no users for opt-out then let's jus document the current limitations and be done with it. > > 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. I am against such a half baked solution. -- Michal Hocko SUSE Labs