/srv/irclogs.ubuntu.com/2021/07/20/#ubuntu-kernel.txt

=== cpaelzer_ is now known as cpaelzer
locsmifDoes the standard Ubuntu kernel from e.g. Hirsute support most modern CPU flags out of the box or does one have to compile their own kernel to get that support?14:32
locsmifWas referred here from #ubuntu14:32
apwlocsmif (N,BFTL), yes we would expect the broadest support that we can sensibly achieve in a kernel.  the reason CPUs have the flags it to let s/w react.16:35
locsmifHi all. I was here earlier but had to leave... I wanted to ask.. For Ubuntu Hirsute, could I expect any performance improvements if I got a kernel built for e.g. a Xeon E5-2680 v2?17:27
locsmifOr any similar Xeon CPU rather17:27
sarnoldlocsmif: < apw> locsmif (N,BFTL), yes we would expect the broadest support that we can sensibly achieve in a kernel.  the reason CPUs have the flags it to let s/w react.17:33
xnoxlocsmif:  that CPU is ancient, any currently supported ubuntu kernel will squeeze everything it can from that old cpu....17:49
xnoxbut even newer series the lag before the cpus are enabled is at most a couple of months. As we start integrating support for newer CPUs ahead of public release of hardware generally.17:50
sforshee~/quit21:14
locsmifsarnold:/apw and xnox: so I don't need to compile a special kernel for that CPU? Because my co-worker said Ubuntu kernels wouldn't be able to get the maximum out of flags made available by such a CPU compared to, say, the KVM64 "CPU" provided by Proxmox22:13
locsmifWhich lacks quite anumber of flags22:14
locsmifBecause those kernels "would have to be compatible with every CPU" so they couldn't have built-in support for those flags22:15
locsmifI tried to convince him otherwise (I said kernel process scheduling might benefit from them) but he couldn't be budged22:15
locsmifIt's about CPU host pass-through vs QEMU CPU emulation and whether it matters for performance to let the VM know about the host CPU it is running on at all22:16
locsmifI suspect it matters, slightly22:16
sarnoldlocsmif: probably telling libvirt to passthrough the 'raw' cpu rather than just using one of the predefined models would have performance benefits, but at the cost of reducing when you can migrate VMs from machine to machine22:21
locsmifBut, I'm also prepared to compile my own Ubuntu Hirsute or Debian kernel if I gain any kind of statistically significant advantage22:21
locsmifsarnold: ah, yeah, we talked about this in #proxmox maybe? Yeah we wouldn't do a live migration, we're a webshop where speed is very important as a selling point but live migration is not22:22
locsmifWe can pick a time block with low conversion/a lacuna in web visitors and schedule a migration then if we wanted one22:24
sarnoldheh, that probably means my other idea is a *horrible* one.. :)22:24
locsmifHeh ok22:24
locsmifNo worries22:24
sarnold(the *horrible* idea is to boot with mitigations=off, which disables a ton of security mitigations .. it might still have its uses for you, but shared hosting provider is probably not an ideal place for it :)22:24
locsmifOh no, it's not a shared hosting provider at all, we have two physical machines which are a Proxmox cluster, it's dedicated22:25
locsmifA bit old machinery maybe, but ok22:25
locsmifIt's not my call, but the boss has money, so I don't quite get why there isn't a budget for 3 machines with more modern hardware, but ok22:27
locsmifBut we're competing, at least I certainly am ;-) with the old setup and I'm trying to squeeze every ms I can out of this setup22:28
locsmiffour VMs each on every machine: load balancer, web hoster, database vm and redis22:28
locsmifWe're running MySQL 8.0 and InnoDB cluster and that is where performance matters most: read queries22:29
locsmifI guess I might be able to convince the head honcho to at least add a third at some point22:29
locsmifFirst, though, I have to convince the senior administrator to enable host CPU passthrough, but I should only do so if it yields results22:30

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