zlacker

[return to "Postgres Postmaster does not scale"]
1. kayson+p82[view] [source] 2026-02-05 05:41:27
>>davidg+(OP)
> sudo echo $NUM_PAGES > /proc/sys/vm/nr_hugepages

This won't work :) echo will run as root but the redirection is still running as the unprivileged user. Needs to be run from a privileged shell or by doing something like sudo sh -c "echo $NUM_PAGES > /proc/sys/vm/nr_hugepages"

The point gets across, though, technicality notwithstanding.

◧◩
2. timeto+Fb2[view] [source] 2026-02-05 06:16:21
>>kayson+p82
Great point, I was running as root so I didn't pick this up. Corrected, thank you!
[go to top]