[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <46AF1DA6.BA47.005A.0@novell.com>
Date: Tue, 31 Jul 2007 11:33:26 -0400
From: "Gregory Haskins" <ghaskins@...ell.com>
To: "Peter Zijlstra" <peterz@...radead.org>
Cc: "Ingo Molnar" <mingo@...e.hu>, <linux-kernel@...r.kernel.org>,
<linux-rt-users@...r.kernel.org>
Subject: Re: [PATCH 0/2][RFC] VFCIPI v3
>>> On Tue, Jul 31, 2007 at 10:25 AM, in message <1185891957.12034.12.camel@...ns>,
Peter Zijlstra <peterz@...radead.org> wrote:
> Hi Gregory,
>
> This patch set approaches the problem from the wrong angle (and has a
> few problems due to that).
>
> The idea to use a workqueue (or in your case workqueue-like) solution to
> the problem is valid, however instead of re-using (and improving) the
> current workqueue infrastructure, you re-implement it
This was partially due to my own ignorance of the full workqueue facilities. I was only familiar with "schedule_work" and I had it banged into my head that you can't guarantee which CPU a workqueue runs on *ever*. I wasn't familiar with schedule_work_on_cpu() or its ability to direct the desination, which is very cool. Thanks to you and Ingo for pointing it out to me.
The other side to my decision (and the reason why I didnt actually go dig into the code to see if I could fix the previously mentioned "limitation") was that I was trying to avoid disrupting a primary datapath like workqueue. I thought I could hang this thing on the side so that it only affected the smp_call facility.
I see now that that was a mistake. I will tackle the implementation again with this new approach.
>(with mistakes).
If there was anything more than what you already mention here, please point them out so I don't "port" them over to the workqueues implemenation ;)
>
> Your idea that GFP_ATOMIC is broken in -rt is unfortunate, it isn't. The
> whole allocator is preemptable - that is a feature!
Heh...that may be, and I can see how it is useful to have the allocatorr be generally preemptible. However, I would have thought that "GFP_ATOMIC" means I can call it from atomic code, which is not the case apparently. It's probably just my own ignorance again of what that flag should really mean ;)
In any case I abstracted the heap_allocator away so that I could make an in_atomic friendly allocation. If the GFP_ATOMIC allocator ever supports in_atomic in the future, all we have to do is change vfcipi/heap.h. I am open to other suggestions to this problem, of course.
Regards,
-Greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists