{"id":58761,"date":"2022-08-28T12:47:23","date_gmt":"2022-08-28T12:47:23","guid":{"rendered":"https:\/\/harchi90.com\/ubuntu-22-10-optimizing-openssh-server-memory-use-other-ram-optimizations-coming\/"},"modified":"2022-08-28T12:47:23","modified_gmt":"2022-08-28T12:47:23","slug":"ubuntu-22-10-optimizing-openssh-server-memory-use-other-ram-optimizations-coming","status":"publish","type":"post","link":"https:\/\/harchi90.com\/ubuntu-22-10-optimizing-openssh-server-memory-use-other-ram-optimizations-coming\/","title":{"rendered":"Ubuntu 22.10 Optimizing OpenSSH Server Memory Use, Other RAM Optimizations Coming"},"content":{"rendered":"
\n
<\/div>\n

As part of a broader effort to reduce system memory use on Ubuntu Linux particularly for server and container\/cloud use-cases, Ubuntu 22.10’s OpenSSH server has switched to using socket-based activation.<\/p>\n

Ubuntu 22.10’s OpenSSH daemon will now only start once there is an incoming connection request received, rather than running SSHD regardless of any connection request.<\/p>\n

By not running the OpenSSH daemon until there is an incoming connection request, they save around 3MB of system memory and in the case of lightweight VMs \/ LXD containers, that can be around 5% of memory use for an idle, brand new Ubuntu 22.10 container .<\/p>\n

This switch to socket-based activation for the SSH server is part of a broader push to make Ubuntu Linux leaner on the Ubuntu Server front especially for virtual machines and containers. Longtime Ubuntu engineer Steve Langasek with Canonical noted:<\/p>\n

At Canonical we care about making Ubuntu as efficient as possible on your hardware and in the cloud, which is why this change has been landed as part of a larger effort to reduce the default memory footprint of our images. A default Ubuntu 22.04 LXD image at release time used 65MiB of RAM, which in kinetic now uses 58MiB after this OpenSSH change; and more improvements are in progress, with the intention of backporting the safer changes to our Ubuntu 22.04 images to improve memory usage for the greatest number of users.<\/p><\/blockquote>\n

So further tuning is in the works to make Ubuntu more lightweight for these server use-cases and some of these optimizations will find their way back into Ubuntu 22.04 as the current Long-Term Support series.<\/p>\n


There is a renewed push by Canonical to lighten Ubuntu’s memory footprint, particularly around cloud VMs and containers.<\/em><\/p>\n

This socket-based activation handling for SSHD will happen automatically when moving to the latest Ubuntu 22.10 package. More details on this change for those interested via the Ubuntu Discourse.<\/div>\n

.<\/p>\n","protected":false},"excerpt":{"rendered":"

As part of a broader effort to reduce system memory use on Ubuntu Linux particularly for server and container\/cloud use-cases, Ubuntu 22.10’s OpenSSH server has switched to using socket-based activation. Ubuntu 22.10’s OpenSSH daemon will now only start once there is an incoming connection request received, rather than running SSHD regardless of any connection request. …<\/p>\n

Ubuntu 22.10 Optimizing OpenSSH Server Memory Use, Other RAM Optimizations Coming<\/span> Read More »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","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":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4],"tags":[1111,1110,1108,1107,1114,1112,1109,1113,1106,1117,1115,1116],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":21178,"url":"https:\/\/harchi90.com\/tavis-ormandy-ports-wordperfect-for-unix-to-linux-the-register\/","url_meta":{"origin":58761,"position":0},"title":"Tavis Ormandy ports WordPerfect for UNIX to Linux \u2022 The Register","date":"July 21, 2022","format":false,"excerpt":"Just months after getting Lotus 1-2-3 for UNIX running on modern Linux, Tavis Ormandy \u2013 a white-hat hacker and member of Google's Project Zero team \u2013 has conjured the same trick with classic text-mode WordPerfect 7. Immaculately complementing his port of Lotus 1-2-3 to Linux, Ormandy has now released a\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"WordPerfect 7 for UNIX, running perfectly happily in a Linux terminal in 2022","src":"https:\/\/i0.wp.com\/regmedia.co.uk\/2022\/07\/20\/wp7-for-linux.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9758,"url":"https:\/\/harchi90.com\/unique-linux-for-self-hosting-open-source-software\/","url_meta":{"origin":58761,"position":1},"title":"Unique Linux for Self Hosting Open Source Software","date":"July 10, 2022","format":false,"excerpt":"Umbrel is a beautiful operating system as well as a services dashboard that is a good start for someone interested in self-hosting. It has a nice web GUI and enables easy installation of containerized web services with a one-click install. This is perfect if you want a homelab setup with\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"Different ways of accessing Umbrel web GUI listed by the installer","src":"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2022\/07\/umbrel-address.webp?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":45835,"url":"https:\/\/harchi90.com\/want-to-watch-blu-rays-in-vlc-on-ubuntu-you-need-makemkv\/","url_meta":{"origin":58761,"position":2},"title":"Want to Watch Blu-rays in VLC on Ubuntu? You NEED MakeMKV","date":"August 15, 2022","format":false,"excerpt":"I picked up a cheap external USB Blu-ray drive recently with the aim of watching my Doctor Who 'The Collection' Blu-rays \u2014 WhoRays, if you will\u2014 in bed, on my laptopone (which runs Ubuntu, obviously). Thing is you can't just stick in an official Blu-ray disc and watch what's on\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"bluray error in VLC","src":"https:\/\/i0.wp.com\/149366088.v2.pressablecdn.com\/wp-content\/uploads\/2022\/08\/bluray-error-ubuntu-840x473.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":33086,"url":"https:\/\/harchi90.com\/linux-6-0-has-some-big-scheduler-changes-including-improved-numa-balancing-for-amd-zen\/","url_meta":{"origin":58761,"position":3},"title":"Linux 6.0 Has Some Big Scheduler Changes, Including Improved NUMA Balancing For AMD Zen","date":"August 2, 2022","format":false,"excerpt":"Ingo Molnar today submitted the main set of kernel scheduler updates for the in-development Linux 6.0 (nee 5.20). The scheduler updates contain some notable changes that will be interesting to benchmark in the days ahead. First up, there is improved NUMA balancing on AMD Zen systems for affine workloads. That\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":32392,"url":"https:\/\/harchi90.com\/linus-torvalds-uses-an-arm-powered-m2-macbook-air-to-release-latest-linux-kernel\/","url_meta":{"origin":58761,"position":4},"title":"Linus Torvalds uses an Arm-powered M2 MacBook Air to release latest Linux kernel","date":"August 1, 2022","format":false,"excerpt":"enlarge \/ Slowly but surely, the Asahi Linux team is getting Linux up and running on Apple Silicon Macs.Apple\/Asahi Linux We don't normally cover individual releases of the Linux kernel, partly because most updates are pretty routine. Any given Linux kernel update resolves some bugs, improves support for existing hardware,\u2026","rel":"","context":"In "Technology"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"fifu_image_url":"https:\/\/www.phoronix.net\/image.php?id=2022&image=ubuntu_2210_ram","_links":{"self":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/58761"}],"collection":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/comments?post=58761"}],"version-history":[{"count":0,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/posts\/58761\/revisions"}],"wp:attachment":[{"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/media?parent=58761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/categories?post=58761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harchi90.com\/wp-json\/wp\/v2\/tags?post=58761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}