From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 20 19:29:08 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 16EA27D3 for ; Sat, 20 Oct 2012 19:29:08 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B6B238FC08 for ; Sat, 20 Oct 2012 19:29:07 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so2112709vbm.13 for ; Sat, 20 Oct 2012 12:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=zKMs9CrwkpCz0yGkAB3OOu/AB2aht1AGy/PjsjjeaF8=; b=Y8kzFmDttr353vWofQKNUaa4zNA7vsVjHTKXZPS1VIg2JJUo4dbmmLe9wfXQbaf8Eu U+efeeeI1f287OK8Q9AC93Zgk8sywuBkvDuTEqMmU2qkfTmu1eT3WQbw0TBOou+5N1Cp cQkq0n2hUGLPGrT01+s0LRAoDZUz9iXfGyJBJ6aTh0ngsL0V+k5LnjC3C3+CHrcZLJSI nIvxEq2khvUBZl6NJibuEBOA3k6DguLhdMha9CM2VhcmqsLhmFIA1a+Pau//qcsm9JWX Uzxy8C2Lt2gQjoLI1xrieVbOJVifRsA79BbABPbGZkk/77oz2mia81u2Is6p2s+6UafD 5qxA== Received: by 10.220.208.141 with SMTP id gc13mr7125636vcb.55.1350761346877; Sat, 20 Oct 2012 12:29:06 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.59.0.37 with HTTP; Sat, 20 Oct 2012 12:28:25 -0700 (PDT) In-Reply-To: <191784842.2570110.1350737132305.JavaMail.root@erie.cs.uoguelph.ca> References: <191784842.2570110.1350737132305.JavaMail.root@erie.cs.uoguelph.ca> From: Ivan Voras Date: Sat, 20 Oct 2012 21:28:25 +0200 X-Google-Sender-Auth: sdtoGD1C3xtDti_eUN65Oyy525w Message-ID: Subject: Re: NFS server bottlenecks To: Rick Macklem Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org Hackers" , Nikolay Denev X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 19:29:08 -0000 On 20 October 2012 14:45, Rick Macklem wrote: > Ivan Voras wrote: >> I don't know how to interpret the rise in context switches; as this is >> kernel code, I'd expect no context switches. I hope someone else can >> explain. >> > Don't the mtx_lock() calls spin for a little while and then context > switch if another thread still has it locked? Yes, but are in-kernel context switches also counted? I was assuming they are light-weight enough not to count. > Hmm, I didn't look, but were there any tests using UDP mounts? > (I would have thought that your patch would mainly affect UDP mounts, > since that is when my version still has the single LRU queue/mutex. Another assumption - I thought UDP was the default. > As I think you know, my concern with your patch would be correctness > for UDP, not performance.) Yes.