update changelog

This commit is contained in:
MacRimi 2025-05-13 20:59:52 +02:00
parent ea14ff2bdc
commit c565097a63
4 changed files with 84 additions and 19 deletions

View File

@ -1,3 +1,49 @@
## 2025-05-13
### Fixed
- **Startup Fix on Newer Proxmox Versions**\
Fixed an issue where some recent Proxmox installations lacked the `/usr/local/bin` directory, causing errors when installing the execution menu. The script now creates the directory if it does not exist before downloading the main menu.\
🙏 Thanks to **@danielmateos** for detecting and reporting this issue.
### Improved
- **Updated Lynis Installation Logic in Post-Install Settings**\
The `install_lynis()` function was improved to always install the **latest version** of Lynis by cloning the official GitHub repository:
```
https://github.com/CISOfy/lynis.git
```
The installation process now ensures the latest version is always fetched and linked properly within the system path.
🙏 Thanks to **@Kamunhas** for reporting this enhancement opportunity.
- **Balanced Memory Optimization for Low-Memory Systems**
Improved the default memory settings to better support systems with limited RAM. The previous configuration could prevent low-spec servers from booting. Now, a more balanced set of kernel parameters is used, and memory compaction is enabled if supported by the system.
```bash
cat <<EOF | sudo tee /etc/sysctl.d/99-memory.conf
# Balanced Memory Optimization
vm.swappiness = 10
vm.dirty_ratio = 15
vm.dirty_background_ratio = 5
vm.overcommit_memory = 1
vm.max_map_count = 65530
EOF
# Enable memory compaction if supported by the system
if [ -f /proc/sys/vm/compaction_proactiveness ]; then
echo "vm.compaction_proactiveness = 20" | sudo tee -a /etc/sysctl.d/99-memory.conf
fi
# Apply settings
sudo sysctl -p /etc/sysctl.d/99-memory.conf
```
These values help maintain responsiveness and system stability even under constrained memory conditions.
🙏 Thanks to **@chesspeto** for pointing out this issue and helping refine the optimization.
## 2025-05-04
### Added

View File

@ -137,27 +137,46 @@ sudo systemctl restart systemd-journald
`}
/>
<h3 className="text-xl font-semibold mt-16 mb-4 flex items-center">
<StepNumber number={5} />
Optimize Memory Management
</h3>
<p className="mb-4">
This optimization adjusts kernel parameters to improve <strong>memory allocation</strong> and <strong>system responsiveness.</strong>
</p>
<p className="mb-4">
<h3 className="text-xl font-semibold mt-16 mb-4 flex items-center">
<StepNumber number={5} />
Optimize Memory Management
</h3>
<p className="mb-4">
This memory optimization configures low-level kernel parameters to improve <strong>system responsiveness</strong> and <strong>RAM availability</strong>, especially on hosts with limited memory.
</p>
<p className="mb-4">
<strong className="block">Why it's beneficial:</strong>
Efficient memory management prevents out-of-memory (OOM) conditions,
enhances stability, and optimizes resource allocation in virtualization environments.
This is particularly important for hosts running memory-intensive workloads or multiple VMs.
</p>
<p className="text-lg mb-2">This adjustment automates the following commands:</p>
<CopyableCode
code={`
echo "vm.swappiness = 10" | sudo tee /etc/sysctl.d/99-memory.conf
echo "vm.vfs_cache_pressure = 50" | sudo tee -a /etc/sysctl.d/99-memory.conf
sudo sysctl -p /etc/sysctl.d/99-memory.conf
By tuning how Linux handles dirty memory pages, swap usage, and virtual memory mappings, this adjustment helps the system free memory more proactively and avoid sudden out-of-memory (OOM) errors particularly valuable on Proxmox nodes with 14GB of RAM.
</p>
<p className="mb-4">
It also enables safe overcommit behavior and, if supported, proactive memory compaction to make memory use more efficient across multiple processes and containers.
</p>
<p className="text-lg mb-2">This optimization applies the following configuration:</p>
<CopyableCode
code={`
cat <<EOF | sudo tee /etc/sysctl.d/99-memory.conf
# Balanced Memory Optimization
vm.swappiness = 10
vm.dirty_ratio = 15
vm.dirty_background_ratio = 5
vm.overcommit_memory = 1
vm.max_map_count = 65530
EOF
# Enable memory compaction if supported by the system
if [ -f /proc/sys/vm/compaction_proactiveness ]; then
echo "vm.compaction_proactiveness = 20" | sudo tee -a /etc/sysctl.d/99-memory.conf
fi
# Apply settings
sudo sysctl -p /etc/sysctl.d/99-memory.conf
`}
/>
/>
< h3 className="text-xl font-semibold mt-16 mb-4 flex items-center">

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB