From owner-freebsd-performance@FreeBSD.ORG Thu Jun 2 15:40:01 2011 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F9A21065670; Thu, 2 Jun 2011 15:40:01 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 32BFC8FC15; Thu, 2 Jun 2011 15:40:01 +0000 (UTC) Received: by yie12 with SMTP id 12so610909yie.13 for ; Thu, 02 Jun 2011 08:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=gZ9YV/NMgeOG7ai+jhDsHgW3W0NNQX7ebUNmshtMQcs=; b=G+xyWI8IpU6HI7zbiOLQBBepAVjCjsSMwM6ij1DnDLpB33aaZO66oBZa+ZoKqQ7UNA GjXjLNKeqq+2WVhSkRkPpbh7y/XSi4J8rmhNsxb6mTaKEKwf/QQvq2d+GreFyEnMgZmM 9GUNp1kiSfh4ywRHdo3H+KxpVvntrLZp7IZok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=ChIB/sXXz7vxfJ4MnVgSohrkoru/RCHLleGJYnqYjG39oJTdhWqfQk8N4V8Qrshw3s Xq7qM8Lv1gMKyfTh+j20jesJeB6glENBpnb06V6UgjSGraORkWUPvFZeT1iJwi7tXnv+ InpwAgqJqMKhjxj3bcnIIUNWBqm9iX13mi0Ws= Received: by 10.91.182.3 with SMTP id j3mr783802agp.66.1307027671258; Thu, 02 Jun 2011 08:14:31 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.100.3.15 with HTTP; Thu, 2 Jun 2011 08:13:51 -0700 (PDT) In-Reply-To: <4DE79D2F.8050907@FreeBSD.org> References: <4DE61E6F.1010209@FreeBSD.org> <4DE79D2F.8050907@FreeBSD.org> From: Ivan Voras Date: Thu, 2 Jun 2011 17:13:51 +0200 X-Google-Sender-Auth: I1ZgZ0ODQ7ZCU7Pw1GazxsPNTPM Message-ID: To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Cc: freebsd-performance@freebsd.org Subject: Re: tlb shootdown X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 15:40:01 -0000 On 2 June 2011 16:24, Andriy Gapon wrote: > on 02/06/2011 15:02 Ivan Voras said the following: >> On 01/06/2011 13:11, Andriy Gapon wrote: >>> >>> Anyone knows of a benchmark/test that can measure/demonstrate difference in tlb >>> shootdown performance (or its lack)? >> >> The "tlb" utility from lmbench may help you. > > Just because it's named tlb and I asked for tlb something? :) No, because it satisfies one thing you asked for: measuring tlb shootdown performance: ./tlb -c tlb: 16 pages 0.75218 nanoseconds If you look at the code, this is probably exactly what you need: the difference between the case with tlb misses and without.