Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 11:25:56 +0800
From:      "David Xu" <davidxu@freebsd.org>
To:        "Daniel Eischen" <eischen@pcnet1.pcnet.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: SMPing libpthread
Message-ID:  <027e01c30ada$87d57f10$f001a8c0@davidw2k>
References:  <Pine.GSO.4.10.10304242254270.15475-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----=20
From: "Daniel Eischen" <eischen@pcnet1.pcnet.com>
To: "David Xu" <davidxu@freebsd.org>
Cc: <freebsd-threads@freebsd.org>
Sent: Friday, April 25, 2003 11:07 AM
Subject: Re: SMPing libpthread


> On Thu, 24 Apr 2003, David Xu wrote:
>=20
> > I have put a patch to enable userland support SMP scheduling.=20
> > http://people.freebsd.org/~davidxu/libpthread_smp.diff
> > The patch works on my SMP machine, but not fully tested,
> > and I will work on idle kses stuffs. At least, it seems
> > the SMP speed is not slower than UP. :-)
>=20
> Cool, I just found the bug with scope process threads that was
> causing Token_Strategy_Test to fail.  Now the 2 ACE tests that
> were SIGBUS'ing (with scope system threads enabled) are now
> running.  Only Token_Strategy_Test fails, but it is just an
> expected result where some mean value is less than the stddev.
>=20
>   http://people.freebsd.org/~deischen/kse/libpthread.diffs
>=20
> I was willing to work on the idle KSEs; I was just asking
> your opinion :-)  Feel free to tackle it though.
>=20

I have a simple idea, in kse_wait(), a kse inserts itself into
an idle kse queue under scheduler lock held(it is already),=20
then release scheduler lock and call kse_release(). any
other kses enters in _thr_sched_multi and got a completed context=20
list should look the idle kses queue and wakeup those idle kses
accordingly, also _thr_set_runnable_unlocked etc should look
the idle queue as well, because all things are done under scheduler
lock, it seems very nice for me. :-)


> This is fun stuff :-)
>=20
True!

> --=20
> Dan Eischen
>=20
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to =
"freebsd-threads-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?027e01c30ada$87d57f10$f001a8c0>