Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2014 09:02:39 -0800
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Jung-uk Kim <jkim@freebsd.org>
Cc:        FreeBSD Release Engineering Team <re@freebsd.org>, attilio@freebsd.org, Xin Li <delphij@freebsd.org>, FreeBSD Security Team <secteam@freebsd.org>, Dmitry Sivachenko <trtrmitya@gmail.com>, "freebsd-java@freebsd.org" <freebsd-java@freebsd.org>
Subject:   Re: vm.pmap.pcid_enabled="0" seems to eliminate Java/Jenkins crashing problems in FBSD 10
Message-ID:  <CAG=rPVf9MRprfRa2ORBUHpd62S0cJ3%2Bu-Kv=foqoM%2BpXg40fEA@mail.gmail.com>
In-Reply-To: <5307DD8F.5020501@FreeBSD.org>
References:  <CAG=rPVeZGSs5_rRpRgdoSNK988TYY%2BBK76qeprWcR1JC64ekKQ@mail.gmail.com> <CAJ-FndBKMg9NVm=qn2hmfEbFH-ZVPFr92gVHz3MkbgVXK=xpug@mail.gmail.com> <5307DD8F.5020501@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 21, 2014 at 3:13 PM, Jung-uk Kim <jkim@freebsd.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2014-02-21 17:54:58 -0500, Attilio Rao wrote:
>
>
> No, it is enabled by default on all 10+ AFAICT.
>
>
> http://svnweb.freebsd.org/base/head/sys/amd64/amd64/pmap.c?annotate=261781#l370
>
> http://svnweb.freebsd.org/base/stable/10/sys/amd64/amd64/pmap.c?annotate=260467#l370
>
> http://svnweb.freebsd.org/base/releng/10.0/sys/amd64/amd64/pmap.c?annotate=259065#l370
>


Yes, I looked at the code with Xin Li,
and Xin showed me that the default behavior of the code is
to examine the capabilities of the CPU, and if the PCID feature
is available, it then sets vm.pmap.pcid_enabled=1.

So my next question is:  where is the bug?

If it:
  -> bug in code implementatino of pcid?
  -> bug in FreeBSD VM?
  -> bug in microcode of CPU?

For now I can work around this by turning the feature off,
but it would be nice to fix this, since a lot of effort has been done to
improve performance.
--
Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVf9MRprfRa2ORBUHpd62S0cJ3%2Bu-Kv=foqoM%2BpXg40fEA>