Тёмный

Systemd Introduces Userspace Reboots??? 

Brodie Robertson
Подписаться 89 тыс.
Просмотров 23 тыс.
50% 1

Systemd is a great project that has massively improved the usability of Linux and soon it may be adding another really cool concept, userspace reboots where everything above the kernel gets restarted.
==========Support The Channel==========
► $100 Linode Credit: brodierobertso...
► Patreon: brodierobertso...
► Paypal: brodierobertso...
► Liberapay: brodierobertso...
► Amazon USA: brodierobertso...
==========Resources==========
Lennart Post: mastodon.socia...
Systemd PR: github.com/sys...
=========Video Platforms==========
🎥 Odysee: brodierobertso...
🎥 Podcast: techovertea.xy...
🎮 Gaming: brodierobertso...
==========Social Media==========
🎤 Discord: brodierobertso...
🎤 Matrix Space: brodierobertso...
🐦 Twitter: brodierobertso...
🌐 Mastodon: brodierobertso...
🖥️ GitHub: brodierobertso...
==========Credits==========
🎨 Channel Art:
Profile Picture:
/ supercozman_draws
#systemd #Linux #OpenSource #FOSS
🎵 Ending music
Track: Debris & Jonth - Game Time [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Debris & Jonth - Game ...
Free Download / Stream: ncs.io/GameTime
DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase I may receive a small commission or other compensation.

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 422   
@ultradude5410
@ultradude5410 Год назад
The idea? Cool as heck. Would I use it? Probably! Honestly, the verbose `systemctl userspace-reboot` is perfectly fine, it's clear, it's unambiguous, and it's not like you're going to be doing it dozens of times per day without making a script or alias around it.
@greatestcait
@greatestcait Год назад
Honestly I've never really gotten the hate for systemd. Like, okay, sure, it combines a lot of functionality into one software suite, but like, it works well enough. And also, there are other programs that people love that go way, way beyond just "do one thing and do it well" - emacs, anyone?
@excidium666
@excidium666 Год назад
Emacs isn't a dependency for core distribution packages
@Zeft64
@Zeft64 Год назад
I agree and it’s honestly a bit frustrating. Personally as long as it works as advertised and doesn’t mess with my experience as a power user I really could care less
@SisypheanRoller
@SisypheanRoller Год назад
The so-called Unix philosophy of "doing one thing and doing it well" is a complete conversation stopper until "one thing" is defined.
@SisypheanRoller
@SisypheanRoller Год назад
@@excidium666 You do realize that systemd isn't one monolithic binary? It's a software suite of tools related to system resource management.
@excidium666
@excidium666 Год назад
​@@SisypheanRoller That's irrelevant, it's still one solution. If it's one binary or 80 is a mere build maintenance detail
@scooter4196
@scooter4196 Год назад
Why not just put a flag for the reboot command like this "systemctl reboot --userspace"?
@DrewWalton
@DrewWalton Год назад
This is the way.
@blindsniper35
@blindsniper35 Год назад
I can see this being really useful for servers. It's probably less useful for the average desktop user. Most of the time a normal reboot doesn't take that much time. I can see this being very useful on anything that requires very high uptimes. Especially if you can find it with live kernel patching.
@Nunya58294
@Nunya58294 Год назад
I can definitely see that being more beneficial for IT Admins
@snailed
@snailed Год назад
Any sysadmin with a little bit of knowledge won't be restarting a server in most cases that aren't a kernel update. Generally you just restart services as they are updated
@tobimai4843
@tobimai4843 Год назад
Also a lot of Workstation or Server Mainboards have really long BIOS/POST times, so that can also be beneficial there.
@orbatos
@orbatos Год назад
Exactly what the primary use case is. Potential other uses might be entirely container or overlay based systems, maybe bringing them one step closer to end user viability.
@lunlunnnnn
@lunlunnnnn Год назад
​@@tobimai4843 kexec already filled that niche (it shuts down userspace, then tells the kernel to jump into another (or the same) kernel and boot again from there)
@act.13.41
@act.13.41 Год назад
I use Tumbleweed, so I get a lot of new kernel versions, but there are plenty of updates that come without a kernel update, so I would still find this to be handy. It would be easier than manually restarting services or doing a full reboot. Big thumbs up for this one.
@d0rban
@d0rban Год назад
This is properly sick! Once the patch lands on my system, I'll be able to restart my home server without hearing it take off like a jet plane.
@JEM_Tank
@JEM_Tank Год назад
beautiful description
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
"This is properly sick!" Yes, I don't think it's a very useful feature either. I am glad we agree.
@JEM_Tank
@JEM_Tank Год назад
@@terrydaktyllus1320 opinion noted, did you need to be inflammatory towards OP though?
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
@@JEM_Tank If the OP thinks I am being inflammatory then they have an opportunity to state that here - but I have no intention of offering an explanation to their "self-appointed spokesperson" or "pretend Internet friend". So keep your nose out of what does not concern you.
@JEM_Tank
@JEM_Tank Год назад
@@terrydaktyllus1320 Sorry, my bad on this one, you're right. I misunderstood the comment the first couple reads, I thought you were spinning the quote in a bad way. I can now see how it's suppose to be read. You keep on being a fine person my dude
@geoffreyvanpelt6147
@geoffreyvanpelt6147 Год назад
FreeBSD already does this via "reboot -r" ( as root) if I remember correctly. It comes in handy when when not updating the kernel and a hardware reboot takes a long time.
@DrewWalton
@DrewWalton Год назад
As a Linux server admin, this seems like an incredibly useful feature in situations where total system uptime is critical. From my experience, userspace software gets updated far more frequently than the kernel, so the ability to "refresh" your userspace without restarting the entire kernel makes a lot of sense. The ability for userspace software and services to then resume from where they left off without any special sauce patches is monumental. Combine this with either kernel livepatching or kexec, and you can effectively have 100% hardware uptime (not accounting for actual hardware failure).
@Gunzy83
@Gunzy83 Год назад
The bikeshedding is just eye roll worthy
@rabin-io
@rabin-io Год назад
This would be extremely useful on bare-metal servers where you need to reboot to switch to a newer root, like with Openshift/OKD and RHCOS/Fedora CoreOS, as bare-metal servers have a very long boot initialization process. Looking forward to this be available to be used there.
@Mempler
@Mempler Год назад
Oh yea, I noticed that too. Why is that? Any idea? Most bare metal servers I rented took like 10 minutes for a full reboot compared to an average PC which takes like a minute
@__julio__
@__julio__ Год назад
Servers go through a more thorough POST, they also generally have more stuff to initialize, like memory, pci devices, multiple cpus, base system controllers, etc. Memory training alone can take a long time depending on how many modules there are in the system
@irbaboon1979
@irbaboon1979 Год назад
Unlikely in a proper shop. Proper servers run redundant, load balancing, etc - nobody really gives a dime about server uptime, service uptime is a different beast though…so as long you can guarantee service uptime and responsiveness the fate of the HW hosting the stuff is effectively inconsequential.
@Mempler
@Mempler Год назад
*This comment is being written while I'm watching the video* tbh, that's neat. It would be great for smth like fedora silverblue and other ostree based distros.
@nichtgestalt
@nichtgestalt Год назад
I'm really happy the outro is changed. Good job!
@framegrace1
@framegrace1 Год назад
This is perfect for containers/k8s. In fact seems perfectly suited for it. As kernel updates are handled independently on the host nodes, this can be a HUGE improvement there. The typical nginx + code system can run forever, only restarting on nginx version changes. Code changes can just be remounted while nginx is up with this. Some other kind of services can also use this ... (tomcat apps... anything that allows dynamic reloading)
@Jeffsa12
@Jeffsa12 Год назад
This sounds awesome! Perfect for an update that does not involve a kernel update. Been thinking about this since systemd was adopted in Arch. I think a lot of the systemd hate come when they reinvent the wheel to replace perfectly good existing solutions. This seems like a perfect solution that doesn't currently have an existing solution AFAIK. As for the command name, I could care less, as long as it isn't something that sounds like an advertisement that we deal with all to often. ie: something like systemctl systemd-userspaced-rebootd-RHELd-Gnomed-wontfixd
@0x00a
@0x00a Год назад
You can, or cannot care less?
@snowwsquire
@snowwsquire Год назад
@@0x00a He could care less, since he cares to the extent that he doesn't want it to be an advertisment
@DrewWalton
@DrewWalton Год назад
​@@snowwsquire this might be the only usage of "I could care less" that actually makes grammatical sense.
@morgwai667
@morgwai667 Год назад
it would be great if there was an option to also unload all kernel modules when userspace-shutting down, so that they would be reinitialized as well during userpace-reboot.
@caio_c
@caio_c Год назад
This is a great feature for servers, enterprise servers have complicated boots that involves hardware checks and memory verifications that take too much time, doing userspace reboot would minimize downtimes drastically!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
6:53 This is one area where most *nix shells are deficient. I had a look at the “complete” system that was added to bash, but only because it was preventing me typing file names that I knew to be perfectly valid for those commands. So I just turned it all off. I remember some older systems that had more of the sort of thing we need. Back in the 1980s I used BTOS/CTOS for a while, and when you pressed RETURN on a command, you got a form to fill in that showed all the relevant options for that command. And then later Apple’s MPW development environment included “Commando”, that would pop up a nice GUI dialog in a similar fashion. Where do we get something like that now?
@khronosschoty
@khronosschoty 8 месяцев назад
Learn2Code
@flubba86
@flubba86 Год назад
Wow, you just dredged something up from my brain. I used to use the SysVinit trick to go to runlevel 1 then back to runlevel 5 all the time, back in my old Debian days (before systemd).
@pcallycat9043
@pcallycat9043 Месяц назад
Old video I know, but, I always chuckle when systemd is lauded for doing something that’s been possible since the sysvinit days.
@flubba86
@flubba86 Месяц назад
@@pcallycat9043 it's human nature, as long as wheels exist, we will find a way to keep reinventing them.
@pcallycat9043
@pcallycat9043 Месяц назад
@@flubba86 truth :)
@jandorniak6473
@jandorniak6473 Год назад
Fun fact: did you know that, by default, "shut down" in Windows *does not* shut down? It enters some sort of hibernation of whatever, but doesn't shut down properly. "restart", on the other hand, performs a full OS cycle.
@totoritko
@totoritko Год назад
Solaris has had this feature for ... probably over a decade? Except there it addresses your security/updating concern too. Rather than keeping the kernel, they spin up a new kernel from the old kernel too - in essence, the old kernel acts like a bootloader. They call it a "fast reboot", because initial bootstrap on big iron (think: a server where the firmware is performing memory training on a few terabytes of DRAM) can take tens of minutes. And it's really smoothly intergrated with ZFS snapshots. You perform a system update into a new clone of your rootfs, this gets tagged as a new "boot environment, then you simply "reboot -fe " and the system quickly loads the new kernel & all userland from the new BE. Up and running in a few seconds, all fresh, and rollback in case of issues is trivial (just boot back into the old BE).
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
Sounds like Linux kexec.
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
Yes, and the two people in the world who are still using Solaris are very happy about it. Don't get me wrong, I "cut my UNIX teeth" on Solaris, AIX, HP-UX and SCO many years ago and had good times building and administering systems with all of them - but commercial UNIXes are dead now and what they did or did not do is not that relevant in 2023.
@KiraSlith
@KiraSlith Год назад
So, a soft-er reboot. That's a pretty genius option for multi-user environments. Not a feature I need right now, but if I ever end up having to share a server, this'd be great for cleaning up semi-orphaned processes, or forgotten Screen processes.
@jongeduard
@jongeduard Год назад
10:45 What you see being described here, is already not the original telinit anymore, but they explain how it translates to systemd commands. This is because telinit has been mapped to systemd on some distros, for backwards compatibility. Seems that they didn't do this on Arch Linux anymore. However, you can still type _systemctl rescue_ or _systemctl isolate rescue.target_ to enter the rescue mode. I tested this again. But my conclusion is that resue mode still keeps a lot of system services running. It does not look like a full userspace reboot.
@lpprogrammingllc
@lpprogrammingllc Год назад
OpenRC is very much sys5's successor, and it can shut everything above boot runlevel down and restart them. You can also shut everything above boot down, and then `switchroot` before restarting them. Keeping open file handles sounds like a good way to have hard to track down bugs if you are switching root.
@danmac_au
@danmac_au Год назад
I sysadmin a lot of servers and sometimes a reboot is the quickest way to sort out issues. Having this userspace-reboot function would be amazing because most of the time I'm not rebooting to update the kernel.
@MCChubbyUnicorn
@MCChubbyUnicorn Год назад
I think this kind of existed on jailbroken iphones for a while. it was referred to restarting your "springboard." It usually just got reset instead of the whole phone when your tweaks malfunctioned
@GegoXaren
@GegoXaren Год назад
I have for years wondered why this never was a thing. It seems like such an obious thing to want to have, but it is probobly non-trivial. I can't wait!
@quazar-omega
@quazar-omega Год назад
Nice, this would be crazy handy!
@orbatos
@orbatos Год назад
I remember doing this sort of thing by hand and look forward to the feature.
@MennoSmits
@MennoSmits Год назад
This sounds great. Perfect for reducing downtime after updates with Silverblue/ublue style distros.
@MyAmazingUsername
@MyAmazingUsername Год назад
I keep hearing that they are slow at updates. How slow are we talking here? If you layer NVIDIA drivers I imagine it has to rebuild them every time there's an update which would add like 5 minutes to every update, if it's anything like the regular Workstation's NVIDIA updates.
@oro6768
@oro6768 Год назад
A server reboot (the main use case for immutable systems for a while now) take a long time to reboot, my server motherboard takes 30+ seconds while my desktop takes 10-20. Server boot times can be longer than this, I got a pretty modified server board. If you have a userspace reboot, tou can cut ~20 secs down to as low as four or five, maybe even lower with a decent SSD. Obviously the boot times will depend on the hardware, but there's a basic idea on my hardware. Oh, embedded systems like a raspberry pi could benefit too. Boot times on there are annoying. But there are advantages outside of boot times too.
@lyoneel
@lyoneel Год назад
love the outro music!
@seanrileyhawkins4511
@seanrileyhawkins4511 Год назад
Definitely useful feature especially if you are grinding & just want to continue working.
@minifig404
@minifig404 Год назад
For servers with infrequently updated kernels, there's definitely a use case for this. For my desktop that doesn't get regularly shut down, I just don't want to see this become the default in GUIs. It's a lot cleaner and easier to explain if reboot really does flush everything out. And that's to say nothing of retraining the linux users who don't actually want to learn the details (yes, they exist). Add an extra button to the "log out/shutdown/reboot" dialog, sure, but don't make "reboot" mean "reboot userspace" by default.
@Waitwhat469
@Waitwhat469 Год назад
Big benefit of this could be reducing the dependency on Lights Out Management for zero-touch systems. So for example rather than needing to use some base management you can have the system it's self-manage this. I wonder how it would work with LUKs encrypted volumes.
@Henk717
@Henk717 Год назад
Great feature, some dedicated servers take like 5 minutes just to post.
@kxuydhj
@kxuydhj 11 месяцев назад
5 months later and i'm pretty sure this is implemented as "soft-reboot" now. in my case, it's useful on stuff like an old machine running hdds cause a full reboot takes forever and this takes some five seconds, not counting logging back in.
@exciting-burp
@exciting-burp 8 месяцев назад
Nixos already does this, but in a more targeted way - it starts added services, stops removed services, and restarts affected services. Still very cool for the rest of Linux users, though!
@speedytruck
@speedytruck Год назад
Since this is a super fast reboot, you'll use it the most. At this point typing out "userspace-reboot" would waste so much time. `renew` is far more convenient. And it's not like people learn how to use systemd from the command names... there is the documentation for that.
@guss77
@guss77 Год назад
The "going down to rescue level" trick in SysVInit can still be performed on a systemd OS - run `systemctl emergency` or (`systemctl rescue` - it's similar but i prefer "emergency" as it has less stuff running and mounted), then from that target you can run `systemctl default` to return to the full OS. I'm pretty sure you can change the root filesystem somewhere in the middle, if you wanted, but i didn't try that. Obviously, a single command to do the loop, and also being able to hand open network sockets across the jump, will be an invaluable feature that no other OS has (not even MacOS, though keeping sockets open is a server thing and no one sane is running macos servers...)
@IngwiePhoenix
@IngwiePhoenix Год назад
urb - userspace reboot. Easy! :D It's an interesting feature, I've been trying to improve outages of my servers. Thanks for the info!
@Dygear
@Dygear Год назад
That's super cool for a server reboot that doesn't need a kernal reload.
@kjakobsen
@kjakobsen Год назад
I'm properly one of the nerds, who actually reguarly used kexec on my Linux desktop. Because i could. And then let it properly reboot, when i shut it off when i was finished. I will definetely find this usefull.
@zeusthundr6876
@zeusthundr6876 Год назад
I've been waiting for something like this for a while now. My system seems to have done this type of reboot once as untended behavior and got a super fast reboot have been wondering how to replicate it since.
@-yttrium-1187
@-yttrium-1187 9 месяцев назад
'Let's not wait for firmware,boot loader, kernel, initrd, to reinitialize on a reboot' 'super fast switching from one OS version to the next' great that systemd has this as well now but for years you could do the exact same thing on openRC/sysvinit with reboot -k It uses kexec -l to load a kernel, reboot and run kexec -e after the init system is down.
@Gramini
@Gramini Год назад
I'm curious about what level of a speed-up this means. A fresh boot takes ~30s on my PC. How long would a "renew" take? Is it still like 20s or more like 5s? I know exact numbers vary and very system-dependand, but orders of magnitude are still interesting to know.
@jmatya
@jmatya Год назад
We have servers where HW and memory init takes up to 20mins. Unless you want to update the kernel or Firmware or something is broken on kernel level, this feature is interesting
@CyroTheSpider
@CyroTheSpider Год назад
This is exactly what I need. Kexec doesn't work with my new GPU anymore (6800XT). Worked with my old RX590. Real reboots just take too long. This looks like the perfect solution for a very fast "reboot" when you don't have to necessarily restart your kernel.
@Shimgao
@Shimgao Год назад
may i ask you what "too long" means on a system that has a 6800XT?
@CyroTheSpider
@CyroTheSpider Год назад
@@Shimgao The long reboots have nothing to do with the GPU. The long reboots are the fault of shitty EFI firmware on my Tomahawk B450 motherboard. The point is, I used to be able to skip about 15-20 seconds of boot wait time (EFI + GRUB) by just using kexec, which is almost instantaneous (full reboot in like 5 seconds). The new GPU (6800XT) doesn't work with kexec (doesn't reset properly) so I can't use it anymore. Now I'm back to using normal reboots like a peasant.
@Shimgao
@Shimgao Год назад
@@CyroTheSpider understandable
@eDoc2020
@eDoc2020 Год назад
@@CyroTheSpider 15-20 seconds in EFI is basically nothing if you've ever seen a real server boot?
@OcteractSG
@OcteractSG Год назад
This will be a godsend for anyone with running a system on an encrypted partition, especially if they’re testing annoying hardware quirks like screen backlights or Nvidia Settings behavior. BTRFS is a maybe; it’s actually very convenient to modify a GRUB entry for a one-time boot to start up in a different subvolume, and a userspace reboot will not return the user to GRUB. Instead, a user would need to edit /etc/fstab, and those changes are not temporary without the user going back and reverting the changes.
@feschber
@feschber Год назад
Unfortunately not helping for kernel upgrades which is the main reason I reboot anyway
@moumnalmunawy1806
@moumnalmunawy1806 Год назад
Itis good for immutable distros
@__julio__
@__julio__ Год назад
Some distros support kernel live patching for those cases
@WillOnSomething
@WillOnSomething Год назад
Win9x also had a 'userspace reboot' in a way. It would just reload Windows within DOS, it was common with driver installs. I believe the "Restart computer" option still did a complete boot process, however. You could also just exit to DOS mode and type "win" to boot back into Windows without shutting down the DOS kernel. This became irrelevant after XP though, since WinNT always required a full restart.
@eDoc2020
@eDoc2020 Год назад
The 32-bit VMM (and loadable VxDs) are the real kernel of 9x and rebooting through DOS fully restarts those, so it's much more like kexec. The ability to restart the 16-bit window system while keeping all the VxDs running would be the real equivalence.
@Error_00101
@Error_00101 Год назад
Realy nice feature! I run my own little server with docker on it. Honestly it would be nice if i could reduce the complete reboot to once a new kernel is released. Currently i restart them about every 2 weeks because of librarys. No big deal but a would be nice if the server is running again in 2sec flat.
@kreuner11
@kreuner11 Год назад
This doesn't use kexec? I mean it's not something obscure or server only, that's what I expect systemd to soft-reboot right? Run the regular reboot procedures and start the same / maybe even new kernel
@raulsantandertirado4400
@raulsantandertirado4400 Год назад
This seems useful for those rare cases that I'd like to play something on Steam but, the Controller is not being read properly or the audio is not set up correctly.
@protocol6
@protocol6 Год назад
How is this different from dropping to runlevel 1 and back? Aside from the resource passing. Can't you still do that with "systemctl isolate rescue[dot]target" and "systemctl isolate multi-user[dot]target" or "systemctl isolate graphical[dot]target"? (replace [dot] with .) Should be able to define a new target that just bounces in a single go, I'd have thought.
@paxdriver
@paxdriver Год назад
Sounds like ram block offsets which are supposed to be randomized then wouldn't be, leaving systems vulnerable to every buffer overflow all over again. I don't see at all how to keep the kernel running during a reboot while still randomizing ram addressing for security as we do normally these days.
@eriklundstedt9469
@eriklundstedt9469 Год назад
I don't understand why so much of the information is focused on "image based systems" which, if I understand it right, is equivalent to immutable I don't use an immutable distro (outside of my steamdeck, which I actively wish was just regular Arch and not immutable) and I can absolutely see a usecase where refreshing(Sus-ing) would be useful but people keep talking about it like it's a feature that would be useless outside of image based distros(I can only think of 3, steamos, silverblue, vanillaos(?))
@TheUAoB
@TheUAoB Год назад
kexec doesn't really take long to boot a new kernel, maybe 5s? It already works with systemd too to cleanly shutdown before switching to the new kernel.
@FengLengshun
@FengLengshun Год назад
There are people who don't like this? Why??? It's just a fun and cool feature that's useful for us immutable fans. If anything, I'm more worried that people who could've used it, never used it because they never discovered it. Just call it userspace-reboot, it's fine, we have autocompletes anyways. It's going to be very useful when you need to do a few abroot or rpm-ostree while setting up your system.
@knghtbrd
@knghtbrd Год назад
Cool feature! But why do some people freak out whenever Lennart Pottering does anything? As with most people, I know him from systemd. And I've gotta say that I've still got a bit of a love/hate relationship with systemd-a good bit of that is documentation. It's always had pretty strong low-level documentation: Manpages. If you understand systemd at a deep level, that's all you need. But IMO there are four levels of documentation, and systemd was kind of pushed out as "the new standard" before the other three types really ever got written. As that's changed, I've gone from hating it outright to liking it about half the time and being irritated the other half. What do I mean by "levels" of documentation? Let's compare to bash. Most people know: Run programs in the path, ls, cd, cp, mv, rm. That is surface level documentation. You're not really "using" bash if that's what you know, but it's enough to get some basic tasks accomplished. Then there's the fluent user stuff, you probably know how to write common scripts, run more complex loops and conditionals at the bash prompt, set up your bashrc, etc. Then there's person who really understands the userspace side of it. They might knot know how it all works, but they know the advanced features. In bash's case they'd be the ones who can write programs in bash, not just scripts. And then you get the deep lore level. With documentation at all those levels (level 3 is a little weak still), a person who isn't universally opposed to systemd can find ways to make it do what they want at the level they need, and so there's room to like what it does well, because you can actually use it to do those things. The issue is that Lennart Pottering is an arrogant egotist who firmly believes his own hype train. He's not alone in that, but honestly nobody's that impressive in reality and it makes people not want to give him an inch even when yeah the thing he created is pretty decent. Not perfect. Not God's gift to humanity. Not the only right way it could ever be done. But decent, and better than what we had before by a wide margin.
@knghtbrd
@knghtbrd Год назад
@gius db cults of personality are like that. Though I'd say the enemies of Lennart Pottering would call him less nice things than that. I've heard them. I just don't subscribe to any dev's cult of personality, including my own.
@porterhouse937
@porterhouse937 Год назад
Because Linux cultists who’s only ideology and character trait is Linux, need an antagonist. Every ideology, even retarded ones like Linux, need their version of the “Devil”.
@cheako91155
@cheako91155 Год назад
Does the kernel have regular security updates? I think I only remember specter/meltdown, tcp-syn-cookies(yeah, I'm old), and I'm struggling to remember more.
@BrodieRobertson
@BrodieRobertson Год назад
Yes but either way you're still going to get general kernel feature updates
@cheako91155
@cheako91155 Год назад
@@BrodieRobertson can remember security flaws from the 90s, but not ever rebooting to activate a feature. The last time I needed a feature I couldn't insmod it was user space vlc2, I just needed to build it no reboot.
@speed488
@speed488 Год назад
Cool feature for servers, however I don't see myself using in on my personal PC. With nvme SSDs and fast CPUs, the downtime difference is just not worth it.
@eDoc2020
@eDoc2020 Год назад
The big problem with servers is that they take forever to POST but kexec takes care of that.
@user-dz3ph7dl4m
@user-dz3ph7dl4m Год назад
Worth leaving Devuan for!
@meskes4059
@meskes4059 Год назад
How about “sudo shutdown -ruserspace now”
@wizard-28
@wizard-28 Год назад
systemd-rebootd
@baumstamp5989
@baumstamp5989 Год назад
pottering's horns are always regrowing after he breaks them ... wonder how long it will go on til he learns
@okamiboi
@okamiboi Год назад
I saw your systemctl userspace-reboot alias venting
@Hyperboid
@Hyperboid Год назад
Why is preserving file descriptors useful? It's not like any process could use them, right?
@ubsefor
@ubsefor Год назад
Man, macOS has this “feature” on reloading userspace from the days when launchd has emerged
@episode6maine
@episode6maine Год назад
i hope this will make gpu passthrough less of a hassle, usually i have to reboot my system to a uki with an different initrd in order to avoid nvidia drivers from loading earlier than vfio ones to be able to pass it to a windows vm
@kiraphillips5713
@kiraphillips5713 Год назад
As one of the use cases is image based systems, how would this compare for --apply-live command for rpm-ostree from the users perspective?
@rogo7330
@rogo7330 Год назад
What's the point of preserving fd-s if your userspace will be killed and those files will belong to nobody? I don't get it. Also my concern about Poettering software is that it trying to control EVERYTHING on your system and doesn't tell what exactly it's doing. This is bad if you want do something yourself or there is a bug that not present in another software (or you know how to bypass it) but something is already defaulted to keep doing it's thing and also control everything else so you can't just kill it.
@Beryesa.
@Beryesa. Год назад
Pair this with an LTS kernel and you're good to go!
@yihanzhang2094
@yihanzhang2094 Год назад
Should be systemctl reboot --userspace or systemctl reboot -u, since systemctl reboot already exists.
@GottZ
@GottZ Год назад
imagine rebooting your Homeserver remotely without typing in your Luks 2 key, cause it's held in kernel space
@CatFace8885
@CatFace8885 Месяц назад
I don't even like systemd very much, but this is an awesome feature. Good job, systemd guys! 👍
@SkyyySi
@SkyyySi Год назад
I will never understand why people prefer having commands be super cryptic instead of just spelling stuff out. Sure, it maybe made sense in the early 80s, but tab completion, scripts and aliases have existed since forever at this point
@eDoc2020
@eDoc2020 Год назад
One problem with long spelled-out options is that many will start with the same letters, meaning you need to type more before you can tab-complete. Also it fills up your entire screen instead of having a whole command able to stay on a single line. Fortunately there's a compromise which has been around for a long time: have long options like --ignore-case as well as an equivalent short option like -i.
@little-wytch
@little-wytch Год назад
It doesn't matter to me, since I don't have a problem doing traditional reboots, but it sounds like an interesting feature even tho I hate systemd in general. What I don't get is why anyone has a problem with calling it "renew" instead of something else. There's shutdown for a full power cycle, restart or reboot for a softer reboot, why not "renew" for a partial reboot?
@mirmarq429
@mirmarq429 Год назад
Love the new outro
@raum_dellamorte
@raum_dellamorte Год назад
With literally no experience getting that close to how the kernel functions, could it not be possible (perhaps in the near future) to launch the new kernel in a kind of virtualized state, shut down userspace, pass control to the new kernel and shut down the old one, then reload userspace in order to perform a live kernel update? Perhaps there is a hardware reason that one kernel cannot pass control onto another kernel? This seems to me to be a highly desirable feature. In my mind, where I have no idea of the world in which the kernel lives, I can picture a second kernel loaded into ram, updated to match the state of the old kernel, then perhaps a pointer address change hands the reigns over to the new kernel. I know it can't be that simple or it would have been done.
@eDoc2020
@eDoc2020 Год назад
It is that simple and has been done. That's what kexec is.
@OldieBugger
@OldieBugger Год назад
Sounds nice, but I feel it won't be of much use to me. I shutdown my computer whenever I go to sleep myself, or go to work for the day etc. My reasons for this: the electric bill and the wear of my computer.
@eDoc2020
@eDoc2020 Год назад
I just put mine to sleep.
@OldieBugger
@OldieBugger Год назад
@@eDoc2020 Whatever works for you.
@someonestolemyname
@someonestolemyname Год назад
I only ever reboot when I need a new kernel, which isn't that uncommon on a rolling release. I think userspace-reboot is good but it would be better to have an alias like ureboot. I am the type of people that explore new features typing up stuff, I would probably be curious about "ureboot" then look up what it is than looking up userspace reboot and finding out how to do it.
@kaywee
@kaywee Год назад
i love systemd
@computerfan1079
@computerfan1079 Год назад
I would love for systems where reboot after update is enabled (like Fedora) to deduce if there was a kernel update or userspace-only and automatically select one or the other
@Ghfvhvfg
@Ghfvhvfg Год назад
Silverblue does that micro ist also.....
@somenameidk5278
@somenameidk5278 9 месяцев назад
​@@Ghfvhvfgyou started trailing off in german?
@thientranduc-pu2nn
@thientranduc-pu2nn Год назад
I'm waiting for the moment Pottering approves the new name as "sus", if not, I'm making an alias.
@Zeioth
@Zeioth Год назад
So this is like login out your user... but without actually login out? I wonder how this look on practice. I will try it out.
@ottolehikoinen6193
@ottolehikoinen6193 Год назад
If this was on MS, the tiitle could be Power Nap mode to be introduced? Sounds like a good feature, but i'm one of those who gets scared any time I see a kernel update.
@owlmostdead9492
@owlmostdead9492 Год назад
This is a gamechanger for immutable systems like Silverblue and MicroOS
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
So let me get this straight - someone comes to Linux because it gives them complete control over what their computers do and then they want to make it immutable which stops them having complete control over what their systems do?
@owlmostdead9492
@owlmostdead9492 Год назад
@@terrydaktyllus1320 I can see how you'd argue that but only because you don't understand immutable systems and/or their use case. Do you think everything should run in kernelspace? Probably not because it's a terrible idea, immutable systems are just the next step in abstraction, like userland is to kernelspace.
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
@@owlmostdead9492 You seem to be conflating two completely different concepts, with respect. I work as a Linux cyber-security specialist for a telecoms systems provider and, yes, I've not come across immutable systems in that space - virtualisation and Cloud, very much so. From my perspective, immutability falls into the realms of embedded systems and games consoles which are outside of any use case that I personally have for Linux anyway. Your question "Do you think everything should run in kernelspace?" is strange, given that it has no direct relevance to (my understanding of) immutable systems, given that on "mutable" systems, not everything is run in kernel space anyway. So it's a moot question on your part, unless I am missing something. So go ahead, prove me wrong on the above points.
@owlmostdead9492
@owlmostdead9492 Год назад
@@terrydaktyllus1320 I don't know how to prove someone wrong on something he doesn't understand or has massive misconceptions about. Userspace is an abstraction layer (not literally) to kernelspace, to keep things tidy and more secure. The same is true with an immutable image/filesystem/snapshot whatever you want to call it, it doesn't take away any control whatsoever, because I can, at any time, modify the image with whatever I want to. Immutable systems like SilverBlue or MicroOS are completely different from locked down embedded systems. Two whole different categories.
@terrydaktyllus1320
@terrydaktyllus1320 Год назад
@@owlmostdead9492 "I don't know how to prove someone wrong on something he doesn't understand or has massive misconceptions about." And that could be down to limited communication skills on your part, which isn't my problem to solve. I understand the concepts up to a point, but I don't understand the way in which you are relating those concepts to each other - which is why I am questioning you now. It's called "debate". "Userspace is an abstraction layer (not literally) to kernelspace, to keep things tidy and more secure." Yes, that's what I understand userspace to be, and I already have that in a "mutable" and "bog standard" Linux system - so what does immutable give that I don't already have? Apart from a "sledgehammer to crack a nut" solution of not allowing changes to a system in the first place. "Immutable systems like SilverBlue or MicroOS are completely different from locked down embedded systems." I am sure they are but you're not answering my question - where are these relevant as use cases, except in scenarios where you don't want the core filesystem to be changed - i.e. embedded-type systems. All you are doing is telling me what it isn't, rather than what it is.
@AshtonSnapp
@AshtonSnapp Год назад
Let’s see… if a full power cycle is a “hard reboot”, and an operating system reboot is a “soft reboot”, then a userspace reboot could be called a “softer reboot”? “Reshoe”? “Nap”? systemctl userspace-reboot works well though. It’s straightforward too!
@BrodieRobertson
@BrodieRobertson Год назад
Those are by no means official terms, I just used them as they demonstrate the point but it does fit
@UKprl
@UKprl Год назад
@@BrodieRobertson Cold and Warm I think are the original terms for this? As I believe it related to whether the system needed to do a full POST or not. Cold and Warm are also used in hardware such as managed network switches to indicate whether it was a power cycle event or a software/image-based reload.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
1:33 Actually, this is what containers (e.g. LXC) already do.
@x0kosmus0x
@x0kosmus0x Год назад
A full system reboot only takes a few seconds on my system, so I probably wouldn't need this feature, but if there is a need for it somewhere then why not implement it.
@cheebadigga4092
@cheebadigga4092 Год назад
I'd be for "systemctl reboot" as the normal reboot, and "systemctl softreboot" as this userspace option.
@erkinalp
@erkinalp Год назад
systemctl --user reboot ?
@cheebadigga4092
@cheebadigga4092 Год назад
@@erkinalp that sounds even better!
@Cookiekeks
@Cookiekeks Год назад
7:38 exactly what I use for suspend
@Aeduo
@Aeduo Год назад
I think windows had this in like windows 98. You'd initiate a restart and get just a "Windows is now restarting" message, skipping vga bios/system bios initialization.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
That’s called a “warm boot”.
@Aeduo
@Aeduo Год назад
@@lawrencedoliveiro9104 ah. In this case I imagine it might be something more along the lines of a kexec but I dunno if it's going as far as like, unloading io.sys/msdos.sys.
@kolz4ever1980
@kolz4ever1980 Год назад
Welcome to Linux. Trying to copy windows 30+ years later 😂
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
Did Windows ever figure out the pass-process-context-to-the-new-userspace thing?
@bltzcstrnx
@bltzcstrnx Год назад
​@@lawrencedoliveiro9104 yep, got deleted again. Just search for the original Xbox reboots while loading, hopefully that's enough. Game states persist across reboot.
@obake6290
@obake6290 Год назад
If this is something the "Linux never needs to be rebooted" people will use, that's better than just not rebooting in any fashion and missing ALL the updates. Personally, this is kind of cool toy I guess? Would've been amazing years ago when boots and reboots took a long time, but now it's like a minute tops. Really not concerned about that. And also, pretty much every time I update, I get a new kernel version. Need to do a full reboot for that anyway, so not much use for this userspace-only reboot. But maybe that's just my Arch brain talking.
@mbk0mbk
@mbk0mbk Год назад
Why not just restart those updated service and programs instead of init restart ? Full reboot on only kernel update
@randomu53r
@randomu53r Год назад
is it diffrent from SysRq + e/i ?
@hoefkensj
@hoefkensj Год назад
im also not a systemd hater , and i use it on every of my linux installs. and im really fine with the software but i think the name is a bit odd /weird, i know it mimics launchd a bit , but named usually indicates a daemon , so systemdaemon ,awesome. makes sense , but daemon is just the daemonized version of a program so , there should be a, system program aswell that does the same thing but 'not daemonized', that together that the short form of system is sys, wich is obviously already in use , so by choosing that name , systemctl is probably the shortest form you can give it without becomming dubious. service / serviced would have worked aswell , and unitd since all its parts are called units anyway , even main/maind was still free to use :), ontopic , i do think that userspace reboots are a nice to have but i think its purpose might not be a good thing for linux in general (meaning it might boost the popularity and usabillity of readonly distro's above that of regular installs , and i wile nice i thing they are the opposite of what linux used to be , something you could poke around in anywhere and change things
@hoefkensj
@hoefkensj Год назад
also promotes the mindset of what the gnome devs shine in . ... we know whats best for you, and dissagreeing with us is not allowed
@gh975223
@gh975223 Год назад
thing is reboots now are mega fast now i use nvme storage but for hdd storage systems this does make sense
@monkev1199
@monkev1199 Год назад
BIOS init actually takes up half of my reboot time, for updating userspace only this makes a lot of sense.
@ivanmaglica264
@ivanmaglica264 Год назад
This sounds like container reboot, similar to rebooting LXC container in Proxmox...
@AshnSilvercorp
@AshnSilvercorp Год назад
_can you do that with sus reboot?_ Network manager: _WHat?_
@mudi2000a
@mudi2000a Год назад
Systemd complainers are usually people who say, we always did it like this, why change it?
@NoidoDev
@NoidoDev Год назад
Reboot!? You mean when the power line is off for a moment? Yeah, that happens, I should get an UPS. Joke aside, I want the opposite. Easy upgrading of the Kernel without a reboot.
Далее
How One Linux MAN Easter Egg Caused Chaos
12:12
Просмотров 24 тыс.
Legacy Linux Apps Are A Dotfile Nightmare
13:55
Просмотров 15 тыс.
aespa 에스파 'Whiplash' MV
03:11
Просмотров 12 млн
I'm switching to Linux... and abandoning Windows
17:54
Просмотров 4,3 тыс.
Switching To Wayland: Why I'm Daily Driving Hyprland
15:40
Harder Drive: Hard drives we didn't want or need
36:47
Was Rust In The Linux Kernel A Mistake?
26:09
Просмотров 150 тыс.
The Linux Experience
31:00
Просмотров 1,2 млн
X11 Extensions Made Xorg Actually Usable
12:39
Просмотров 12 тыс.
Where Do Linux Sudo Incidents Get Reported?
11:09
Просмотров 21 тыс.