/srv/irclogs.ubuntu.com/2019/06/06/#ubuntu-server.txt

=== Dee is now known as darknite
kantlivelongdoes RPCNFSDCOUNT not work in 16.04 for nfs-kernel server? it looks to me that its never used by the service unit file but the unit does use RPCNFSDARGS04:40
kantlivelongi only ask because increasing the thread count seems to make no diff04:42
=== lotuspsychje_ is now known as lotus|celery
=== elsheepo is now known as beatzz
lordievaderGood morning06:44
=== cpaelzer__ is now known as cpaelzer
lucidguyOk, Server with 192GB of ram.  I assume that's GIGA, and not GIBI.  Convert that to Gibibytes and you get 178GiB.  If you do a free -g on the box you get 187?  I'm pretty sure df is in GiB, so why is there about 10GiB discrepancy?14:52
sdeziellucidguy: AFAIK, RAM is expressed with a 1024 base value for "K"14:54
lordcirthsdeziel, -g is gibibytes according to the manpage14:55
sdeziellordcirth: I'm referring to the 192GB part14:55
lordcirthAh, the manufacturer? Yeah I don't know what they use14:56
lucidguyOhh, so ram is sold in GiB not GiG like drives?14:56
sdeziellucidguy: that said, that doesn't explain where the 5GB went14:56
blackflow192GB of physical RAM but not every bit is addressable. dmesg will show available physical addressable RAM in bytes.14:56
sdeziellucidguy: I'd check 'dmesg | grep -i memory' and see how the kernel reserved that RAM14:57
sdeziellucidguy: on a random box here, I have: Memory: 4740848K/4914680K available (8613K kernel code, 1335K rwdata, 4028K rodata, 1484K init, 1284K bss, 173832K reserved, 0K cma-reserved)14:59
lucidguyMemory: 196455640K/199738988K available (12300K kernel code, 2473K rwdata, 4288K rodata, 2408K init, 2416K bss, 3283348K reserved, 0K cma-reserved)14:59
sdeziellucidguy: and this VM has 4800MiB assigned14:59
sdezielIf I'm doing my maths right, your kernel only sees 190.4 GiB15:00
lucidguysdeziel: Does that make sense?15:00
sdezieland 3.13 GiB are 'reserved', whatever that means15:00
blackflowstack <-> heap gaps'n'all, that RAM is not addressable.15:01
sdeziellucidguy: I don't know why the kernel doesn't see the full 192 GiB, looks like the EFI/BIOS is hiding some of it or something like that but I'm just guessing at this point15:01
lucidguyOk, this makes more sense now.  I knew storage, like drives were in GiG and not GiB, thought RAM was sold/represented the same way.15:02
sdezielblackflow: I would assume that only apply to virtual addresses, not physical ones, no?15:02
patdk-lapif you have some pci devices that use memory (aka video cards)15:02
patdk-lapthat memory is not usable by the os15:02
sdezielyeah ^15:02
sdezielbut 2G of video RAM on a server sounds a little excessive ;)15:03
lucidguyMy last statement is accurate right?  Disks are still sold in GiG?15:03
patdk-lapI think some network cards do this also, and infiniband cards, but those are rare15:03
patdk-lapya, I guess it has to be a real server motherboard to have 192gb ram anyways15:03
patdk-lapcould need it if it was a windows server :)15:04
lucidguyUbuntu Server15:04
patdk-lapefi/bios doesn't hide it15:04
patdk-laphmm, that motherboard was designed for only ubuntu server?15:04
lucidguyI wonder if the BOSS storage controller is taking some15:05
sdezielpatdk-lap: do you know where the NIC/video cards reserved chunks would be visible/accounted for? Would the kernel still see that memory or not? If it does, would they be in the 'reserved' section from that dmesg line?15:06
patdk-lapthe kernel won't see it, it will be subtracted before the os boots15:06
lucidguyThanks guys, appreciate the responses, solved my mystery.15:07
sdezielOK so that would explain where the 1.6GiB went15:07
lucidguyI'm sure I read online that ram sold was represented in GiG not GiB.. grr15:07
sdezielone day, I hope to understand what the kernel reserves...15:07
patdk-lapwell, I cannot remember how it does it now15:08
patdk-lapbut should reserve <1meg15:08
patdk-lapstill lots of dma stuff that only works below 1meg or 16megs15:08
sdeziel170MiB on that i440fx VM15:08
sdezielout of 4800MiB assigned to it15:08
blackflowsdeziel: yes, but that will always reduce the availability of physical RAM as long as physical addresspace is less than virtual (which is always unless you had gazillions of ram)15:09
blackflowoh yeah, there's the GPU as well, sometimes it shares the system RAM15:10
patdk-lapsaid that way above15:10
blackflowsorry, didn't see it15:10
sdezielblackflow: I don't understand how the gap between stack and heap wouldn't be usable by the kernel. That gap is in virtual address space alone, no?15:11
patdk-lapit is15:19
patdk-lapbut that doesn't really help the kernel15:19
patdk-lapif the kernel was places randomly in each process, none of it's memory pointers or anything would work15:19
sdezielpatdk-lap: I'm arguing with: blackflow: stack <-> heap gaps'n'all, that RAM is not addressable.15:20
patdk-lapdefine addressable :)15:20
sdezielmore specifically the 'not addressable' part15:20
patdk-lapif you use it, it will cause a exception15:20
sdezielnot addressable by the userspace process15:21
patdk-lapit is addressable15:21
patdk-lapit's not backed by anything, and needs to be allocated15:21
sdezielwhat I'm saying is this gap is purely virtual, it doesn't waste any physical RAM15:21
patdk-lapwell, there is some waste, but your talking on a small level, 4k15:22
sdezielI don't understand why the gap would be allocated at all15:22
patdk-lapor maybe more for empty stack allocations15:22
patdk-lapunused stack space15:22
patdk-lapunused heap space15:23
patdk-lapand mmap15:23
sdezielright but that's not part of the gap15:23
patdk-lapoutside of that, nothing is allocated to physical or swapped ram15:23
sdezielor is it? Is there actually a gap or can the stack and heap grow till they meet? Causing explosion15:23
patdk-lap heh?15:24
* sdeziel vaguely remembers stackclash15:24
patdk-lapof course they can grow till they meet15:24
blackflowsdeziel: ah yes, these days it's all in virtual address space only15:24
patdk-lapwhen all the virtual address space is used up15:24
patdk-lapthe kernel will allocate physical and swap memory to back those pages15:24
patdk-lapif there isn't enough swap space, then it will blow up sooner15:25
blackflowsdeziel: they could meet in the past, there was a CVE about it, forgot the details. but iirc kernel now protects against that.15:25
sdezielhttps://access.redhat.com/security/vulnerabilities/stackguard15:26
blackflowah yes, the stack clash, you said it.15:26
jamespagecoreycb: apologies - dpdk things blew out my morning today - I'll endeavour todo some of the dep updates for train m1 tomorrow16:27
coreycbjamespage: no problem at all, i'm going to focus on it this afternoon and see what deps i can get through.16:48
=== kallesbar_ is now known as kallesbar
=== MassDebates_ is now known as MassDebates
ahasenackrafaeldtinoco: ok, so, sponsoring19:08
rafaeldtinocoahasenack: tks, NOW ill finally cherry-pick iproute2 patches for cosmic and disco then.19:09
rafaeldtinocoahasenack: do I have to ping someone for the missing +1s on the review ?19:10
rafaeldtinoco(server team / etc)19:10
rafaeldtinocoor just let it hang in there19:10
ahasenackrafaeldtinoco: no, one is enough from our team19:10
ahasenackand I can sponsor19:10
ahasenackahasenack: we usually just do a final check, like the bank asks you to ack sometihng on the phone loud and clear19:11
ahasenackrafaeldtinoco: rather19:11
ahasenackrafaeldtinoco: so, ok for having 96b1b4a6b461effe47a19d5d62d9f0e9825e9fcb sponsored?19:11
rafaeldtinocoahasenack: +119:11
ahasenackok19:12
ahasenackrafaeldtinoco: two things I'll do then19:12
ahasenackrafaeldtinoco: one is push the upload tag, which marks the commit has corresponding to the dput I'll do right after19:12
ahasenackrafaeldtinoco: and second is the actual dput19:12
ahasenackrafaeldtinoco: that will upload the package to eoan-proposed, where it will go through what we call migration checks19:13
ahasenackrafaeldtinoco: https://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html19:13
ahasenackrafaeldtinoco: it may take a while to show up there after the upload, but I'd ask you to do what we call "follow its migration"19:13
ahasenacki.e., keep an eye there to see if it passes the tests and actually lands in the archive19:13
rafaeldtinocowill do19:13
ahasenackrafaeldtinoco: that page refreshes about twice an hour, it's a bit irregular19:17
rafaeldtinocogood to know19:19
ahasenackrafaeldtinoco: it's currently building: https://launchpad.net/ubuntu/+source/iproute2/4.18.0-1ubuntu319:23
ahasenacka good hint that it migrated, and usually comes way before the excuses page updates, is the email from lp saying the bug was closed, since it's mentioned in d/changelog19:23
rafaeldtinocook19:24
ahasenackrafaeldtinoco: you can now also move the card to "external dependency", signaling we now have to wait for this external process19:30
rafaeldtinocoahasenack: done19:30
ahasenackand I just assigned it to you, that was missing19:30
rafaeldtinocohum. maybe others are missing that too, /me review19:30
rafaeldtinocoahasenack: disco and cosmic are good also19:39
rafaeldtinocoahasenack: are we waiting for full verification on eoan ?19:40
ahasenackok, let's wait for eoan to migrate19:40
ahasenackyep19:40
rafaeldtinocook19:40
cncr04smy grub won't boot from my mdadm array anymore19:50
cncr04ssome recent update broke it19:51
cncr04sits an imsm array19:51
rafaeldtinocoahasenack: alright. so after dput to -proposed, and update_excuses are good, how does it get to -updates ?20:01
rafaeldtinoco(in ccase this was an actual sru)20:02
ahasenackrafaeldtinoco: for eoan there is no -updates yet, so it will just move to where it should be20:02
rafaeldtinocoyep20:02
ahasenackmain or universe20:02
rafaeldtinocoah gotcha20:02
ahasenackfor srus,20:02
ahasenackthe upload to proposed will be in an unapproved state20:02
ahasenackuntil a member of the sru team gets to it20:02
rafaeldtinocoah i know where that is20:02
rafaeldtinocoall makes sense now20:03
ahasenackif it's accepted, then this person will move it to -proposed, lp will get that standard comment about it having been accepted and asking for help testing it, etc20:03
ahasenackwe also have to check the excuses page for that particular ubuntu release, to see if dep8 tests failed20:03
ahasenackif there are failures, they need to be investigated, and either justified in the bug with a comment, or fixed in a subsequent upload20:04
rafaeldtinocook20:04
ahasenackrafaeldtinoco: the per-release excuses page is like this: https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html20:05
ahasenackreplace "bionic" with your release of choice20:05
rafaeldtinocook, saving bookmarks20:05
ahasenackyep20:05
=== techmagus_ is now known as techmagus
Soniwhat are alternatives to lighttpd that will fit a shitbox VPS? 1 core, 256 MB of RAM, 10 GB of disk, etc20:39
SoniI don't like the configs, I have the same block copypasted 5 times, once for each subdomain, and I wanna add a blog to it.20:40
OerHeksa blog on a vps, interesting20:45
ploxilnSoni: I use nginx a lot, it's also very efficient ... it's pretty popular so you may have already considered it20:48
ploxilnthere's an "nginx-light" package with a reduced set of features enabled20:49
Sonibut how hard is it to configure?20:49
ploxilnI suppose it takes some getting used to, but it can be very concise to just serve some files or just proxy. fcgi requires a separate helper like spawn-fcgi20:49
ploxilnhttps://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/20:51
sdezielSoni: I'd advise sticking to nginx-core which is an Ubuntu specific flavor that mirrors upstream default plugin selection, that's the one in 'main'20:52
sdezielSoni: with that version, you get a handful of plugins that you can disable to reduce the RAM usage. Those plugins are for TCP and mail proxying20:52
sdezielSoni: with those plugins removed, my TLS/HTTP 2.0 nginx on 18.04 takes only 5.5M of RAM ;)20:57
Sonimaybe I should just use thttpd21:06
=== Greyztar- is now known as Greyztar
Sonihm21:13
Soniit's really hard to fit a blog engine into a shitbox VPS apparently21:14
sdezielSoni: if 5.5M of RAM is too much for you, then yeah, you'd need to use something != nginx21:15
Sonidoes nginx have some plugin to turn an atom feed into an HTML blog?21:15
sdezielSoni: the biggest RAM consumers are often the DB engine and PHP depending on your blog21:15
Soniso I edit the .atom and it changes the blog automatically?21:15
sdezielSoni: not sure that is what you are looking for but I found this : https://ef.gy/serving-an-atom-bundle21:17
Soniokay, let's see if I can make any sense of this stuff21:21
Sonifirst, how do I clean the package cache?21:21
Soniactually hm is it safe to just remove everything in /var/cache?21:22
sdezielapt-get clean21:33
sdezielSoni: this should reclaim some space21:33
Sonisdeziel: that's only for apt tho, I have stuff like the webserver as well21:34
sdezielSoni: I don't know your server but I'd recommend to tread carefully, rm -rf can hose a server pretty quickly ;)21:35
Sonisdeziel: so can certbot. doesn't stop me from using it.21:35
sdezielSoni: I find dehydrated less intrusive but I guess it's a question of personal taste21:36
Sonihm I wish I knew about that before setting up certbot21:38
Soniwould probably be lighter on disk usage as well21:39
sdezieldehydrated only deps are bash and curl IIRC21:41
Sonianyway, any tool to clean up /var/cache?21:42
OerHeks!info Polipo21:49
ubottupolipo (source: polipo): lightweight, caching web proxy. In component universe, is optional. Version 1.1.1-8 (bionic), package size 174 kB, installed size 702 kB21:49

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