This commit is contained in:
MacRimi
2025-03-02 11:17:44 +01:00
parent 44014aa2cd
commit 443d371174
4 changed files with 415 additions and 68 deletions

View File

@@ -1,14 +1,15 @@
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:
"Detailed guide to Performance Settings in the ProxMenux post-install script for optimizing Proxmox VE system performance.",
"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:
"Detailed guide to Performance Settings in the ProxMenux post-install script for optimizing Proxmox VE system performance.",
"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: [
@@ -24,11 +25,19 @@ export const metadata: Metadata = {
card: "summary_large_image",
title: "ProxMenux Post-Install: Performance Settings",
description:
"Detailed guide to Performance Settings in the ProxMenux post-install script for optimizing Proxmox VE system performance.",
"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 (
<div className="inline-flex items-center justify-center w-8 h-8 mr-3 text-white bg-blue-500 rounded-full">
<span className="text-sm font-bold">{number}</span>
</div>
)
}
export default function PerformanceSettingsPage() {
return (
<div className="container mx-auto px-4 py-8">
@@ -37,27 +46,64 @@ export default function PerformanceSettingsPage() {
<h1 className="text-3xl font-bold">Performance Settings</h1>
</div>
<p className="mb-4">
The Performance Settings category in the customizable_post_install.sh script is dedicated to optimizing the
overall performance of your Proxmox VE system.
The <strong>Performance Settings</strong> 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.
</p>
<h2 className="text-2xl font-semibold mt-6 mb-4">Available Optimizations</h2>
<ul className="list-disc pl-5 mb-6">
<li className="mb-2">
<strong>CPU Tuning:</strong> Optimize CPU governor and other CPU-related settings.
</li>
<li className="mb-2">
<strong>Memory Management:</strong> Fine-tune memory allocation and swapping behavior.
</li>
<li className="mb-2">
<strong>I/O Optimization:</strong> Adjust I/O scheduler and other disk-related performance settings.
</li>
{/* Add more list items for each optimization in this category */}
</ul>
<h2 className="text-2xl font-semibold mt-6 mb-4">Usage</h2>
<h2 className="text-2xl font-semibold mt-8 mb-4">Available Optimizations</h2>
<h3 className="text-xl font-semibold mt-16 mb-4 flex items-center">
<StepNumber number={1} />
Configure pigz for Faster gzip Compression
</h3>
<p className="mb-4">
During the execution of customizable_post_install.sh, you'll have the option to apply various Performance
Settings. Choose the optimizations that best match your hardware configuration and workload requirements.
This optimization configures pigz as a faster replacement for gzip compression. pigz is a parallel
implementation of gzip for modern multi-processor, multi-core machines.
</p>
<p className="mb-4">The following steps are performed:</p>
<ul className="list-disc pl-5 mb-4">
<li>Enables pigz in the vzdump configuration for faster backups</li>
<li>Installs the pigz package if not already installed</li>
<li>Creates a pigz wrapper script to replace the standard gzip command</li>
<li>Replaces the system gzip command with the pigz wrapper</li>
</ul>
<p className="mb-4">
<strong>Note:</strong> This optimization can significantly speed up compression tasks, especially on systems
with multiple CPU cores.
</p>
<p className="text-lg mb-2">This adjustment automates the following commands:</p>
<CopyableCode
code={`
# Enable pigz in vzdump configuration
sed -i "s/#pigz:.*/pigz: 1/" /etc/vzdump.conf
# Install pigz
apt-get -y install pigz
# Create pigz wrapper script
cat <<EOF > /bin/pigzwrapper
#!/bin/sh
PATH=/bin:\$PATH
GZIP="-1"
exec /usr/bin/pigz "\$@"
EOF
chmod +x /bin/pigzwrapper
# Replace gzip with pigz wrapper
mv -f /bin/gzip /bin/gzip.original
cp -f /bin/pigzwrapper /bin/gzip
chmod +x /bin/gzip
`}
/>
<section className="mt-12 p-4 bg-blue-100 rounded-md">
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
<p>
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.
</p>
</section>
</div>
)
}