I have a server rocking FreeBSD 13.
From the documentation of sysctl I can read that hw.pagesize cannot be changes on the go. This makes sense to me as this type of parameter depends on the kernel.
I can read also there this:
Some of the variables which cannot be modified during normal system oper-
ation can be initialized via loader(8) tunables. This can for example be
done by setting them in loader.conf(5). Please refer to loader.conf(5)
for more information on which tunables are available and how to set them.
Sadly I cannot find in the documentation of loader(8) nor loader.conf(5) any reference to this I need.
In a naive attempt, I just added the hw.pagesize=... to my /etc/sysctl config file, without any success. Now, when I run pagesize I get my sad 4096 bytes value:
jose@miner:~ $ pagesize
4096
But, how can I make it larger? I would like to use 1GB pages in a system, yet I cannot find anywhere how to enable so.