Making Ubuntu 22.04 Faster

Why

I setup my server to boot on power. So I want to boot and run as quickly as possible to minimize downtime due to reboots or power-outages. It happens more than I’d like.

Goal

Document performance settings for Ubuntu 22.04

Settings

  • Not a performance setting, but ups the map count limit to allow for Docker to be able to run ELK. Set vm.max_map_count to no less than 262144 (one time configuration)
1
2
# Run once, loses setting after reboot.
sudo sysctl -w vm.max_map_count=262144
1
2
# Persistent setting.
sudo echo "vm.max_map_count=262144" >> /etc/sysctl.conf