git: plan9front

Download patch

ref: 461ba8aaa0b2eb33e36765551c70a9c16aa39b09
parent: 47f2839fc9fb3a0fa227bc4a8781791cfde48bc6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 13 08:50:36 EDT 2025

kernel: double image hash hash-table size from 512 -> 1024 buckets

We have on the order of 200 images total in the system,
meaning it takes us just 1.6MB total for the hash chains.

And larger chains helps with big images like the fscache.

Typical population is like 2k pages per image.

--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -473,7 +473,7 @@
 	MNTLOG	=	5,
 	MNTHASH =	1<<MNTLOG,	/* Hash to walk mount table */
 	NFD =		100,		/* per process file descriptors */
-	PGHLOG  =	9,
+	PGHLOG  =	10,
 	PGHSIZE	=	1<<PGHLOG,	/* Page hash for image lookup */
 	ENVLOG =	5,
 	ENVHASH =	1<<ENVLOG,	/* Egrp hash for variable lookup */
--