From nobody Thu Jun 29 18:07:15 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QsRHR4TH6z4jt72; Thu, 29 Jun 2023 18:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QsRHR3kFJz3y1d; Thu, 29 Jun 2023 18:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688062035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NOCzACqHuEKxi/D8E+5mNzlHFVozBShe74VFgUSXcEc=; b=SPqy44Cbr5rzc3IBt6NZCLhgZW+luBXH6PgjweZI0mJY6SrTPWgDiXsvL7uzvllYL0cKS4 toXese+LkeFj+1HQopnJOPvQC53fEVpDMWU5OfS0EVbEu9hHbgxgU0r87LXiblDHTP8Ko3 JkWrBHLUwGlmxHCbRvJ8YR7uZFbAGpSw3fEqev9sg9KGPEwcQ6QsMErwJ4WNxmlL8OGy76 UotiV6BT1ouRiNyan1FQPXKx9C41kX4jz4XJ3EothPMwNu1JYtnngXiLY0CQsPHxwene9F Xqu9BUg33jwGfX8Z8UFGwGcCV7l4dB1C1lRZOGeh3Znd+oXJeRYSl2AMR7pzYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688062035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NOCzACqHuEKxi/D8E+5mNzlHFVozBShe74VFgUSXcEc=; b=BP8X71hkE37qMTcdqcQEgbWqw2ctaXvnGp+QhfMGYAG2AMlmxQmcBg1unqWdg71cC1TlY/ Kl8zhReGBGnyG+H1GB1K+FRU96PurOd+cKyu9RWv476RPvUGXWmjx/mnU3qcz9xxP9dkUL vOIG978WG7qLx4WaZUnlicAXWTkHhDGclu7ap1KIKqAoNSDJ57bQDCpemav9bCC/sQWM6v B52zYczUYzp8HX03t40304lirsA3zKOtQfhYLa0uOAFZvQ9y1YOatwwhvs8fUhPYRCzZyd H6G77RNCok05daJ+e34TfARdMCgaEZo6kHDd4nW8+TtFLD0Sq7PJpK7Yd0OWng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688062035; a=rsa-sha256; cv=none; b=Oj60xR0kJNycCar4CfJ5CgDXpYxuRE0+RW89vcGeFh8tgQdvPAAx1kmjnKzkBybLoOeH2h dghi1gGcaM26iCBNNWuNpHoT4w/1Z0ULsLqAHFcKFYIWW6Q7Nrxzuf3/Oj6W4/+9kV8uBl NFSFXEposyDlvcufU7HwnHUa1zbtIWq48nWzX9tdLLeYumYCQNIDQ++QyxL6e6W41k1qML i9jblXkjxICeFGNPua1fi+2JaFbJdGx15ZfmUozv8G9g6gOue5ViBo3luoKLQQ58+k7tNn p/ZazyDcSCGsSvuBd7yJBE2cFmwBcPmdKDTtA6FhK/H1jMqDo8hMnQi5GRFzFA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QsRHR2mrszRQk; Thu, 29 Jun 2023 18:07:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 35TI7FPL052226; Thu, 29 Jun 2023 18:07:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35TI7Fhb052225; Thu, 29 Jun 2023 18:07:15 GMT (envelope-from git) Date: Thu, 29 Jun 2023 18:07:15 GMT Message-Id: <202306291807.35TI7Fhb052225@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Cox Subject: git: e59d202312f9 - main - arm64: make VM_NFREEORDER and the comment describing it match List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: alc X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e59d202312f9868583c6603030ded2476085920d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by alc: URL: https://cgit.FreeBSD.org/src/commit/?id=e59d202312f9868583c6603030ded2476085920d commit e59d202312f9868583c6603030ded2476085920d Author: Alan Cox AuthorDate: 2023-06-28 08:23:09 +0000 Commit: Alan Cox CommitDate: 2023-06-29 17:48:48 +0000 arm64: make VM_NFREEORDER and the comment describing it match The setting of VM_NFREEORDER and the comment describing it were copied from sparc64 where both the page size and the number of page table entries that fit in a cache line are different from arm64. Reviewed by: andrew, kib, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D40782 --- sys/arm64/include/vmparam.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sys/arm64/include/vmparam.h b/sys/arm64/include/vmparam.h index b28a79256453..23b7d0d87c94 100644 --- a/sys/arm64/include/vmparam.h +++ b/sys/arm64/include/vmparam.h @@ -89,14 +89,15 @@ #define VM_FREELIST_DEFAULT 0 /* - * An allocation size of 16MB is supported in order to optimize the - * use of the direct map by UMA. Specifically, a cache line contains - * at most four TTEs, collectively mapping 16MB of physical memory. - * By reducing the number of distinct 16MB "pages" that are used by UMA, - * the physical memory allocator reduces the likelihood of both 4MB - * page TLB misses and cache misses caused by 4MB page TLB misses. + * When PAGE_SIZE is 4KB, an allocation size of 16MB is supported in order + * to optimize the use of the direct map by UMA. Specifically, a 64-byte + * cache line contains at most 8 L2 BLOCK entries, collectively mapping 16MB + * of physical memory. By reducing the number of distinct 16MB "pages" that + * are used by UMA, the physical memory allocator reduces the likelihood of + * both 2MB page TLB misses and cache misses during the page table walk when + * a 2MB page TLB miss does occur. */ -#define VM_NFREEORDER 12 +#define VM_NFREEORDER 13 /* * Enable superpage reservations: 1 level.