Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jun 2011 22:30:19 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-performance@freebsd.org, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: tlb shootdown
Message-ID:  <20110602193019.GI48734@deviant.kiev.zoral.com.ua>
In-Reply-To: <4DE79D2F.8050907@FreeBSD.org>
References:  <4DE61E6F.1010209@FreeBSD.org> <is7u3u$jhf$1@dough.gmane.org> <4DE79D2F.8050907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--5OeNRVRLQ41UuqCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 02, 2011 at 05:24:47PM +0300, 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 differen=
ce in tlb
> >> shootdown performance (or its lack)?
> >=20
> > The "tlb" utility from lmbench may help you.
>=20
> Just because it's named tlb and I asked for tlb something? :)
>=20
> tlb - TLB size and latency benchmark
> ...
> tlb tries to determine the size, in pages, of  the  TLB.   The  largest
> amount of memory it will examine is len bytes.
> ...
> Once  the  TLB  boundary is located tlb reports the TLB miss latency as
> the TLB latency for twice as many pages as the TLB can hold.
>=20
> I am not this will tell anything about TLB _shootdown_ performance of SMP=
 systems.
> Perhaps I wasn't specific enough in my original question.

Apparently, lmbench does not install a single multithreaded binary.
So, despite my expectation, it is not useful for what you have asked.

I think, the working scenario would be to have multithreaded process,
each thread of which does mmap, then accesses the mmaped pages, then
unmaps the region. You would count the number of accesses per time unit,
the more the better.

--5OeNRVRLQ41UuqCe
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk3n5MoACgkQC3+MBN1Mb4iEqQCgjApNgtBmqYWGFblGTZ2KmpuC
dpwAn2oWNA6WchRwnpC/8Di99NfOZTK+
=8vTi
-----END PGP SIGNATURE-----

--5OeNRVRLQ41UuqCe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110602193019.GI48734>