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=RBAHsyFmU-XArPt9WPnbktUQ9mNn3N6voM1BFKgOiHpXJg@mail.gmail.com>
Date:	Sat, 17 Nov 2012 13:11:03 +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 2/5] balancenuma: fix numa fault statistics

Simply use @pages as we handle both pte and pmd numa faults.

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

--- a/kernel/sched/fair.c	Sat Nov 17 11:40:36 2012
+++ b/kernel/sched/fair.c	Sat Nov 17 12:05:06 2012
@@ -1112,10 +1112,10 @@ void task_numa_fault(int node, int pages
 	}

 	/* Record fault statistics */
-	p->task_balancenuma->task_numa_fault_tot++;
-	p->task_balancenuma->task_numa_fault[node]++;
-	p->mm->mm_balancenuma->mm_numa_fault_tot++;
-	p->mm->mm_balancenuma->mm_numa_fault[node]++;
+	p->task_balancenuma->task_numa_fault_tot	+= pages;
+	p->task_balancenuma->task_numa_fault[node]	+= pages;
+	p->mm->mm_balancenuma->mm_numa_fault_tot	+= pages;
+	p->mm->mm_balancenuma->mm_numa_fault[node]	+= pages;

 	task_numa_placement(p);
 }
--
--
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