From owner-freebsd-mips@FreeBSD.ORG Mon Oct 17 14:18:27 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4787A106564A; Mon, 17 Oct 2011 14:18:27 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 201928FC17; Mon, 17 Oct 2011 14:18:25 +0000 (UTC) Received: by wyi40 with SMTP id 40so2267325wyi.13 for ; Mon, 17 Oct 2011 07:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8qN2lpt9iWtp9j+aYZhSH3tVFl8vrUKoQhaiZGzEtBY=; b=fyluG5Qpu+gV+uGTeEnId03tz+Gh6TsZS3KHOAaVVdgmILYmoNfKeqIERsDIniso+i vA2gDUD4Jx71F4lU96RTNImVdTvxL1+qbBVCnMrhp4AQQjhZCBOaYDK+VtN6seF++y3s nJwJ+ihuHXA0ZzTKEl2XAJdyNWekoh6YES4ho= MIME-Version: 1.0 Received: by 10.216.139.224 with SMTP id c74mr5012543wej.11.1318861105177; Mon, 17 Oct 2011 07:18:25 -0700 (PDT) Sender: c.jayachandran@gmail.com Received: by 10.216.188.3 with HTTP; Mon, 17 Oct 2011 07:18:24 -0700 (PDT) In-Reply-To: References: <20111002110331.GF1511@deviant.kiev.zoral.com.ua> Date: Mon, 17 Oct 2011 19:48:24 +0530 X-Google-Sender-Auth: P0xvS8iYLndFzSRqnadewQOMprI Message-ID: From: "Jayachandran C." To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: svn commit: r225892 - head/sys/mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 14:18:27 -0000 On Thu, Oct 13, 2011 at 9:28 PM, Jayachandran C. wro= te: > Hi Adrian, > > On Tue, Oct 4, 2011 at 9:48 PM, Adrian Chadd wrote: >> On 4 October 2011 23:48, Adrian Chadd wrote: >>> Hi all, >>> >>> I've tried jc's patch. The hand-wavy, brief summary when tested on my >>> hostap (mips): >>> >>> * when doing single-stream, one way TCP tests (where it thus needs >>> TX/RX traffic to occur), I get 100% CPU utilisation - 50% interrupt, >>> 50% system, but the total interrupt rate isn't too high. It's much >>> higher than without his patch. I'll go digging later to see what's >>> going on. >> >> This turns out to be my fault. I seem to have somehow messed up >> something in one of my more recent commits. >> I'm quite certain that it won't have any impact on the results, as I >> never see the interrupt latency issue with bidirectional traffic. >> >> The UDP results are correct though - jc's stuff hasn't entirely fixed >> it. I'll do some more testing tomorrow morning and report what I find. > > I'm thinking of checking in this patch so that it gets wider testing. > Did you get a chance to do the tests? > > The patch does not cause any further problems =A0for me on XLR/XLP - I > have been testing it for a few days. =A0But I don't really have a > testcase for the issue you see. If there are no objections, I'm planning to check this in. I can keep the two if(!busy) blocks in cpu_idle() commented if you prefer, and that should give the same behavior as you are seeing now. JC.