import type { Metadata } from "next" import { Zap } from "lucide-react" import CopyableCode from "@/components/CopyableCode" export const metadata: Metadata = { title: "ProxMenux Post-Install: Performance Settings", description: "Guide to Performance Settings in the ProxMenux post-install script for optimizing your Proxmox VE system performance.", openGraph: { title: "ProxMenux Post-Install: Performance Settings", description: "Guide to Performance Settings in the ProxMenux post-install script for optimizing your Proxmox VE system performance.", type: "article", url: "https://macrimi.github.io/ProxMenux/docs/post-install/performance", images: [ { url: "https://macrimi.github.io/ProxMenux/performance-settings-image.png", width: 1200, height: 630, alt: "ProxMenux Post-Install Performance Settings", }, ], }, twitter: { card: "summary_large_image", title: "ProxMenux Post-Install: Performance Settings", description: "Guide to Performance Settings in the ProxMenux post-install script for optimizing your Proxmox VE system performance.", images: ["https://macrimi.github.io/ProxMenux/performance-settings-image.png"], }, } function StepNumber({ number }: { number: number }) { return (
{number}
) } export default function PerformanceSettingsPage() { return (

Performance Settings

The Performance Settings category focuses on optimizing various aspects of your Proxmox VE system to enhance overall performance. These settings are designed to improve system efficiency and speed up certain operations.

Available Optimizations

Configure pigz for Faster gzip Compression

This optimization replaces the default gzip compression with pigz, a parallelized version that speeds up compression by utilizing multiple CPU cores.

What does this configuration do?

How is pigz configured?

This automation executes the following commands:

/bin/pigzwrapper #!/bin/sh PATH=/bin:\$PATH GZIP="-1" exec /usr/bin/pigz "\$@" EOF chmod +x /bin/pigzwrapper # Replace gzip with pigz wrapper (backup original gzip binary) if [ ! -f /bin/gzip.original ]; then mv -f /bin/gzip /bin/gzip.original cp -f /bin/pigzwrapper /bin/gzip chmod +x /bin/gzip fi `} />

How to Verify pigz is Active

You can confirm that pigz is being used by running the following command:

If the output mentions pigz, the replacement was successful.

Performance Test: gzip vs. pigz

To measure the speed difference between gzip and pigz, try compressing a large file:

Since pigz utilizes multiple CPU cores, the compression process should be significantly faster.

With this optimization, vzdump backups and all gzip compression tasks benefit from parallel processing, reducing execution time considerably.

Automatic Application

This performance optimization is automatically applied when selected in the Performance section. The automation ensures that pigz is correctly configured and integrated into your system, potentially improving the speed of compression operations without requiring manual intervention.

) }