

{"id":1951,"date":"2017-04-30T09:54:03","date_gmt":"2017-04-30T08:54:03","guid":{"rendered":"http:\/\/www.fabionline.net\/aaaaaaa\/?p=1951"},"modified":"2025-03-31T20:44:14","modified_gmt":"2025-03-31T18:44:14","slug":"linux-boot-speed-up-removing-slow-useless-services","status":"publish","type":"post","link":"https:\/\/www.fabionline.net\/blog\/linux\/linux-boot-speed-up-removing-slow-useless-services\/","title":{"rendered":"Linux boot speed-up removing slow\/useless services"},"content":{"rendered":"<p>Today, after upgrade to Debian Stretch i was looking startup loaded services and system boot-up performances through <span style=\"color: #0000ff;\">systemd-analyze* <\/span>command.<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1952\" src=\"https:\/\/www.fabionline.net\/blog\/wp-content\/uploads\/sys1.png\" alt=\"\" width=\"556\" height=\"31\" \/><br>\nLooking results , excluding kernel time(4,5 sec), system took 1 minute and 42 seconds for start;\u00a0OK , i don&#8217;t have an SSD, there are a lot of services like tor, virtualbox , Plasma,etc but boot time seems really too long.<br>\nThis situation deserves a more detailed check, so i executed <span style=\"color: #0000ff;\">systemd-analyze blame* <\/span>for understand if there is a particular slow service or if there are just so many<span style=\"color: #0000ff;\"><br>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1953\" src=\"https:\/\/www.fabionline.net\/blog\/wp-content\/uploads\/sys2.png\" alt=\"\" width=\"328\" height=\"50\" \/><br>\n<\/span>As you can see , outcome show that racoon.service takes 1minute and 32 secs to start.. this service (ipsec) for my needs it is useless. Therefore i typed (with sudo, or being root) <span style=\"color: #0000ff;\">Systemctl disable racoon.service<\/span><br>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1960\" src=\"https:\/\/www.fabionline.net\/blog\/wp-content\/uploads\/sys5.png\" alt=\"\" width=\"728\" height=\"67\" \/><br>\nAfterthat, i restarted system and i typed again command System-analyze to see results:<br>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1963\" src=\"https:\/\/www.fabionline.net\/blog\/wp-content\/uploads\/sys6.png\" alt=\"\" width=\"475\" height=\"19\" \/><br>\nNice, we cut 1 minute and 17 seconds ; from 1 minute and 47 sec to .. 30 seconds \ud83d\ude42<br>\nProbably\u00a0this is a not-standard case, but with this example you can easily understand how even a single service can affect startup time.<br>\nIn general,\u00a0 making a check\u00a0 to verify and identify which services taking time (and especially if are necessary for our needs)\u00a0 it is something that ,as in this case, is really useful<br>\n<span style=\"font-size: 10pt;\"><em>*Despite my screenshots, you can execute systemd-analyze and systemd-analyze blame whitout root privileges.<br>\n<\/em><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Today, after upgrade to Debian Stretch i was looking startup loaded services and system boot-up performances through systemd-analyze* command. Looking results , excluding kernel time(4,5 sec), system took 1 minute and 42 seconds for start;\u00a0OK , i don&#8217;t have an &hellip; <a href=\"https:\/\/www.fabionline.net\/blog\/linux\/linux-boot-speed-up-removing-slow-useless-services\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts\/1951"}],"collection":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/comments?post=1951"}],"version-history":[{"count":1,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts\/1951\/revisions"}],"predecessor-version":[{"id":2613,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/posts\/1951\/revisions\/2613"}],"wp:attachment":[{"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/media?parent=1951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/categories?post=1951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fabionline.net\/blog\/wp-json\/wp\/v2\/tags?post=1951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}