From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: ffc1e,2a3ebc1d720b61f6 X-Google-Attributes: gidffc1e,public X-Google-Thread: fa528,2a3ebc1d720b61f6 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-09-26 10:39:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feeder2-1.proxad.net!news1-1.free.fr!not-for-mail From: "Eric Dumazet" Newsgroups: comp.unix.tru64,comp.programming.threads References: <3f7204be$0$10421$626a54ce@news.free.fr> Subject: Re: Blocked kernel thread misses wakeup on SMP - Tru64 5.1A Date: Fri, 26 Sep 2003 19:39:05 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <3f7479c5$0$10419$626a54ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 26 Sep 2003 19:39:17 MEST NNTP-Posting-Host: 81.51.53.157 X-Trace: 1064597957 news1-1.free.fr 10419 81.51.53.157:2134 X-Complaints-To: abuse@proxad.net Xref: archiver1.google.com comp.unix.tru64:10820 comp.programming.threads:19098 "Ron Jolly" a �crit dans le message de news:c76164d.0309251104.53d09f38@posting.google.com... > Thanks for the suggestions to Mr Dumazet and Mr. Butenhof. > In my driver code, I am doing precisely what you have > in your snippet of code. The statement I made "unlock the simple > lock..." should not have been listed in the sequence of steps. No, I > do not manually unlock the simple lock before calling mpsleep(). Only > after the operation has completed do I call the unlock(). > One thing that you have in the sample that I do not have implemented, > is the "(PZERO + 1)" for the priority. My code is setting this to > PZERO only. I recompiled with the PZERO+1, but it did not make any > difference. I still > miss a thread_wakeup_one call. Weel, that's strange indeed. The Tru64 mpsleep() function is guaranted to work, iff the waiter and wakeup threads are synchronized on the same simple lock. So the question is now : do they lock the same simple lock ? Do you verify returns from different kernel service functions you are calling ? I can make a review of your source if you are willing to, just send me a pointer or the complete file. > This works for my driver on Linux. The code runs without error on an > SMP system. Question is, how is this performed on Tru64? > Do I have access to the wait queue? How do I access the scheduler? > Any thoughts on why the current implementation works successfully on a > 12 CPU NUMA (GS160) system but fails on a SMP system? > > thanks > Ron