]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r350463
authorAlan Cox <alc@FreeBSD.org>
Wed, 18 Sep 2019 07:25:04 +0000 (07:25 +0000)
committerAlan Cox <alc@FreeBSD.org>
Wed, 18 Sep 2019 07:25:04 +0000 (07:25 +0000)
commitfe28a2545765be30730356177fdfdf081e4c0236
tree8b3202413c85ddd326f461d6d31275f4fb313768
parent0aa440294c980e29b702b71973a3006feebc51dc
MFC r350463
  In pmap_advise(), when we encounter a superpage mapping, we first demote
  the mapping and then destroy one of the 4 KB page mappings so that there
  is a potential trigger for repromotion.  Currently, we destroy the first
  4 KB page mapping that falls within the (current) superpage mapping or the
  virtual address range [sva, eva).  However, I have found empirically that
  destroying the last 4 KB mapping produces slightly better results,
  specifically, more promotions and fewer failed promotion attempts.
  Accordingly, this revision changes pmap_advise() to destroy the last 4 KB
  page mapping.  It also replaces some nearby uses of boolean_t with bool.
sys/amd64/amd64/pmap.c
sys/arm64/arm64/pmap.c
sys/i386/i386/pmap.c