Hi Luca,
> if you are using Kernel 2.6.x (with x >11) then read the thread
> started by me some time ago on this list
Thanks for the pointer. It didn't patch against 2.6.13 though, but i noticed
it was only changing occurrences of ssleep(); with 2 other lines. Four times
in a row in that file, starting around 73% i believe.
Aaanyway, kernel patched & rebooted. Load avg is now pretty normal again :)
Modified patch for 2.6.13:
--- a/net/ipv4/ipvs/ip_vs_sync.c 2005-11-03 13:55:15.000000000 +0100
+++ b/net/ipv4/ipvs/ip_vs_sync.c 2005-11-03 14:03:03.000000000 +0100
@@ -655,7 +655,8 @@
if (stop_master_sync)
break;
- ssleep(1);
+ __set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout(HZ);
}
/* clean up the sync_buff queue */
@@ -711,8 +712,8 @@
if (stop_backup_sync)
break;
-
- ssleep(1);
+ __set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout(HZ);
}
/* release the sending multicast socket */
@@ -824,7 +825,8 @@
if ((pid = kernel_thread(sync_thread, startup, 0)) < 0) {
IP_VS_ERR("could not create sync_thread due to %d... "
"retrying.\n", pid);
- ssleep(1);
+ __set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout(HZ);
goto repeat;
}
@@ -858,7 +860,8 @@
if ((pid = kernel_thread(fork_sync_thread, &startup, 0)) < 0) {
IP_VS_ERR("could not create fork_sync_thread due to %d... "
"retrying.\n", pid);
- ssleep(1);
+ __set_current_state(TASK_INTERRUPTIBLE);
+ schedule_timeout(HZ);
goto repeat;
}
--
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl
|