DragonFly users List (threaded) for 2009-11
Re: SMP users needed to test patch
2009/11/4 Stathis Kamperis <email@example.com>:
> Hello everyone!
> I'd like to mark mq*() syscall as MPSAFE, but before that I need
> someone to test them in an SMP capable machine running SMP kernel. I
> only have UP machines around.
> So, if anyone is able and kind enough, here are some directions on how
> to do it. I assume s\he is running HEAD.
> cd /usr/src
> fetch http://leaf.dragonflybsd.org/~beket/mq-mpsafe.diff
> git apply mq-mpsafe.diff
> make buildkernel
> make installkernel
> git clone git://gitweb.dragonflybsd.org/~beket/pcca-tests.git
> cd pcca-tests/mqueue.h
> make && make -k run
> cd etc
> sysctl -w kern.mqueue.mq_prio_max=200
Unfortunately, I forgot to mention one crucial step. After the patch
application one should type 'make sysent' inside sys/kern, so that the
syscall-related files be regenerated, namely the init_sysent.c. Or
even better, *I* should have added the init_sysent.c changes in my
patch. Since buildkernel doesn't regenerate these files automatically,
I'm afraid that the tests ran with giant lock held upon syscall
I apologize for wasting people`s time :( I'll just try to get
physical access on an SMP cabable machine & run them on my own.
Thank you both.