From 0aa60c3218e09a7c8b92889a7bae891e20d203cb Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 2 Mar 2025 18:54:24 +0100 Subject: [PATCH] Update --- web/app/docs/post-install/network/page.tsx | 97 ++++++- .../docs/post-install/performance/page.tsx | 246 +++++++++++++++--- 2 files changed, 294 insertions(+), 49 deletions(-) diff --git a/web/app/docs/post-install/network/page.tsx b/web/app/docs/post-install/network/page.tsx index 92f5b00..8bd4bac 100644 --- a/web/app/docs/post-install/network/page.tsx +++ b/web/app/docs/post-install/network/page.tsx @@ -169,24 +169,101 @@ echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 Install Open vSwitch -

This optimization installs Open vSwitch (OVS), a multilayer virtual switch designed for modern virtualized environments.

+

- Why it's beneficial: - Provides advanced networking capabilities, including VLAN tagging, trunking, - traffic shaping, and Quality of Service (QoS). OVS enables more flexible and scalable network configurations, - making it ideal for complex virtualization setups requiring fine-grained traffic control. + This optimization installs Open vSwitch (OVS), a multilayer virtual switch + designed for modern virtualized environments. OVS enhances network management by enabling + advanced features for virtualized infrastructures.

+ +

+ Why it's beneficial: + Open vSwitch provides powerful networking capabilities, including: +

+ + +

This adjustment automates the following commands:

+ +

Basic Usage: Creating a Virtual Switch

+

+ Once installed, Open vSwitch can be used to create virtual network bridges. Below is an example of how to create a virtual switch named br0 and add a network interface to it. +

+ + + +

Adding VLANs to Open vSwitch

+

+ Open vSwitch allows VLAN tagging to segment network traffic. Below is an example of how to add an interface to a specific VLAN. +

+ + + +

Trunking Multiple VLANs

+

+ If an interface needs to carry multiple VLANs (trunk mode), use the following command: +

+ + + +

Deleting a Bridge or Port

+

+ If you need to remove a bridge or a port from Open vSwitch, use these commands: +

+ + + +

+ Open vSwitch enables advanced networking capabilities for virtual environments, allowing greater + control over network traffic, security, and performance optimizations. +

+ +

Optimize Network Interface Settings diff --git a/web/app/docs/post-install/performance/page.tsx b/web/app/docs/post-install/performance/page.tsx index 7a6b6b8..adb7ef7 100644 --- a/web/app/docs/post-install/performance/page.tsx +++ b/web/app/docs/post-install/performance/page.tsx @@ -52,49 +52,217 @@ export default function PerformanceSettingsPage() {

Available Optimizations

-

- - Configure pigz for Faster gzip Compression -

-

- 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. -

-

The following steps are performed:

-
    -
  • Enables pigz in the vzdump configuration for faster backups
  • -
  • Installs the pigz package if not already installed
  • -
  • Creates a pigz wrapper script to replace the standard gzip command
  • -
  • Replaces the system gzip command with the pigz wrapper
  • -
-

- Note: This optimization can significantly speed up compression tasks, especially on systems - with multiple CPU cores. -

-

This adjustment automates the following commands:

- + + Configure pigz for Faster gzip Compression +

-# Install pigz -apt-get -y install pigz +

+ This optimization configures pigz as a faster replacement for gzip compression. + Pigz is a parallel implementation of gzip that utilizes multiple CPU cores, + significantly improving compression speed on modern systems. +

-# Create pigz wrapper script -cat < /bin/pigzwrapper -#!/bin/sh -PATH=/bin:\$PATH -GZIP="-1" -exec /usr/bin/pigz "\$@" -EOF -chmod +x /bin/pigzwrapper +

Why use pigz instead of gzip?

+
    +
  • Parallel processing: Uses all available CPU cores for faster compression.
  • +
  • Faster vzdump backups: When used with Proxmox's vzdump, it reduces backup times.
  • +
  • Drop-in replacement for gzip: It works exactly like gzip but is much more efficient.
  • +
-# Replace gzip with pigz wrapper -mv -f /bin/gzip /bin/gzip.original -cp -f /bin/pigzwrapper /bin/gzip -chmod +x /bin/gzip +

The following steps are performed:

+
    +
  • Enables pigz in the vzdump configuration for faster backups.
  • +
  • Installs the pigz package if not already installed.
  • +
  • Creates a pigz wrapper script to replace the standard gzip command.
  • +
  • Replaces the system gzip command with the pigz wrapper.
  • +
+ +

+ Note: This optimization can significantly speed up compression tasks, especially on systems + with multiple CPU cores. +

+ +

This adjustment automates 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 + mv -f /bin/gzip /bin/gzip.original + cp -f /bin/pigzwrapper /bin/gzip + chmod +x /bin/gzip `} - /> + /> + +

How to Use pigz

+

+ Pigz works the same way as gzip but compresses files much faster by using multiple CPU cores. + Here’s how you can test its performance: +

+ + + +

+ The output will show that pigz completes the compression significantly faster than gzip. + To check the number of CPU cores pigz is using, run: +

+ + + +

Verifying pigz Replacement

+

+ After replacing gzip with pigz, you can confirm that the system is using pigz instead of gzip: +

+ + + +

+ The output should show that /bin/gzip is now linked to the pigz wrapper. +

+ +

+ By enabling pigz, compression-heavy tasks like vzdump backups and log archiving + will run much faster, leveraging multi-core processing. +

+ + +

+ + Configure pigz for Faster gzip Compression +

+ +

+ This optimization configures pigz as a faster replacement for gzip compression. + Pigz is a parallel implementation of gzip that utilizes multiple CPU cores, + significantly improving compression speed on modern systems. +

+ +

Why use pigz instead of gzip?

+
    +
  • Parallel processing: Uses all available CPU cores for faster compression.
  • +
  • Faster vzdump backups: When used with Proxmox's vzdump, it reduces backup times.
  • +
  • Drop-in replacement for gzip: It works exactly like gzip but is much more efficient.
  • +
+ +

The following steps are performed:

+
    +
  • Enables pigz in the vzdump configuration for faster backups.
  • +
  • Installs the pigz package if not already installed.
  • +
  • Creates a pigz wrapper script to replace the standard gzip command.
  • +
  • Replaces the system gzip command with the pigz wrapper.
  • +
+ +

+ Note: This optimization can significantly speed up compression tasks, especially on systems + with multiple CPU cores. +

+ +

This adjustment automates 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 + mv -f /bin/gzip /bin/gzip.original + cp -f /bin/pigzwrapper /bin/gzip + chmod +x /bin/gzip + `} + /> + +

How to Use pigz

+

+ Pigz works the same way as gzip but compresses files much faster by using multiple CPU cores. + Here’s how you can test its performance: +

+ + + +

+ The output will show that pigz completes the compression significantly faster than gzip. + To check the number of CPU cores pigz is using, run: +

+ + + +

Verifying pigz Replacement

+

+ After replacing gzip with pigz, you can confirm that the system is using pigz instead of gzip: +

+ + + +

+ The output should show that /bin/gzip is now linked to the pigz wrapper. +

+ +

+ By enabling pigz, compression-heavy tasks like vzdump backups and log archiving + will run much faster, leveraging multi-core processing. +

+

Automatic Application