/srv/irclogs.ubuntu.com/2021/02/10/#ubuntu-server.txt

fenugrecHi, I'm looking for suggestions to figure out "where'd all my RAM go" . 'free -h' shows 47M available, 65M free (out of 2G).  'ps -aux' only adds up to about <10% of mem;  /tmp is empty02:23
fenugrecooh, 'df' shows a few /dev/loopN devices with 1-200MB used... they're not tmpfs but squashfs, does that add up into RAM total ?02:25
sarnoldfenugrec: what's the free -h report for buff/cached ? that's  a common place for memory to go02:25
sarnoldfenugrec: the smem tool in the smem package is handy for figuring out how much memory to blame each process for consuming02:26
fenugrecsarnold, that was my first idea, but not in this case " Mem:  1.9Gi   1.8Gi   63Mi  0.0Ki    99Mi    40Mi " (99M for buff/cache)02:26
fenugrecnoted for smem. Can't do anything right now, apt-get is running and system is slowed to a crawl02:27
sarnoldyeah that looks like an unhappy system :/02:27
fenugreccan't tell if OOM is doing anything because UFW is polluting dmesg... vmstat shows a ton of block io, no idea how much of it is due to apt-get02:28
sarnoldfenugrec: it might be useful to grab a copy of /proc/meminfo and /proc/slabinfo to get a snapshot of how kernel memory is being used02:29
dasmfenugrec: try top or htop (if it's installed). it should show where the memory is02:32
fenugrecsarnold, dumped both https://pastebin.com/e681HhkX . Not used to looking at those raw, I'm just a peasant P )02:33
fenugrecdasm, same issue, RSS and %MEM numbers in top don't add up (htop not installed)02:33
sarnoldfenugrec: same, I usually just use the slabtop program, but if you're already low on memory, throwing that onto the fire too wouldn't help02:33
dasmfenugrec: what shows MiB Mem row?02:35
dasmit should add up to first column total02:35
fenugrecdasm, MiB Mem :   1978.2 total,     79.5 free,   1817.6 used,     81.2 buff/cache . Right, 1978 = 79+1817+81, but I'm taking issue with 181702:36
dasmif your system allows, try installing htop. it's very neat tool, i prefer it over top. it allows to sort by the biggest offender consuming the most memory02:36
sarnoldfenugrec: check that kmalloc-128 line, it's vastly out of proportion to all the other kmalloc-* slabs02:37
fenugrecdasm, I agree 100% and use htop usually. But serverbox is currently running apt-get so I'm blocked for X more minutes/hours02:37
sarnoldfenugrec: this feels a lot like a kernel memory leak02:37
fenugrecsarnold, good observation, slabtop is also showing kmalloc-128 way at the top02:37
sarnoldif i've done the math correctly, that's ..02:38
dasmor in top you should be able to shift+m to see what's going on02:38
sarnold1565.9707031250000000000002:38
sarnoldmegabytes02:38
fenugrec(shift+m = sort by %mem ? nice, I can never remember). Right, localedef is at the top with 4% MEM.02:40
sarnoldfenugrec: unfortunately it'll be pretty difficult to figure out what's consuming your kmalloc-128 slab from here :( -- rebooting is going to be the best way to get that memory back02:40
dasmsarnold: in the middle of apt update it's rather dangerous02:41
sarnoldyes, good point02:41
fenugrecsarnold, yeah makes sense. I could spend hours killing stuff and not find the culprit...02:41
dasmtreat it like windows, lol02:41
fenugrecuh oh my ssh session running apt just timed out02:42
sarnoldfenugrec: it's a bit interesting to me that you've got enough ufw / iptables logging events to spot ooms, I wonder if that code path is affected02:42
sarnold:( :( :(02:42
dasmoh.02:42
fenugrecno no I'm *not seeing OOMs , all I see is UFW noise02:43
sarnoldoof, don't mind me, just typos..02:43
fenugrecapt-get is still running ? so it doesnt have a pty ... not sure what's going to happen. I guess future me will deal with it tomorrow !02:44
fenugrecdasm, sarnold, thanks for the assistance02:44
dasmfenugrec: good call ;)02:44
sarnoldfenugrec: one sec..02:44
sarnoldhttps://github.com/iovisor/bcc/blob/master/tools/slabratetop_example.txt02:44
sarnoldthis tool *might* be able to help you spot kernel features that cause those 128 byte allocations02:44
dasmfenugrec: i'm logging off. good luck with looking for the culprit!02:45
sarnoldif you enable the firewall logging, and see that grow; disable firewall logging, and see those allocations stop, then you might have a really good guess02:45
=== de-facto_ is now known as de-facto
sarnoldaww crud. our bpfcc-tools package version of slabratetop-bpfcc fails for me :(02:46
fenugrechmm let's see02:46
fenugrecoh, I need to install / compile it ?02:46
sarnoldyeah, this one is crazy, it even does compile *at run time* with kernel headers or something similar02:47
fenugrecheh guess how well that's going to work on this cadaver P )02:47
sarnoldnot well02:47
sarnoldthis is for post-reboot :)02:47
fenugrecaah yes02:47
sarnoldI mean, I hope your leak is fixed in a newer kernel02:47
sarnoldbut in case it's still there :( this might be useful02:48
fenugrechuh it's on 5.4.0, sounds kinda old. Def will look into it. Not me though, future me02:48
fenugreccheers, ttyl if I'm still hosed tomorrow02:49
sarnoldgnight, good luck fenugrec :)02:50
samba35<pre>make[1]: *** No rule to make target &apos;arch/x86/entry/syscalls/syscall_32.tbl&apos;, needed by &apos;arch/x86/include/generated/asm/syscalls_32.h&apos;.  Stop.09:29
samba35arch/x86/Makefile:264: recipe for target &apos;archheaders&apos; failed09:29
samba35make: *** [archheaders] Error 209:29
samba35</pre>09:29
samba35i am getting this error when i try to make kernel compile with make command09:29
samba35 i am in /usr/src/linux-headers-4.15.0-135-generic09:29
MICROburstWhat are the kernel options for booting 20.04.2 live-server via PXE? Getting complains from /init about not finding /dev/sr0.11:18
MICROburstping15:06
tewardpatience is a virtue MICROburst, and nobody'll answer you unless they have an idea of a solution.15:10
MICROburstteward:  no traffic at all.17:46
MICROburstGetting the error "/init: line 49: can’t open /dev/sr0: No medium found" like here: https://community.theforeman.org/t/installing-ubuntu-via-pxe/2010917:47
TJ-MICROburst: sr0 == Scsi Removable device (CD-ROM) - so presumably the installer is looking for the mounted image where it thought it had booted from (thinking it is booting locally )17:49
=== ijohnson is now known as ijohnson|lunch
=== vlm_ is now known as vlm
xibalbawhen i configure an ipv6 address with /128 on my loopback interface via netplan it keeps coming up as a /64. should that be expected?19:48
MICROburstTJ-: I know that sr0 is the CDROM, vmlinuz and initrd are taken from an .iso-file. Do I need *.seed or how can I fix it?20:09
rbasakMICROburst: have you tried https://ubuntu.com/server/docs/install/netboot-amd64?20:18
geniiThere's also http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/installer-amd64/current/legacy-images/netboot/ubuntu-installer/amd64/20:20
=== ijohnson|lunch is now known as ijohnson
=== blueeagle is now known as BlueEagle
gotchahey guys, im trying to add a static ip to a second card in 20.04, its different than it was in 18.04, this is what i have it set to https://i.imgur.com/Tk1a6bQ.png23:02
gotchaany idea why it doesnt work?23:02
Ussatinitial thoughts are your indents are wrong23:03
UssatYALM is VERY picky23:03
UssatTAML23:03
UssatYAML23:03
Ussat....23:03
Ussatya that23:04
gotchathis is what it gets me when i run netplan apply https://i.imgur.com/fX7rwBZ.png23:04
gotchaim using screenshots cuz its a VM and i cant copy/paste to pastebin23:04
sarnoldgotcha: wild guess territory, move that version: 2 up above the ethernets: line23:05
UssatWell, there ya go, indentation23:05
Ussatand what sarnold said23:05
UssatI have gotten REAL familiar with YAML because of ansible23:05
gotchaok.. the first part was set to static while i was installing the OS so i didnt touch that23:06
sarnoldheh I'm still in the 'flail around wildly trying to make it work' stage of yaml23:06
gotchai added the eth1: and below23:06
UssatThat stage never ends sarnold23:06
* sarnold sobs23:07
Ussateither does the sobbing stage23:07
sarnoldlol23:07
gotchaok, 'netplan apply' worked and the new static ip is showing23:09
gotchabut i still cant get online..23:09
gotchajust so you guys know what ive done is this ubuntu has 2 virtual cards23:09
gotchaone is local and has no internet access and the second does23:09
UssatOK.....here is a paste example of what I am useing: https://paste.centos.org/view/634bd00c23:12
UssatNote how I define nameservers23:12
Ussatand yes, thats how you do bonding in Ubuntu :)23:14
sarnoldgotcha: it probably doesn't make sense to put two gateway4: in the thing23:15
sarnoldman does 'find in page' work for anyone on https://netplan.io/reference/ ?23:16
UssatWell, they are seperate nic's so yes, you need to define it for both23:16
gotchatrue.. i missed that23:18
gotchahere is a dumb question, why did they change to netplan?23:18
sarnoldsystemd-networkd files aren't super-fun to write23:19
Ussat^^23:19
UssatNetplan is a really nice front end23:19
Ussat'its just, YAML sucks23:19
sarnoldthere's a bit in that page that says "There should only be a single gateway23:19
sarnoldset in your global config, to make it unambiguous. If you need multiple23:19
sarnolddefault routes, please define them via routing-policy."23:19
sarnold-- it's located about a quarter of the way through the page23:19
Ussateh....23:19
UssatI find that page...lacking23:19
sarnoldamen23:19
UssatHere is a good example:23:21
Ussathttps://paste.centos.org/view/754ed4e623:21
UssatOick and choose from that23:21
Ussatalso: https://netplan.io/examples/23:23
sarnoldthat's a great example Ussat23:25
Ussatalso https://codebeautify.org/yaml-validator/cbd763fb23:25
=== Napsterbater is now known as Guest81744
=== Napsterbater_ is now known as Napsterbater

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