Something is wrong in src/vserver-stat.c I think in execution of
vc_sched_info function. If cpu variable reaches 32 or 34 vserver-stat is
killed with ops. There is less then 32 CPUs on my servers so I
applicated following workaround:
diff -ru util-vserver-0.30.216-pre2864.o/src/vserver-stat.c
util-vserver-0.30.216-pre2864/src/vserver-stat.c
--- util-vserver-0.30.216-pre2864.o/src/vserver-stat.c 2009-11-25
07:10:52.000000000 -0500
+++ util-vserver-0.30.216-pre2864/src/vserver-stat.c 2011-02-22
08:31:16.000000000 -0500
@@ -268,7 +268,7 @@
res->utime_total = 0;
res->stime_total = 0;
// XXX: arbitrary CPU limit.
- for (cpu = 0; cpu < 1024; cpu++) {
+ for (cpu = 0; cpu < 32; cpu++) {
sched.cpu_id = cpu;
sched.bucket_id = 0;
if (vc_sched_info(xid, &sched) == -1)
M.S.
--
Mariusz Sawicki | rash (at) e-point . pl | e-point SA
Glowny Administrator Systemow | http://www.e-point.pl
PGP key at: http://staff.e-point.pl/~rash/rash_ep.asc
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]