From 5c174261707897cae4c31e54b81a0f7d39ae7767 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 1 Mar 2025 19:51:15 +0100 Subject: [PATCH] Update --- web/app/docs/post-install/system/page.tsx | 338 ++-------------------- 1 file changed, 26 insertions(+), 312 deletions(-) diff --git a/web/app/docs/post-install/system/page.tsx b/web/app/docs/post-install/system/page.tsx index 9d37316..0e28519 100644 --- a/web/app/docs/post-install/system/page.tsx +++ b/web/app/docs/post-install/system/page.tsx @@ -31,195 +31,6 @@ export const metadata: Metadata = { } export default function SystemSettingsPage() { - - const fastRebootCode = ` -# Install kexec-tools -sudo apt-get install -y kexec-tools - -# Create kexec-pve service file -sudo tee /etc/systemd/system/kexec-pve.service > /dev/null <> ~/.bash_profile - ` - - const kernelPanicCode = ` -# Create kernel panic configuration file -sudo tee /etc/sysctl.d/99-kernelpanic.conf > /dev/null < /dev/null < /dev/null < /dev/null < /dev/null <> ~/.profile - -# Configure swappiness -sudo tee /etc/sysctl.d/99-swap.conf > /dev/null < /dev/null < /dev/null < /dev/null < /dev/null <
@@ -227,144 +38,47 @@ sudo timedatectl set-ntp true

System Settings

- The System Settings category in the customizable_post_install.sh script focuses on core system configurations - and optimizations for your Proxmox VE installation. These settings are crucial for improving system performance, - stability, and resource management. + The System Settings category in the customizable_post_install.sh script focuses on core system configurations + and optimizations for your Proxmox VE installation. These settings improve performance, stability, and resource management.

-

Available Optimizations

- +
-

1. Enable Fast Reboots

-

- This optimization configures kexec for quick reboots, significantly reducing the time needed for system - restarts. -

-

- Why it's beneficial: Fast reboots are crucial in a virtualization environment where downtime - needs to be minimized. By using kexec, the system can skip the time-consuming hardware initialization process - during a reboot, resulting in much faster restart times. -

-

To apply this optimization manually, run these commands:

- +

Enable Fast Reboots

+

This optimization enables kexec, allowing the system to reboot quickly without full hardware reinitialization.

+

To apply this setting manually, run:

+ > ~/.bash_profile`} />
-

2. Configure Kernel Panic Behavior

-

- This optimization sets up the system to automatically restart on kernel panic, improving system resilience and - uptime. -

-

- Why it's beneficial: Automatic restarts on kernel panic help maintain system availability. - Instead of remaining in a crashed state, the system will attempt to recover by rebooting, potentially - resolving the issue without manual intervention. -

-

To apply this optimization manually, run these commands:

- +

Configure Kernel Panic Behavior

+

Ensures the system reboots automatically after a kernel panic to reduce downtime.

+

To apply this setting manually, run:

+
- +
-

3. Ensure Entropy Pools are Populated

-

- This optimization installs and configures haveged to ensure sufficient entropy, preventing potential slowdowns - in cryptographic operations. -

-

- Why it's beneficial: Many cryptographic operations rely on a pool of random numbers. In - virtual environments, generating true randomness can be challenging, leading to potential bottlenecks. Haveged - helps maintain a healthy entropy pool, ensuring smooth operation of cryptographic tasks. -

-

To apply this optimization manually, run these commands:

- +

Increase System Limits

+

Optimizes system resource management by increasing user and file limits.

+

To apply this setting manually, run:

+
- +
-

4. Increase Various System Limits

-

- This optimization increases various system limits to improve resource management and system performance. -

-

- Why it's beneficial: Default system limits can be too restrictive for high-performance - virtualization environments. Increasing these limits allows for better utilization of system resources, - accommodating more concurrent operations and larger workloads without hitting artificial bottlenecks. -

-

To apply this optimization manually, run these commands:

- +

Optimize Journald

+

Configures system logs to limit excessive disk usage and improve performance.

+

To apply this setting manually, run:

+
- -
-

5. Install Kernel Headers

-

This optimization installs the kernel headers for the current kernel version.

-

- Why it's beneficial: Kernel headers are necessary for building kernel modules, which may be - required by certain software or drivers. Having them installed ensures that you can compile and use custom - kernel modules if needed, enhancing system flexibility and compatibility. -

-

To apply this optimization manually, run these commands:

- -
- -
-

6. Optimize Journald

-

This optimization configures journald for better performance and resource usage.

-

- Why it's beneficial: Optimizing journald helps manage system logs more efficiently. By - limiting log sizes and adjusting logging levels, you can prevent logs from consuming excessive disk space - while still maintaining useful system information for troubleshooting. -

-

To apply this optimization manually, run these commands:

- -
- -
-

7. Optimize Logrotate

-

This optimization configures logrotate for better log management.

-

- Why it's beneficial: Proper log rotation is crucial for managing disk space and maintaining - system performance. By compressing old logs and limiting their size, you prevent log files from growing - indefinitely and potentially filling up your disk. -

-

To apply this optimization manually, run these commands:

- -
- -
-

8. Optimize Memory Settings

-

- This optimization adjusts various memory-related kernel parameters for better performance. -

-

- Why it's beneficial: These memory optimizations can significantly improve system performance, - especially in virtualized environments. They help ensure that memory is used efficiently, reduce the - likelihood of out-of-memory errors, and improve the performance of memory-intensive applications. -

-

To apply this optimization manually, run these commands:

- -
- -
-

9. Synchronize Time Automatically

-

- This optimization configures the system to automatically synchronize its time, ensuring accurate timekeeping. -

-

- Why it's beneficial: Accurate timekeeping is crucial for many system operations, log - consistency, and proper functioning of time-sensitive applications. Automatic synchronization ensures your - Proxmox VE system maintains the correct time without manual intervention. -

-

To apply this optimization manually, run these commands:

- -
- +

Automatic Application

All of these optimizations are automatically applied when selected in the System section of the - customizable_post_install.sh script. This automation ensures that these beneficial settings are applied - consistently and correctly, saving time and reducing the potential for human error. + customizable_post_install.sh script. This ensures that beneficial settings are consistently applied, + improving efficiency and reducing manual setup time.

- ) -} \ No newline at end of file + ); +}