/srv/irclogs.ubuntu.com/2022/07/25/#ubuntu-server.txt

=== oerheks1 is now known as oerheks
knaccchey all, I just did an apt upgrade and rebooted, which took me to kernel 5.4.0-122. This caused crashes on the server, so I downgraded by doing "sudo apt remove linux-image-5.4.0-122-generic" and rebooted. It's now working. I was wondering if what I did will now have any adverse consequences for the server which will break things if I do an apt upgrade in the future? Apparently there will be06:19
knaccca bugfix for kernel .122 released on 1 August (https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.4/+bug/1981658) 06:19
ubottuLaunchpad bug 1981658 in linux-hwe-5.4 (Ubuntu Bionic) "BUG: kernel NULL pointer dereference, address: 0000000000000008" [Undecided, Confirmed]06:19
knaccci am terrified if i do an apt upgrade in the future, there will be some kind of grub issue and i'll brick the server06:20
lotuspsychjeknaccc: nobody can prevent new bugs of the future, they just occur sometimes06:21
lotuspsychjea good practice with servers is when you have a test server around to test updates on, before you update your real servers06:21
lotuspsychjeso you can hold up your servers until the bug is fixed06:21
knaccchi lotuspsychje, thanks, yes i understand. i'm specifically only worried that i did not use the correct mechanism to downgrade the kernel06:21
lotuspsychjedowngrading on ubuntu is not possible06:22
ravagei think he means using the older kernel06:22
lotuspsychjeyou can only boot a previous kernel for testing purposes like in your case now06:22
knacccright, yes "uname -r" reports i'm now on 5.4.0-121-generic06:22
ravageusually you dont have to uninstall it. ubuntu always keeps the older kernel and you can select it in your grub config06:22
ravageremoving the kernel that does not work is a workaround too of course06:23
knacccravage it's a remote server and it's fiddly to attempt to get into grub with a remote KVM. was there are better approach i should have used to tell grub to automatically boot an older kernel on reboot?06:24
ravageyou made it to what you want already06:25
ravagesit tight and wait for the fixed kernel06:25
ravage*made it do06:26
knacccravage ok great, thanks for your help. i am mainly just worried that when i do the apt upgrade in the future, it'll get confused that i manually removed that 122 kernel it was expecting to be there, causing the grub config to get trashed somehow06:26
ravagefrom what you wrote you did not delete  the metapackage06:26
ravageso you should get the update06:27
knacccravage btw after the "sudo apt remove linux-image-5.4.0-122-generic" step, there was a scary pink warning screen telling me i was doing something that could break things, and so I answered "no". i'm not sure what i answered no to, since i don't remember the exact wording of the warning06:28
tomreynknaccc: you can use grub-set-default to choose to boot into a different than the newest kernel. but as things stand, with a fix coming up shortly, you'll best just keep things as they are.06:28
knaccctomreyn ok great06:28
tomreyndoes    apt list --installed linux-image-5.4.0-122-generic    say that this kernel image is still installed?06:29
knaccctomrey no, it's gone. the warning was something about removing the kernel i was currently using06:29
knacccit was warning me not to answer "yes" to the yes/no question06:30
knacccso i said no06:30
knacccbut it was removed anyway06:30
knacccit was some kind of pink TUI dialog06:30
tomreyni see. well, just wait for the update, i guess06:30
knaccccool, thanks for your help, all of you. i was pretty scared for a while until the kernel reversion stopped the crashes. i just need to take some deep breaths :)06:31
tomreynyou can still keep installing updates safely. just make sure you'll boot into a kernel which has the fix bwfore you boot next time.06:34
knacccaug 1st is only a few days away, so i think i'll just leave it alone until then. It was such a weird bug, the system booted just fine, but there was a kernel panic as soon as i started the web server06:37
rbasakahasenack: o/ on tomcat9, is catalina.out rsyslog's _only_ output from tomcat? I don't see anything else. Just wondering about regression risk.13:40
ahasenackyes, the other catalina files are produced by tomcat9 itself, check /etc/tomcat9/logging.something13:41
rbasakThat's good enough for me. Thanks!13:41
ahasenackin fact, it's logging the same thing in multiple places (also the systemd journal)13:41
ahasenackactually, /etc/tomcat9/logging.properties doesn't help determining the filenames, one has to consult upstream documentation to find out those are the default names. It's easier to just run fuser on /var/log/tomcat9/*13:43
arthurvkHi, I run Ubuntu Server 18.04 for a php app that (heavily) uses redis-server. After upgrading from 4.15 to 5.4 (HWE) we notice a big drop in performance (~25%), the same is true when upgrading to 20.04 (both 5.4 and 5.15). Even with mitigations=off performance is still lower than 4.15 with all mitigations enabled. I can reproduce quite consistently with https://pastebin/vHFGpy5T Even more stunning 14:46
arthurvkis the performance gap compared to Debian 11 (5.10 or 5.18), the same script runs about 60% faster than Ubuntu with kernel >= 5.414:46
arthurvkDoes anyone have an idea where this performance diff comes from after 4.15 kernels? The servers run in a qemu-kvm virtual machine btw.14:48
ahasenackarthurvk: did you change just the kernel? IIRC there was a performance bug in php that was worked on by athos 14:53
ravagei dont think it is the kernel14:54
ravagetested focal and jammy on a jammy host wit lxc14:54
ravagefocal: Redis 100000 ping benchmark took 2.1695239543915 seconds14:55
ravagejammy: Redis 100000 ping benchmark took 1.9991569519043 seconds14:55
ravagebut times differ. i would have to run it a few more times and create an average14:56
ahasenackravage: this is the bug I remembered: https://bugs.launchpad.net/ubuntu/+source/php7.4/+bug/188227914:57
ubottuLaunchpad bug 1882279 in php7.4 (Ubuntu) "PHP built from source performs much better than the Ubuntu packaged version" [Medium, Triaged]14:57
ahasenackthere is a ppa with test packages for kinetic and jammy: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/lp1882279-php-perf/+packages14:58
ravageyes i remember that too14:58
ahasenackalthough it now says there are newer versions available, even for jammy, so perhaps another sru was released before14:58
ravagelet me finish some background tasks 14:58
ravagethen i can run the script again14:58
ahasenackas the bug tasks don't mention a jammy upload14:58
ahasenackok14:58
ahasenacksergiodj: hi, do you remember being moderated on openldap-technical@ when first posting there?14:59
rbasakravage: you might try https://launchpad.net/~athos-ribeiro/+archive/ubuntu/lp1882279-php-perf/+packages in a Jammy container.14:59
ravagewill give it a try15:00
ravageafter that damn win10 finished updates. its always doing updates :P15:01
arthurvkravage: the performance difference is primarily between 18.04 4.15 vs all newer kernels (5.4 and newer)15:09
arthurvkahasenack: I saw that bug athos worked on, but I don't think that's related (his fix was reverted upstream though..)15:11
ravagethe PPA makes no diference15:18
ravagealso times for focal and normal jammy packages are about the same15:18
ahasenackthen I don't know15:19
ravagei could try to run a bionic live usb and run the same script15:20
ravagewould that still have the older kernel?15:20
arthurvkI think newer iso's let you choose if you want the default or HWE kernel?15:21
lotuspsychjearthurvk: i installed a 20.04 -desktop on a customer yesterday wich pulled HWE kernel on updates aka 5.15 series15:42
ravagethe latest 18.04 live desktop has 5.415:47
lotuspsychjekk15:48
ravageand it also has no redis-server or php-redis package15:48
ravageand im really too lazy to figure all that out :)15:48
ahasenackrbasak: does the git ubuntu bot look into MPs targeted at stable releases too, or just ubuntu/devel?18:07

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!