Originally posted by birdie
View Post
i agree with you about swap and hibernation, i understand why was done this way originally but even so is not an elegant solution but i'm confident it will be replaced eventually.
about swap resize is an unspoken rule but not a rule, swap was not designed to be an alternate big on-disk RAM, it was designed to handle non-critical data structures that weren't used often enough to justify the horribly expensive space in RAM(talking back to the 80's) or as a way to win some more time for the kernel to start aggressively cleaning pages in case the main expensive RAM became saturated, so in that age have certain fixed % of swap depending of the total ram was a good practice but today this concept is idiotic, if you have more than 1g in your swap you either need to spare few bucks and get more RAM or have a crappy software doing something very stupid.
Please note that you don't need to remove SWAP infrastructure from the kernel(this is very very unusual, i guess that is why you triggered that bug), just don't create a swap partition in your disk or reformat those partitions to ext2 or simply enable zswap, in my case i have maybe 3 years without creating swap partitions on my server or workstations or whatever because this day and age is a lot cheaper to get more RAM than buy a new harddrive(or SSD) damaged for constant swapping(is backwards now)
well about your rant about segfaults bug reports this have a simple explanation systemd is more dependant on kernel infrastructure while sysvinit is totally dependant in userspace and basically see nothing new since ages ago so the bugreports tend to be quite old and that executable itself is quite stable but problem with is that is actually quite easy to crash the boot process(again not the executable file sysvinit itself) by simply messing with its userspace dependencies(bash, ls, touch, awk, grep, etc.) or messing with early init scripts(forcing them to loop, wait for never happening events, bad syntax, etc.) while systemd can be crashed if you mess with the kernel infrastructure(the executable itself) but is very hard to mess the boot process if the kernel infrastructure starts fine(exactly backwards).
for testing you just need to modify the permissions/attributes of lets say awk and boom or look for an init script in rc2.d that contains a loop or a poll and add ;; somewhere near and enjoy, of course this won't happen often if you don't mess with the package init script or start having fun with /usr/bin and chmod but is also true systemd won't either if you don't mess with your kernel config options(without taking into consideration the dependencies of it of course).
again don't assume if in your specific scenario you managed to crash either one is the absolute same for everyone else on earth
Comment