Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Eric Dumazet" <dada1@cosmosbay.com>
Subject: Re: Blocked kernel thread  misses wakeup  on SMP - Tru64 5.1A
Date: Fri, 26 Sep 2003 19:39:05 +0200	[thread overview]
Message-ID: <3f7479c5$0$10419$626a54ce@news.free.fr> (raw)
In-Reply-To: c76164d.0309251104.53d09f38@posting.google.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1524 bytes --]


"Ron Jolly" <ron.jolly@gefanuc.com> 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




  reply	other threads:[~2003-09-26 17:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 21:36 Blocked kernel thread misses wakeup on SMP - Tru64 5.1A Ron Jolly
2003-09-24 20:55 ` Eric Dumazet
2003-09-25 19:04   ` Ron Jolly
2003-09-26 17:39     ` Eric Dumazet [this message]
2003-09-25 10:35 ` David Butenhof
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox