summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-08-04 21:00:49 +0000
committerluigi <luigi@FreeBSD.org>2002-08-04 21:00:49 +0000
commit0bfe37b8a2dbf8d6dd3c7bf97b0c4e0b14439865 (patch)
treef486d9ef3e35390d9ec3fde64c4214dbcb3ed594 /sys
parent53609e4de1296ec94d24606008ae752f915481b1 (diff)
downloadFreeBSD-src-0bfe37b8a2dbf8d6dd3c7bf97b0c4e0b14439865.zip
FreeBSD-src-0bfe37b8a2dbf8d6dd3c7bf97b0c4e0b14439865.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_poll.c2
1 files changed, 1 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud