/srv/irclogs.ubuntu.com/2023/02/02/#cloud-init.txt

meenaso why would you want infiniband if 400G ethernet exists08:08
meenaaciba: can I please get the stale flag removed from https://github.com/canonical/cloud-init/pull/1957 ? 14:22
-ubottu:#cloud-init- Pull 1957 in canonical/cloud-init "add function is_virtual to distro/FreeBSD" [Open]14:22
acibameena: done14:29
meenathere really needs to be some kind mechanism for saying this depends on that14:30
minimalmeena: infiniband has been around a long time, and certainly when it first came out it was faster than ethernet14:41
minimalinfiniband has advantages other than speed14:43
holmanbRDMA is low latency and doesn't eat CPU cycles the way ethernet does - perfect for scientific computing.14:54
holmanb You can pin a dma buffer and the nic drops (potentially really big) chunks of data into the buffer before letting the kernel know it's arrived (major oversimplification). 14:54
holmanbIB is used in many of the biggest HPC clusters, and many storage appliances and parallel filesystems (i.e. lustre) use it for the same reason.14:55
holmanbfrankly our IB code is really weird and very openstack specific - I would argue that it should be refactored into openstack datasource14:58
holmanb*the weird parts of it should be refactored14:59
minimalthe only time I ever worked with Infiniband was on a (very large) bare metal private cloud for very large in-memory databases, obviously low latency and CPU load was important there15:02
holmanblots of fun tech came out of the early 2000s :)15:12
minimalholmanb: it was less than 5 years ago I had to deal with IB though lol15:12
holmanbah, fair15:13
meenaaye. I feel like i knew most of these things, but also keep forgetting them, because my Hardware knowledge is severely limited by the fact that I'm not allowed to touch hardware, lest it explode.15:26
meenait's really just my talent for exposing bugs, but if you transpose exposing bugs onto hardware it should just add easily catch fire15:27
meenacould. could! not should15:28
meenabut yeah, holmanb, when i was looking into refactoring some of most important parts of cloudinit.net (get_interfaces and friends) some of the dependent functions where ib, and the only place they're called is in OpenStack15:31
meenabut even if they weren't OpenStack specific, the way they are written is just a waste of CPU15:33
minimalthe Azure MANA network interfaces are based on Infiniband AFAIK15:34
holmanbminimal: I don't think we actually support configuring them though, right?15:37
minimalholmanb: no idea, don't know muxch about them, however the Linux driver for them has been around for almost 2 years and MANA == Microsoft Azure Network Adaptor so I'd expect at least some of their instance types to have them15:39
minimalI think of MANA as the Azure equivalent of AWS's ENA adaptors15:39
minimalmeena: there even seems to be FreeBSD support for MANA ;-)15:40
waldii have yet to seen any instance types with MANA15:40
* meena just wants to replay secret of Mana now15:42
minimalwadi: seems strange to introduce a new network adaptor and a couple of years later not to actually use it.....15:43
waldiyes15:44
waldiin addition to virtual function (aka for vms), microsoft also added support for the physical function part of this device. i wonder if they want to run linux as vm host15:45
minimalAWS also have EFA interfaces but I'm not sure if they're infiniband or something else15:49
holmanbminimal: I think efa is its own silicon15:49
minimalholmanb: I saw some mentioned of RDMA so wondered15:50
holmanb+1 they have their own driver and userspace bits iirc15:51
minimalright, I was trying to find the source for it to check as it is not part of stock kernel...15:51
holmanbminimal: see infiniband/hw/efa/ in the kernel source15:57
holmanbhttps://elixir.bootlin.com/linux/v6.2-rc6/source/drivers/infiniband/hw/efa/efa.h15:58
minimalholmanb: right, so it is sort of IB-based/derived as its inside drivers/infiniband...15:59
minimalI thought it was still an out-of-kernel driver, obviously not16:00
minimalefa_main.c:     ibdev_info(&dev->ibdev, "IB device registered\n");16:01
minimalso that refers to it as a IB device ;-)16:01
meenaI'm anyways so impressed when people can read Linux kernel source. i can't even find where to look for the right version16:06
meenahonestly, that's most of the reason I moved to FreeBSD16:07
holmanbyeah, it's in the infiniband family, but I'd be curious how much of the spec (or compatibility with other devices) they actually support16:08
minimalholmanb: the efa_verbs.c file make a lot of use of IB_* defintions, the other files don't at all16:12
minimalmeena: reading the kernel source is easy, understanding it is a completely different matter however ;-)16:13
meenabut that's the thing: I have an easy enough time *understanding* FreeBSD source most of the time16:14
holmanbminimal: iirc there was some integration with nvidia gpus that efa was capable of or intended for - bit of a funny collaboration since nvidia bought mellanox16:17
minimalholmanb: well Nvidia have been on a shopping spree the past few years relating to DC tech - Mellanox for DPU and networking, they tried Arm for CPUs, 16:21
holmanbdon't forget cumulus16:21
holmanband bright16:22
meenaI can't believe i actually got a response to my email https://lists.freebsd.org/archives/freebsd-infiniband/2023-February/000005.html16:23
minimalhad missed the cumulus deal, bright I'd never heard of16:23
meenathis is the fifth email to this list, so that's how active it is16:23
minimalmeena: well infiniband is low latency ;-)16:24
meenalol16:24
meenayou're in a fabulous mood, minimal. did you throw away the FreeBSD and RHEL code from your PR yet?16:25
minimaladd that to the corny IT jokes list eh? "I could tell you a joke about UDP but I'm not sure you'd get it" :-)16:25
holmanbmeena: was the response direct? I don't see it on the list16:25
minimalmeena: am in the midst of expunging that currently16:25
meenaholmanb: yes16:26
holmanbmeena: I know on linux, ifconfig never grew the ability to see infiniband hw addresses - iproute2 did16:26
meenaholmanb: I will never tire of explaining to people that BSD ifconfig is nothing like Linux ifconfig.16:27
holmanb:D16:28
minimalmeena: I haven't used ifconfig in Linux in maybe 7+ years now...16:28
meenaBSD ifconfig was always more like Linux ip a & ip link16:28
meenawhereas Linux ifconfig was always like an unloved step child, who was eventually forgotten at a gas station during a vacation trip16:29
=== cpaelzer_ is now known as cpaelzer
holmanbmeena: like it in which ways?16:30
holmanbbnf-esq cli?16:30
meenathe CLI is backwards compatible, slowly changes, but exposes every bit of info and every bit of configurability16:32
minimalmeena: I don't know if cloud-init supports any Linux distros that have ifconfig but not ip - holmanb, any thoughts?17:10
minimalperhaps RHEL and derivatives?17:10
holmanbrhel is on iproute2 for any version we still support17:10
meenayeah, all the Linux ifconfig code in cloud-init is super crusty. it's basically really just in netinfo17:12
meenaand, honestly, netinfo itself is pretty awful code, that, but the end of this refactor could hopefully be deleted17:13
minimalholmanb: wondering whether after 23.1 there's any point in removing non-BSD ifconfig support?17:24
holmanbminimal: probably worth a mailing list comment to give any stragglers a chance to speak up, but I think that would probably be fine17:30
meenalike, all the Linux ifconfig code is vestigial, at best. I doubt any of it is in any way still fully functional17:37
meenaand, honestly, even if our Linux ifconfig code isn't, Linux' ifconfig probably can't do half of what we use iproute2 for17:39
holmanbtrue, our ephemeral dhcp setup is all iproute217:40
minimalmeena: that was the reason that ip/iproute originally came into being - settings like bridge/vlan were done using other tools separate from ifconfig and "ip" was developed to have a unified tool17:46
meenaaye.17:48
meenaagain, BSD ifconfig does all that, which makes sense, cuz it was always developed in line with the kernel features17:49
meenawho here is an OpenStack contributor?18:33
waldisecurity fixes many years ago don't count18:34
meenahttps://freebsdfoundation.org/project/openstack-on-freebsd/ wonder if this person has access to infiniband hardware lol18:35
meenawow, how… how do you end up with a university email address of sexbear@?18:45
meenahttps://cs.github.com/canonical/cloud-init?q=infiniband Search failed: undefined19:35
meenacool cool cool19:35
meenawell, it is beta, I guess19:36

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