From 0bfe37b8a2dbf8d6dd3c7bf97b0c4e0b14439865 Mon Sep 17 00:00:00 2001 From: luigi Date: Sun, 4 Aug 2002 21:00:49 +0000 Subject: Temporarily disable polling when no processes are active, while I investigate the problem described below. I am seeing some strange livelock on recent -current sources with a slow box under heavy load, which disappears with this change. This might suggest some kind of problem (either insufficient locking, or mishandling of priorities) in the poll_idle thread. --- sys/kern/kern_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index 9dd6924..b3a96ba 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -118,7 +118,7 @@ static u_int32_t poll_burst_max = 150; /* good for 100Mbit net and HZ=1000 */ SYSCTL_UINT(_kern_polling, OID_AUTO, burst_max, CTLFLAG_RW, &poll_burst_max, 0, "Max Polling burst size"); -static u_int32_t poll_in_idle_loop=1; /* do we poll in idle loop ? */ +static u_int32_t poll_in_idle_loop=0; /* do we poll in idle loop ? */ SYSCTL_UINT(_kern_polling, OID_AUTO, idle_poll, CTLFLAG_RW, &poll_in_idle_loop, 0, "Enable device polling in idle loop"); -- cgit v1.1