From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E24F8C4321E for ; Wed, 12 Oct 2022 13:23:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbiJLNXh (ORCPT ); Wed, 12 Oct 2022 09:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiJLNXg (ORCPT ); Wed, 12 Oct 2022 09:23:36 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61E7F1EC42; Wed, 12 Oct 2022 06:23:35 -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 1614721C46; Wed, 12 Oct 2022 13:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665581014; 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=axxPf0w5DXM3j5NJDUDmXxmlQDnP+BGR3NcKUGmmygk=; b=bpbzjrYvyfEWNNdqbcE+1/xybLofs5vUcNiCggQ00eBKQM9/2KeJOSebD5u5LVoG/uL0WT C2yFlqF5ouupcJy3etp0WrlDOmA/+QP7FmA5IGNWtHHqlCvwZjmYytUDN0OzJA8nNQb84b Z7f3JD6zupuXEIA0/lkUwX3bY2X5pbY= 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 CAB0413ACD; Wed, 12 Oct 2022 13:23:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6eqeLtW/RmM7eQAAMHmgww (envelope-from ); Wed, 12 Oct 2022 13:23:33 +0000 Date: Wed, 12 Oct 2022 15:23:33 +0200 From: Michal Hocko To: Vinicius Petrucci Cc: Frank van der Linden , Zhongkun He , corbet@lwn.net, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, wuyun.abel@bytedance.com Subject: Re: [RFC] mm: add new syscall pidfd_set_mempolicy() Message-ID: References: <20221010094842.4123037-1-hezhongkun.hzk@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Wed 12-10-22 15:07:48, Michal Hocko wrote: > On Wed 12-10-22 07:34:06, Vinicius Petrucci wrote: [...] > > Having a feature like "pidfd/process_mbind" would really simplify our > > user-level agent implementation moving forward, as right now we are > > adding a LD_PRELOAD wrapper (for signal handler) to listen and execute > > "mbind" requests from another process. If there's any other > > alternative solution to this already (via ptrace?), please let me > > know. > > userfaultfd sounds like the closest match if #PF handling under control > of an external agent is viable. And just to clarify. I haven't ever played with using userfaultfd for numa balancing so I might be completely wrong here. -- Michal Hocko SUSE Labs