mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update
This commit is contained in:
parent
d1e01c82d7
commit
206cf74f60
@ -1,43 +0,0 @@
|
|||||||
import type { Metadata } from "next"
|
|
||||||
import { Cpu } from "lucide-react"
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: "ProxMenux Post-Install: Hardware Settings",
|
|
||||||
description:
|
|
||||||
"Comprehensive guide to Hardware Settings in the ProxMenux post-install script for Proxmox VE hardware optimization.",
|
|
||||||
// ... (rest of the metadata remains the same)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function HardwareSettingsPage() {
|
|
||||||
return (
|
|
||||||
<div className="container mx-auto px-4 py-8">
|
|
||||||
<div className="flex items-center mb-6">
|
|
||||||
<Cpu className="h-8 w-8 mr-2 text-blue-500" />
|
|
||||||
<h1 className="text-3xl font-bold">Hardware Settings</h1>
|
|
||||||
</div>
|
|
||||||
<p className="mb-4">
|
|
||||||
The Hardware Settings category in the customizable_post_install.sh script focuses on optimizing Proxmox VE for
|
|
||||||
your specific hardware configuration.
|
|
||||||
</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 Optimizations:</strong> Configure settings for optimal CPU performance.
|
|
||||||
</li>
|
|
||||||
<li className="mb-2">
|
|
||||||
<strong>Memory Management:</strong> Optimize memory usage and allocation.
|
|
||||||
</li>
|
|
||||||
<li className="mb-2">
|
|
||||||
<strong>Storage Performance:</strong> Tune storage settings for improved I/O performance.
|
|
||||||
</li>
|
|
||||||
{/* Add more list items for each optimization in this category */}
|
|
||||||
</ul>
|
|
||||||
<h2 className="text-2xl font-semibold mt-6 mb-4">Usage</h2>
|
|
||||||
<p className="mb-4">
|
|
||||||
During the execution of customizable_post_install.sh, you'll have the option to apply various Hardware Settings
|
|
||||||
optimizations. Choose the ones that are most relevant to your hardware setup for best results.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -32,15 +32,14 @@ export const metadata: Metadata = {
|
|||||||
const categories = [
|
const categories = [
|
||||||
{ name: "Basic Settings", order: 1 },
|
{ name: "Basic Settings", order: 1 },
|
||||||
{ name: "System", order: 2 },
|
{ name: "System", order: 2 },
|
||||||
{ name: "Hardware", order: 3 },
|
{ name: "Virtualization", order: 3 },
|
||||||
{ name: "Virtualization", order: 4 },
|
{ name: "Network", order: 4 },
|
||||||
{ name: "Network", order: 5 },
|
{ name: "Storage", order: 5 },
|
||||||
{ name: "Storage", order: 6 },
|
{ name: "Security", order: 6 },
|
||||||
{ name: "Security", order: 7 },
|
{ name: "Customization", order: 7 },
|
||||||
{ name: "Customization", order: 8 },
|
{ name: "Monitoring", order: 8 },
|
||||||
{ name: "Monitoring", order: 9 },
|
{ name: "Performance", order: 9 },
|
||||||
{ name: "Performance", order: 10 },
|
{ name: "Optional", order: 10 },
|
||||||
{ name: "Optional", order: 11 },
|
|
||||||
]
|
]
|
||||||
|
|
||||||
export default function PostInstallPage() {
|
export default function PostInstallPage() {
|
||||||
|
@ -136,53 +136,6 @@ sudo systemctl start ksm
|
|||||||
`}
|
`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<h3 className="text-xl font-semibold mt-20 mb-4 flex items-center">
|
|
||||||
<StepNumber number={4} />
|
|
||||||
Optimize CPU Governor
|
|
||||||
</h3>
|
|
||||||
<p className="mb-4">
|
|
||||||
This setting configures the CPU governor to optimize performance for virtualization workloads.
|
|
||||||
</p>
|
|
||||||
<p className="mb-4">
|
|
||||||
<strong>Why it's beneficial:</strong> The CPU governor controls how the processor scales its frequency based on
|
|
||||||
system load. For virtualization environments, setting the governor to 'performance' ensures that the CPU always
|
|
||||||
runs at its maximum frequency, providing consistent performance for VMs. This is crucial for workloads that
|
|
||||||
require predictable and high CPU performance.
|
|
||||||
</p>
|
|
||||||
<p className="text-lg mb-2">This adjustment automates the following commands:</p>
|
|
||||||
<CopyableCode
|
|
||||||
code={`
|
|
||||||
sudo apt-get install -y cpufrequtils
|
|
||||||
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils
|
|
||||||
sudo systemctl restart cpufrequtils
|
|
||||||
`}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<h3 className="text-xl font-semibold mt-20 mb-4 flex items-center">
|
|
||||||
<StepNumber number={5} />
|
|
||||||
Enable Huge Pages Support
|
|
||||||
</h3>
|
|
||||||
<p className="mb-4">
|
|
||||||
This optimization enables and configures huge pages support, which can improve memory management efficiency for
|
|
||||||
large-memory VMs.
|
|
||||||
</p>
|
|
||||||
<p className="mb-4">
|
|
||||||
<strong>Why it's beneficial:</strong> Huge pages reduce the overhead of Translation Lookaside Buffer (TLB)
|
|
||||||
lookups, which can significantly improve performance for memory-intensive applications running in VMs. This is
|
|
||||||
particularly beneficial for databases, in-memory caches, and other applications that manage large amounts of
|
|
||||||
memory.
|
|
||||||
</p>
|
|
||||||
<p className="text-lg mb-2">This adjustment automates the following commands:</p>
|
|
||||||
<CopyableCode
|
|
||||||
code={`
|
|
||||||
echo "vm.nr_hugepages = 1024" | sudo tee -a /etc/sysctl.conf
|
|
||||||
sudo sysctl -p
|
|
||||||
|
|
||||||
echo "hugetlbfs /dev/hugepages hugetlbfs defaults 0 0" | sudo tee -a /etc/fstab
|
|
||||||
sudo mount -a
|
|
||||||
`}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<section className="mt-12 p-4 bg-blue-100 rounded-md">
|
<section className="mt-12 p-4 bg-blue-100 rounded-md">
|
||||||
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
|
<h2 className="text-xl font-semibold mb-2">Automatic Application</h2>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user