{"id":34985,"date":"2021-09-14T09:00:00","date_gmt":"2021-09-14T01:00:00","guid":{"rendered":"https:\/\/www.casbay.com\/blog\/?p=34985"},"modified":"2022-09-22T17:19:41","modified_gmt":"2022-09-22T09:19:41","slug":"optimise-vps-performance-of-linux-vps","status":"publish","type":"post","link":"https:\/\/www.casbay.com\/blog\/vps-hosting\/optimise-vps-performance-of-linux-vps","title":{"rendered":"How To Optimise VPS Performance of Linux VPS (Ubuntu)?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"34985\" class=\"elementor elementor-34985\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ca0d6d3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ca0d6d3\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50a1923\" data-id=\"50a1923\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4569e7f elementor-widget elementor-widget-heading\" data-id=\"4569e7f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">1. Make sure your Ubuntu is up to date<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9406cc8 elementor-widget elementor-widget-text-editor\" data-id=\"9406cc8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Ubuntu has a huge user community around the world, and they have been working hard to improve the performance of Ubuntu. New updates for Ubuntu are released twice a year and include major changes.<\/span><\/p><p><span style=\"font-weight: 400;\">Whenever a new update is released, be sure to keep your Ubuntu up to date. This will help you maximize the performance of the operating system. For searching and updating the Ubuntu, you may open the Linux terminal and type <\/span><b>sudo apt-get update.\u00a0<\/b><\/p><p><span style=\"font-weight: 400;\">If you are looking for an original version of Ubuntu, use the command <\/span><b>sudo apt-get upgrade<\/b><span style=\"font-weight: 400;\">. Make sure you have backup all your files before updating.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-38edf8e elementor-widget elementor-widget-heading\" data-id=\"38edf8e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">2. Upgrade Your Storage Devices<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54afa21 elementor-widget elementor-widget-text-editor\" data-id=\"54afa21\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Although SSDs are slightly more expensive than HDDs or flash drives, they provide better data protection than HDDs or flash drives. They will also supply you with a considerably faster data transfer rate than any other disc storage. So, if you want to maximise the speed of your VPS performance, we strongly advise you to install Ubuntu on an SSD.<\/p><p>You can also increase the RAM on your PC to make the procedure run more smoothly. A small reminder that Ubuntu requires at least 2 GB of RAM to work smoothly. Another consideration is that not all types of RAM will be compatible with your specific model of machine. So, conduct some research on the model of your device and the sort of RAM it employs<span style=\"font-weight: 400;\">. If you want to check the type and speed of RAM use the command: <\/span><b style=\"font-style: inherit;\">sudo lshw -c memory<\/b><span style=\"font-weight: 400;\">.<\/span><\/p><p><span style=\"font-weight: 400;\">If you want to check out the amount of RAM in the Ubuntu destroyer, type and run the command: <\/span><b>free -m<\/b><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c79c302 elementor-widget elementor-widget-heading\" data-id=\"c79c302\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">3. Free up your disk space<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bef752c elementor-widget elementor-widget-text-editor\" data-id=\"bef752c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">Ubuntu&#8217;s performance is influenced by the amount of free space on the hard drive. The higher the number of files on the hard drive, the longer it takes the operating system to process them. Therefore, you can increase the performance of the Ubuntu operating system by increasing the available space on the hard disk.<\/span><\/p><p>The most typical folders where you can be late without causing security issues are download folders, which you can re-download whenever you want. There is a fairly simple approach to clear the operating system&#8217;s cache. Simply type in:<\/p><p><b>Sudo apt-get clean<\/b><\/p><p><span style=\"font-weight: 400;\">If you want to get rid of the unused packages and dependencies, use the command <\/span><b>sudo apt-get autoremove<\/b><\/p><p>These commands will help you in removing unnecessary packages and files, allowing your system performance to run faster and smoother.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2def5e8 elementor-widget elementor-widget-heading\" data-id=\"2def5e8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">4. Install Preloads<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2d9045e elementor-widget elementor-widget-text-editor\" data-id=\"2d9045e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>The main purpose of the &#8220;preloading procedure&#8221; is to keep the relevant files in RAM. This feature runs in the background and monitors your most frequently used programmes, delivering substantially faster performance than simply storing the files on the hard drive.<\/p><p>When you start the machine, preloading will assist the system in better understanding the programmes you require. This will also help to reduce starting time and improve system efficiency. To install preload on your Ubuntu system, use the following command:<\/p><p><b>Sudo apt-get install preload<\/b><\/p><p><span style=\"font-weight: 400;\">After the installation is complete, restart the system. From now on, whenever you start the machine, the preload will run in the background to improve your VPS performance.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7c0ca45 elementor-widget elementor-widget-heading\" data-id=\"7c0ca45\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">5. Control Startup Programs<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c66dbd1 elementor-widget elementor-widget-text-editor\" data-id=\"c66dbd1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">As we discussed before, the more programs you install on the machine, the more data the system must process, which reduces your performance. Ubuntu has a specific program called &#8220;Start Application&#8221;. You can start the program from the GNOME directory. You can also list all started services in Ubuntu (18.04) by executing the following command: Services-full status If you want to stop a specific service running on the system, enter the following command:<\/span><\/p><p><b>service-status-all<\/b><\/p><p><span style=\"font-weight: 400;\">If you want to stop a specific service that runs on your system, use the command <\/span><b>sudo service &lt;name&gt; stop<\/b><\/p><p><span style=\"font-weight: 400;\">You may also use the command <\/span><b>sudo apt-get remove &lt;program name&gt; <\/b><span style=\"font-weight: 400;\">to remove the program which you do not want.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b903e51 elementor-widget elementor-widget-heading\" data-id=\"b903e51\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">6. Use Local mirrors<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ce57713 elementor-widget elementor-widget-text-editor\" data-id=\"ce57713\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">In order to maximize system efficiency, multiple Ubuntu software repositories are mirrored worldwide. You need to make sure to use a mirror closer to your location when updating the software because the closer you are to the mirror, the faster the download and update speed.<\/span><\/p><p><span style=\"font-weight: 400;\">If you want to choose the mirror closest to you, please follow the steps below:\u00a0<\/span><\/p><ol><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to the software.\u00a0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the menu button (upper left corner of the page).\u00a0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose software and updates.\u00a0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the Ubuntu Software tab, select &#8220;Download from&#8221;.\u00a0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose other\u00a0<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose the server closest to you.<\/span><\/li><\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d8179d1 elementor-widget elementor-widget-heading\" data-id=\"d8179d1\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">7. Bonus Tips : \u201cReal-time\u201d mount Option in etc\/fstab<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a83535 elementor-widget elementor-widget-text-editor\" data-id=\"3a83535\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">According to the POSIX standard, each operating system maintains a file system metadata that records when any file was last accessed, modified, or changed. Therefore, whenever you read\/write\/access a file, the system has to calculate the time and store it somewhere.<\/span><\/p><p><span style=\"font-weight: 400;\">This will bring some workload to the system and affect VPS performance. You can modify this operation and help improve VPS performance by using the &#8220;relatime&#8221; mount option in \/etc\/fstab.<\/span><\/p><p><span style=\"font-weight: 400;\">If you want to implement the relatime option, enter the following command: <\/span><b>\/dev\/sda1 \/mount-point ext4 defaults.relatime 0 0<\/b><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-46d345e elementor-widget elementor-widget-text-editor\" data-id=\"46d345e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><span style=\"font-weight: 400;\">To know more about our <\/span><a href=\"https:\/\/www.casbay.com\/vps-hosting-malaysia\/plans\">Linux VPS Hosting Plans<\/a><b>, <\/b><span style=\"font-weight: 400;\">you can look into our <a href=\"https:\/\/www.casbay.com\">Casbay<\/a> product plans.<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>1. Make sure your Ubuntu is up to date Ubuntu has a huge user community around the world, and they [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35102,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":"","_wpscppro_custom_social_share_image":0},"categories":[94],"tags":[102],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/34985"}],"collection":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/comments?post=34985"}],"version-history":[{"count":8,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/34985\/revisions"}],"predecessor-version":[{"id":35099,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/posts\/34985\/revisions\/35099"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/media\/35102"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/media?parent=34985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/categories?post=34985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.casbay.com\/blog\/wp-json\/wp\/v2\/tags?post=34985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}