Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp400039rwi; Mon, 31 Oct 2022 02:56:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Q5ByOixulZ3HMp0UpkjBsfQ2jIuohmpVCUlD46JWkbt0fQFQpNjrJA5S4FM+vg/k6d917 X-Received: by 2002:a17:90a:3e85:b0:213:36b6:fa16 with SMTP id k5-20020a17090a3e8500b0021336b6fa16mr13761337pjc.56.1667210200898; Mon, 31 Oct 2022 02:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667210200; cv=none; d=google.com; s=arc-20160816; b=odYcS3ZrZn/7l7BF/jhu3IpCqgg/nrf7iYDAyJiYQPwN4H9GNzepz6f3PDBjE6kC3r RLVvgtpNJ5UbiZ+UFcyfkYAJoreOXm0uJ/3RA0a6+vf1ZQR6AfMuI1/r7SWRjrXxh60M vj0Ye/DSbPLCskum//S78Cuj0up3xV5A98TpwLlI7tMwPE3BycJ16+H/en7xCVJSPaiw GoCyuCs6TZSCma2T0QiHAQyY4n/IBfn2PfCUCBxu+q17FcfwEUemcOsIAEkgGugiQ0eR /zvPpzDw7aJ9ktHTjL92QzKfvnEwwxsK5nEygj6iWe0ZPWRpYcItyDMD8WiH90LIz/q/ LBZA== 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=oDEy5wBGcubkZlsFmF0w8hivt9UAci8jukyyYE9ExMU=; b=RuvBGRukpC4qyMHYHbQu46YZ6t7nDHDdpVU3J/NAnrCtyO9lWFxzrfKhUabvwftdfx VnqPo3N+hjP1LxoDnZrqt2USiRpe/hyxlKOT0TAwRxhQUJXDdJK+rYw/v3/zQiV+hjc+ WY9/MqJ+8f06loHMRGXSPnWLMmXEWiq4G86RXN4i1TKC6FuUOGnJ2XyaT4WNYOhAuMMa 3jtZ1Z00CXqEtgAiqd+zwkVLdhOpqlfZqjZRjQCaSu2KcELsSZWXeIhtNz36STtawNYD sGjeKxhtr3Bx607EVHiz4LvS9/GEhyosFNKj9+NflzlJNBNtGAElkgJdgFViHb4USopm 1v3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nABlSHml; 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 x186-20020a6386c3000000b0046f72960505si8245325pgd.393.2022.10.31.02.56.27; Mon, 31 Oct 2022 02:56:40 -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=nABlSHml; 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 S229918AbiJaIkV (ORCPT + 99 others); Mon, 31 Oct 2022 04:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiJaIkU (ORCPT ); Mon, 31 Oct 2022 04:40:20 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142871033; Mon, 31 Oct 2022 01:40:18 -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-out1.suse.de (Postfix) with ESMTPS id AB61433712; Mon, 31 Oct 2022 08:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1667205616; 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=oDEy5wBGcubkZlsFmF0w8hivt9UAci8jukyyYE9ExMU=; b=nABlSHmlvMJc1IRbGJhLSNRm6p/PCFEi8GtWySPQrJFa/sZrFVgXIIT0AWemOZuR95acsO iriPwjPf8LkiW1s5C6wbMWrf9qL3cyIAou5wla7XaGcxceT2C1DIH9TFH1I/UDevFIPmcf p98aKgK331X4lRdAgWidMVmrEqnErX0= 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 76FE213AAD; Mon, 31 Oct 2022 08:40:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sbQAGfCJX2MKRAAAMHmgww (envelope-from ); Mon, 31 Oct 2022 08:40:16 +0000 Date: Mon, 31 Oct 2022 09:40:15 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bkpwkg24.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 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. 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. -- Michal Hocko SUSE Labs