lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBCGTiU9wwKCfH1wwcLLtxEB1AW4DUfRjJiRD8WaJiG4wg@mail.gmail.com>
Date:	Sat, 17 Nov 2012 13:19:53 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Mel Gorman <mgorman@...e.de>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Hillf Danton <dhillf@...il.com>
Subject: [PATCH 4/5] balancenuma: check mem node in finding placement

No point to migrate task from node A to node A.

Signed-off-by: Hillf Danton <dhillf@...il.com>
---

--- a/kernel/sched/fair.c	Sat Nov 17 12:25:44 2012
+++ b/kernel/sched/fair.c	Sat Nov 17 12:25:54 2012
@@ -891,6 +891,8 @@ static void task_numa_find_placement(str
 	/* Examine a task on every other node */
 	for_each_online_node(nid) {
 		int cpu;
+		if (nid == this_nid)
+			continue;
 		for_each_cpu_and(cpu, cpumask_of_node(nid), allowed) {
 			struct rq *rq;
 			struct mm_struct *other_mm;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ