The document shows commands to configure and view hugepages on a Linux system. It pipes the output of awk command parsing /proc/meminfo into sort and grep to display hugepage sizes and usage. It then echoes a configuration to /etc/sysctl.d/42-hugepages.conf to set the number of hugepages to 2048, with each page being 2 MB in size for a total of 4 GB of hugepages. Finally, it runs sysctl --system to apply the configuration.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
46 views1 page
Configure Postgres Performance Huge Pages
The document shows commands to configure and view hugepages on a Linux system. It pipes the output of awk command parsing /proc/meminfo into sort and grep to display hugepage sizes and usage. It then echoes a configuration to /etc/sysctl.d/42-hugepages.conf to set the number of hugepages to 2048, with each page being 2 MB in size for a total of 4 GB of hugepages. Finally, it runs sysctl --system to apply the configuration.