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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECE5FC3A59D for ; Thu, 22 Aug 2019 10:00:50 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2C38205C9 for ; Thu, 22 Aug 2019 10:00:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2C38205C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1i0jt8-0007QG-7I; Thu, 22 Aug 2019 06:00:14 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i0jt5-0007Q5-Gt for kernelnewbies@kernelnewbies.org; Thu, 22 Aug 2019 06:00:11 -0400 Received: from mr5.cc.vt.edu (smtp.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x7MA09UN030624 for ; Thu, 22 Aug 2019 06:00:10 -0400 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mr5.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x7MA046a009618 for ; Thu, 22 Aug 2019 06:00:09 -0400 Received: by mail-qt1-f198.google.com with SMTP id e2so5879137qtm.19 for ; Thu, 22 Aug 2019 03:00:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=h8OvvUJ61bzI3bzomz+gRqDKPUJXoCVP3QCng+zlD6U=; b=TlzU1JnUyGqcLDLBteAD4tQql0u8obNyUG4MIFoDhnqMTJhCNtQJ0okdk70tac6SVO PK1pQ5TS8m2f5Z0FZhn/AMecDjNRuobCPIeUx5bfnTFH/rURWdTu7Kkl14STNrjLhClI LUKWVFfrV288lg8bjbHExBb07PRtOeqL3mk0bg0PQmVmW1lGzYwb5pqCLh9WIisO3eka wFuNnDMGiZd2aTV/dDuU8eA+QVnQgtXi+/drvHViJ2PfXfOZTmPdvnwzy3GW6Y7TYOcl 7FYibTJtRQo1T9rMY/C5a1bXetXMEzcQg8/G3sIn5egcl4gIljXjcb0La1uLzpW/R9Bu T5iQ== X-Gm-Message-State: APjAAAWm/gTsySE1Ki12SbCbfWpBQXmWC5q1/45KzUo/X24khLtxRVXS q0ELusWhX7OrMnz6wfeMmHWc65EV0tTCB5RzRF/zwv3VLo9DX5g6jznI2TMTMvi/BSHTiX6hzl0 yhaYRAp2B7gej0d8MbSX0Kswc85f5UfKxP/fH2KQ= X-Received: by 2002:a37:4ac4:: with SMTP id x187mr6297111qka.386.1566468004062; Thu, 22 Aug 2019 03:00:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwattWDoDe2wxq2Rbr0Mqu76aJYGSSxj+qxctf+ycWX63V3frlyFgoWcKWgjyrrMZhYZXiVTw== X-Received: by 2002:a37:4ac4:: with SMTP id x187mr6297086qka.386.1566468003684; Thu, 22 Aug 2019 03:00:03 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4340::7ca]) by smtp.gmail.com with ESMTPSA id q9sm11814666qtj.48.2019.08.22.03.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 03:00:02 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Won-Kyo Choe Subject: Re: How to handle page allocation when memory exceeds a local node In-Reply-To: <20190822084121.GA26988@swarm01.ajou.ac.kr> References: <20190822084121.GA26988@swarm01.ajou.ac.kr> Mime-Version: 1.0 Date: Thu, 22 Aug 2019 06:00:01 -0400 Message-ID: <75574.1566468001@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5481816175925874675==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============5481816175925874675== Content-Type: multipart/signed; boundary="==_Exmh_1566468001_49937P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1566468001_49937P Content-Type: text/plain; charset=us-ascii On Thu, 22 Aug 2019 17:41:22 +0900, Won-Kyo Choe said: > In my perspective, if the kernel starts to allocate in the remote node, > I think the scheduler should move the process to the remote node and it > will allocate a page in the remote node at first in the loop (in the > process view, the node would be the local now since it is moved). Would > the scheduler do that? That's not the scheduler's job to do that. Plus... what do you do about the case where a process already has 12G of memory on one node, that node runs out and 1 4K page gets allocated on another node. Which is better, move the 12G, or every once in a while try to relocate that 1 4K page to a better node? --==_Exmh_1566468001_49937P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXV5noQdmEQWDXROgAQLcSA/8DaJmiCS4VQe1EUUMxGXjJP3MBHNUaZnG B9UL06WdJ/E5KRKJE9hy1bOXX7fIGLYhUp6J7OEhYOk/pwU09LyGpFcP0EuKk4Fs fwMQnJkzkSov0SUO/gtqycEp6jvDuBU/EMO9KZi5BsB6qYCtBcBAMY3BVhfmkm5/ OV32XqDQmnpGfadyOyi4OiixfalmdR+v+M1t4zCGIZ71OQsjvsYZYScHR0RqBq4R PXo8J+65IEdXOv9rrIvuDKQXnEiDRplMOzWWLY91+z7thOUiXNFC5B/i8o4j4uXW Cd2yHrqUV18bNrkT75kau4Zl5l01h8gpEQL8ABl56Tfb1toUxDVr6ArM+CzQCSY7 y3EaaIbO86OQK3xnicNV6sPXp0LKebFqn4jaI8lkTlQk92DueqoCA4QEe2xT77LU RUfElSEdH6voO8rp+RuK9HhDe7ZgFwQDue8lb2eJdXE7j5RuXx9b1Lve9TJMQjUT nkkKSY43mKj6JPCu1m7p1bnVa7LI9niojGa7nKqu2AxSK2uVY1Tv0zZOdYSPW7tQ h6r0S3KVwP7AwuzaK0sNrp/hdF/dZZO9X+DJ/aQt+H50+OKU30KQWH1zVs9Zdeo+ +cEPxjQuIbjR/y3L2jq66ovlyw7enob+qpN5OFX+pQTrwnV5xlmZi/jIKlkwAQd5 JLMZxyDfCtA= =bQQ1 -----END PGP SIGNATURE----- --==_Exmh_1566468001_49937P-- --===============5481816175925874675== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============5481816175925874675==--