{"id":21303,"date":"2023-09-27T10:23:39","date_gmt":"2023-09-27T10:23:39","guid":{"rendered":"https:\/\/linuxways.net\/?p=21303"},"modified":"2023-09-27T10:23:39","modified_gmt":"2023-09-27T10:23:39","slug":"how-to-optimize-ubuntu-22-04-for-speed","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-optimize-ubuntu-22-04-for-speed\/","title":{"rendered":"How to Optimize Ubuntu 22.04 for Speed?"},"content":{"rendered":"<p><strong>Ubuntu 22.04<\/strong> is the latest long-term support \u201cLTS\u201d of Ubuntu. Many users consider Ubuntu 22.04 to be the fastest version yet due to its \u201cTriple Buffering\u201d but to some users, the recent LTS release of Ubuntu 22.04 is not very impressive in terms of speed and for this reason, many users are switching to other Linux Distros.<\/p>\n<p>This article discusses different ways to improve and optimize the speed in Ubuntu 22.04.<\/p>\n<h2><strong>How to Optimize Ubuntu 22.04 for Speed?<\/strong><\/h2>\n<p>There are many ways one can use to optimize the Ubuntu Distro for speed and better efficiency. Below are some approaches that will assist you in optimizing the performance of your Operating System.<\/p>\n<h3><strong>Reducing GRUB Load Time<\/strong><\/h3>\n<p><strong>GRUB <\/strong>is a pre-installed bootloader that allows the system to load what it needs when the system wakes up or starts. By default, GRUB gives us 10 seconds to either change between dual boot Operating Systems or go into recovery mode. We can change the GRUB load time using the GRUB Configuration. To open the bootloader configuration, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> gedit <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>default<span class=\"sy0\">\/<\/span>grub<\/div><\/div>\n<p>It will ask for the user password:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"51\" class=\"wp-image-21304\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-1.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-1-300x21.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>After entering the Password, the GRUB Menu will appear. Change the \u201cGRUB_TIMEOUT=X\u201d to \u201cGRUB_TIMEOUT=2\u201d where X can be any value:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"657\" class=\"wp-image-21305\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-2.png 888w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-2-300x222.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-2-768x568.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/p>\n<p>Save the file. To update your GRUB Configuration, run the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> update-grub<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"884\" height=\"273\" class=\"wp-image-21306\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-3.png 884w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-3-300x93.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-3-768x237.png 768w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/p>\n<p>The changes will be affected once you restart your system. Note that these changes will have a huge impact only if you are using dual boot.<\/p>\n<h3><strong>Install Preload<\/strong><\/h3>\n<p>Pre-load is used in the background and it analyzes user behavior. Preload predicts the next application and fetches the dependencies earlier to increase startup time. To install preload, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> preload<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"390\" class=\"wp-image-21307\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-4.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-4-300x162.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>Reboot your system for preloading.<\/p>\n<h3><strong>Reduce Overheat<\/strong><\/h3>\n<p>An Overheated system runs slow and takes a lot of time to start an application. To reduce overheating, you can either use \u201cTLP\u201d or \u201cCPUFREQ\u201d. <strong>TLP <\/strong>is an Advanced Power Management tool. It helps in the Power Management Consumption and Optimization of a Linux System. <strong>CPUFREQ <\/strong>also known as \u201cCPU Speed Scaling\u201d is an infrastructure in Linux that is used to scale and manage the frequency of the CPU to save power.<\/p>\n<p>To use \u201cTLP\u201d without any hassles, let\u2019s first, update the system packages using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"406\" class=\"wp-image-21308\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-5.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-5-300x168.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>Now, install TLP by executing the following sudo command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> tlp tlp-rdw<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"351\" class=\"wp-image-21309\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-6.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-6-300x146.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>Now start TLP Using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> tlp start<\/div><\/div>\n<p>This will start TLP in AC Mode and it will work in the background.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"58\" class=\"wp-image-21310\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-7.png 724w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-7-300x24.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>Now, to use \u201cCPUFREQ\u201d, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> indicator-cpufreq<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"344\" class=\"wp-image-21311\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-8.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-8-300x143.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>For \u201cCPUFREQ\u201d to work, Restart your Ubuntu System.<\/p>\n<h3><strong>Use zRam<\/strong><\/h3>\n<p>\u201czRam\u201d is used to compress some files in your RAM. When your RAM starts filling up, it will compress some files to make up some space for your RAM. In this way, your Ubuntu System would have more RAM space available. To install zRam, use the script:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> zram-config<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"415\" class=\"wp-image-21312\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-9.png 724w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-9-300x172.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>zRam will run automatically once you reboot your Ubuntu system.<\/p>\n<h3><strong>Delete Temporary Files in APT<\/strong><\/h3>\n<p>Sometimes, APT keeps the older version of the software and they occupy space which may lead to a slower Ubuntu System. To delete temporary files in APT, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt autoclean <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt clean <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt autoremove<\/div><\/div>\n<p>This will remove all the unnecessary files and packages resulting in a faster and better system performance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"298\" class=\"wp-image-21313\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-10.png 885w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-10-300x101.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21303-10-768x259.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/p>\n<p>This sums up optimizing Ubuntu 22.04 for speed.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Ubuntu Distro can be optimized in many ways that can have a huge impact on the overall efficiency and the speed performance of our system. It can be optimized in ways like Reducing GRUB Time and many more. In this article, we have covered the steps you can take and the changes you can make to increase the performance and optimize the speed of Ubuntu 22.04.<\/p>","protected":false},"excerpt":{"rendered":"<p>Optimized Ubuntu has a huge impact on the overall efficiency and speed of the system. It can be optimized in ways like Reducing GRUB Time and many more. <\/p>","protected":false},"author":110,"featured_media":21314,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21303"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21303\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21314"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}