Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2016 09:38:58 -0600
From:      Alan Cox <alc@rice.edu>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>, Alan Cox <alc@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r309703 - in head/sys: amd64/amd64 arm64/arm64 i386/i386 vm
Message-ID:  <9d908236-8875-c03a-fca5-b7a140042fa9@rice.edu>
In-Reply-To: <20161208130110.GQ57876@zxy.spb.ru>
References:  <201612080429.uB84TToV048828@repo.freebsd.org> <20161208130110.GQ57876@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/08/2016 07:01, Slawa Olhovchenkov wrote:
> On Thu, Dec 08, 2016 at 04:29:29AM +0000, Alan Cox wrote:
>
>> Author: alc
>> Date: Thu Dec  8 04:29:29 2016
>> New Revision: 309703
>> URL: https://svnweb.freebsd.org/changeset/base/309703
>>
>> Log:
>>   Previously, vm_radix_remove() would panic if the radix trie didn't
>>   contain a vm_page_t at the specified index.  However, with this
>>   change, vm_radix_remove() no longer panics.  Instead, it returns NUL=
L
>>   if there is no vm_page_t at the specified index.  Otherwise, it
>>   returns the vm_page_t.  The motivation for this change is that it
>>   simplifies the use of radix tries in the amd64, arm64, and i386 pmap=

>>   implementations.  Instead of performing a lookup before every remove=
,
>>   the pmap can simply perform the remove.
> Is this performance improvement?
>
>

In that it reduces the number of radix trie operations performed by the
pmap, yes.  However, radix tries are only used in the pmap to store page
table pages that were formerly used by now promoted superpages, so the
net effect is going to be small.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9d908236-8875-c03a-fca5-b7a140042fa9>