OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] swappages in /proc/userbeancounters
[PATCH] swappages in /proc/userbeancounters [message #44091] Tue, 15 November 2011 15:46
vorobev is currently offline  vorobev
Messages: 3
Registered: November 2011
Junior Member
From: *parallels.com
Hi, guys.

There is no swappages line in /proc/user_beancounters.

Fix:


diff -uprN linux-rhel6.orig/kernel/bc/proc.c linux-rhel6/kernel/bc/proc.c
--- linux-rhel6.orig/kernel/bc/proc.c 2011-11-15 15:41:15.000000000 +0100
+++ linux-rhel6/kernel/bc/proc.c 2011-11-15 15:38:49.000000000 +0100
@@ -177,6 +177,10 @@ static int ub_show(struct seq_file *f, v

for (i = 0; i < UB_RESOURCES_COMPAT; i++)
ub_show_res(f, ub, i, precharge[i], 1);
+
+ for (i = UB_RESOURCES_COMPAT; i < UB_RESOURCES; i++)
+ ub_show_res(f, ub, i, precharge[i], 1);
+
return 0;
}
Previous Topic: Cet enfant a besoin de vous
Next Topic: www.foiegras-catinel.com : Noel au Fois Gras : Offrez-vous du Vrai Foie Gras de Producteur !
Goto Forum:
  


Current Time: Wed Aug 21 18:20:17 GMT 2019