Steven Jurczyk
2005-May-11 05:34 UTC
SCHED_ULE with SMP broke libpthread/libthr on 5.4-RELEASE
**Using SCHED_ULE on SMP/HT machine broke applications which use libpthread/libthr, probably at context switching between threads... The applications simply hang and they aren't killable (kill -9 <pid> don't work).. Usually this also break kernel shutdown (can't flush some inodes or blocks)... This is very big problem for people who want use mysql_server on SMP machines... On FreeBSD 5.4-RC3 this don't happend... Details at http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/80887 -- best regards steve at home.pl
Marian Hettwer
2005-May-11 06:09 UTC
SCHED_ULE with SMP broke libpthread/libthr on 5.4-RELEASE
On Mi, 11.05.2005, 14:34, Steven Jurczyk sagte:> **Using SCHED_ULE on SMP/HT machine broke applications which use > libpthread/libthr, probably at context switching between threads... The > applications simply hang and they aren't killable (kill -9 <pid> don't > work).. Usually this also break kernel shutdown (can't flush some inodes > or blocks)... >right! I have the same problem. My Kernel is basicly a GENERIC with SMP and ULE added (4BSD removed). ([mhettwer@siteop-8] <~>)$ uname -a FreeBSD siteop-8.mobile.rz 5.4-STABLE FreeBSD 5.4-STABLE #7: Wed May 11 12:03:35 CEST 2005 root@siteop-8.mobile.rz:/usr/src/sys/i386/compile/SITEOP-8 i386> This is very big problem for people who want use mysql_server on SMP > machines...indeed. The MySQL server won't start and is not killable. I had to switch back to SCHED_4BSD :-/ I would be available for testing packages, as this machine is not in production. it's a dual xeon 2,8 ... you can find detailed information about it at: http://unixoid.de/freebsd/dmesg.xeon :) best regards, Marian
Ok thanks I will stick to the old scheduler on my smp system then. Chris On 5/12/05, Steven Jurczyk <steve@post.pl> wrote:> Chris wrote: > > >Seems the 4+ cpu crash fix might have broken it at a guess since RC4 > >onwards it broke, I am interested in how this goes as I was planning > >on upgrading a SMP box to 5.4 and ULE this month. > > > >Have you guys tried this without SMP? > > > > > Yes. > pthreads applications under SCHED_ULE but without SMP works OK... > > PS. Please remeber that SCHED_ULE with SMP brokes also >10 utils > compiled with pthreads in base system (host, dig, nslookup -> all DNS > stuff). > -- > best regards > steve at home.pl > >