On Mar 18, 2008, at 7:07 PM, Ivan Voras wrote:I ran into this problem recently. It appears that sched_slice is set to zero when realstathz drops below 10 in sched_ule.c: sched_slice = (realstathz/10); /* ~100ms */ I was able to work around the problem with the following patch. The image no longer panics, but I have not done any stress or performance testing. Is there a better solution to this problem? For reference: > uname -a FreeBSD vm7.vadev.org 7.0-STABLE FreeBSD 7.0-STABLE #3 r50:55M: Mon Jul 28 09:27:04 EDT 2008 root@vm7.vadev.org:/usr/obj/usr/src/sys/ VMWARE i386 > sysctl -a | grep kern.clock kern.clockrate: { hz = 50, tick = 20000, profhz = 33, stathz = 6 } The patch is against 7-STABLE from 7/24/2008. Thanks. - Ben Index: src/sys/kern/sched_ule.c =================================================================== --- src/sys/kern/sched_ule.c (revision 53) +++ src/sys/kern/sched_ule.c (working copy) @@ -1325,6 +1325,7 @@ */ realstathz = hz; sched_slice = (realstathz/10); /* ~100ms */ + sched_slice = sched_slice ? sched_slice : 1; tickincr = 1 << SCHED_TICK_SHIFT; /* Add thread0's load since it's running. */ @@ -1345,6 +1346,7 @@ realstathz = stathz ? stathz : hz; sched_slice = (realstathz/10); /* ~100ms */ + sched_slice = sched_slice ? sched_slice : 1; /* * tickincr is shifted out by 10 to avoid rounding errors due to _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Joerg Roedel | [PATCH 03/34] AMD IOMMU: add defines and structures for ACPI scanning code |
| Eric W. Biederman | [PATCH] powerpc pseries eeh: Convert to kthread API |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
