This repository contains scripts to optimize and monitor CPU performance for servers running AMD EPYC or Ryzen processors. The script is optimized for Ubuntu 24.04.
The set_cpu_performance.sh script is designed to:
- Set all CPU cores to performance mode
- Enable CPU boost if available
- Provide a detailed summary of CPU specifications and performance metrics
To set up the script on your server, run the following command:
curl -s https://raw.githubusercontent.com/lamat1111/CPU_performance/main/setup.sh | bashThis command will:
- Download and install the latest version of the script
- Set up cron jobs to run the script at reboot and every 6 hours
- Provide immediate feedback on the setup process
- Automatic CPU governor setting to performance mode
- CPU boost enabling (if available)
- Detailed CPU information display, including:
- System overview
- CPU specifications
- Cache information
- Advanced CPU details
- Current performance status
- AMD EPYC or Ryzen CPU
- Ubuntu 24.04
- Root access to the server
curlinstalled on the system
The script logs its activities to /root/scripts/logs/cpu_performance.log.
This script modifies system settings. While it's designed to optimize performance, please ensure you understand the implications for your specific use case before running it on production systems.
Feel free to open issues or submit pull requests if you have suggestions for improvements or encounter any problems.