Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763502AbXF1Mjt (ORCPT ); Thu, 28 Jun 2007 08:39:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758258AbXF1Mjl (ORCPT ); Thu, 28 Jun 2007 08:39:41 -0400 Received: from ms-smtp-05.nyroc.rr.com ([24.24.2.59]:38066 "EHLO ms-smtp-05.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757146AbXF1Mjk (ORCPT ); Thu, 28 Jun 2007 08:39:40 -0400 Date: Thu, 28 Jun 2007 08:37:23 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Dan Williams cc: Ingo Molnar , Linus Torvalds , LKML , Andrew Morton , Thomas Gleixner , Christoph Hellwig , john stultz , Oleg Nesterov , "Paul E. McKenney" , Dipankar Sarma , "David S. Miller" , kuznet@ms2.inr.ac.ru Subject: Re: [RFC PATCH 0/6] Convert all tasklets to workqueues In-Reply-To: Message-ID: References: <20070622040014.234651401@goodmis.org> <20070622204058.GA11777@elte.hu> <20070622215953.GA22917@elte.hu> <1182823276.5493.240.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1621 Lines: 50 Hi Dan, On Mon, 25 Jun 2007, Dan Williams wrote: > Yes you are right, ARM does not flush L1 when prev==next in switch_mm. > > > Perhaps something else is at fault here. > > > I'll try and dig a bit deeper... BTW: static int __init iop_adma_init (void) { + iop_adma_workqueue = create_workqueue("iop-adma"); + if (!iop_adma_workqueue) + return -ENODEV; + Could you also try upping the prio of all the "iop-adma" threads? You should see thread names such as (on SMP) "iop-adma/0", "iop-adma/1" ... "iop-adma/N" where N = # of CPUs - 1. do a "chrt -p -f 98 " once for each of the thread's PIDs. The chrt can be found in the package "util-linux" on Red Hat / Fedora, and in schedutils on Debian. It just dawned on me that workqueues don't run at a high priority by default. So it's funny that I'm running all my current tasklets as a low priority work queues :-) But that can certainly be a cause of high latency. I need to update my patches to make the workqueue thread a higher priority. All benchmarks on this patch have been using a low priority work queue. I also don't see any nice API to have the priority set for a workqueue thread from within the kernel. Looks like one needs to be added, otherwise, I need to have the wrapper dig into the workqueue structs to find the thread that handles the workqueue. Thanks, -- Steve - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/