libera/#devuan/ Friday, 2021-10-29

systemdletehas the output of luksDump changed in the last few years?  I'm looking at https://www.maketecheasier.com/change-luks-encryption-passphrase/ and trying the luksDump operation shown about 1/2 way down that page.  I don't get the same results.  So I wonder if maybe I am unwittingly in a different Linux universe.06:37
systemdletethat article was (apparently) published in 2019.06:37
AlexLikeRockwhats itsthe PAKAGE to AUTOMOUNT?16:07
Stargoose2Hi! I am making some tests on a minimal system without sysvnint: I bring everything up "manually" with a custom script I pass to the kernel with the init=... parameter.16:13
Stargoose2Works great, except... how can I specify what to do at CTRL+ALT+SUP? (three-finger-salute)16:13
Stargoose2Normally it would be specified on /etc/inittab, but I believe /etc/inittab isn't used in such a system16:14
error144Hello everyone, hope everyone is fine, I have been trying to use devuan installer-iso to make my own custom distro.16:45
error144Could anyone tell me where to put the udeb files in order for the 'make' commend to work?16:45
error144Is there anyone beside rrq that uses installer-iso?17:30
error144I am shy to ask for help from the same guy 3 times.17:30
golinuxFYI . . . rrq CREATES the isos for Devuan so top of the food chain.  He'17:35
golinuxs still sleeping at this hou.17:36
golinuxhour17:36
golinuxCome back in 6 hours or so17:36
hyrc"get the rrq"  "rrq's sleepin"17:57
error144golinux I guess it is really hard to do this, I am getting mad, I spent around a week just searching for a way to add an installer for my distro19:44
golinuxerror144: You've take a deep dive so not surprising you're getting the bends.  :)19:49
error144golinux is it like making an installer for a custom distro that rare? linux has hunderds of distros, how did they make their own iso?19:50
golinuxIt's not easy to do what you're trying to do so requires patience.19:51
golinuxHave you tried refractasnapshot?  That's how the live Devuan isos are created. Eve I can manage to do that!19:51
error144refractasnapshot? I recall rrq said it was more like debian installer then anything else?19:52
error144yet I found the two way too different19:52
error144also remember I am trying to make an installer, not a LiveCD19:53
golinuxhttps://www.refracta.org/docs/readme.refractainstaller.txt19:53
error144!!!19:54
golinuxrefractainstaller installs exactly what's on the live CD including any changes you might make in the live session.19:54
golinuxIt is in the Devuan repos/19:55
error144I got to try that NOW, thank you golinux19:55
error144I will be back after trying it.19:55
golinuxGood luck!19:55
error144<319:55
hyrcwhy does devuan ship with kernel setup so that system locks up when OOM, instead of killing offending process?20:06
hyrcmaybe this is tradition?20:07
hyrchas been this way in linux since like 18 years, but kernel can be configured to kill the process instead of locking up the whole machine20:07
hyrcmaybe changing the defaults would be bad, but on install, end-user should be given the option to configure kernel to not lock-up system when out of memory20:08
hyrcfor the desktop user scenario20:08
hyrcthoughts?20:09
UsLah, you lost the anus. But I agree that OOM should not result in a system lock.20:11
hyrcthere might be downsides to my solution that make it bad/wrong for some use cases20:13
hyrcbut i much prefer seeing firefox killed than pull power and lose my work20:13
hyrctell me of your homeworld, UsL :)20:15
UsLare you still banned from -offtopic?20:17
UsLI think that was ridiculous btw.20:17
UsLbeing banned. Not my home world.20:17
hyrcmaybe.  joke was from DUNE ("tell me of your homeworld, Usul")20:18
UsLAh, thought I recognized it.20:19
UsLthe old nick is still banned. We can continue in there though.20:21
user____hyrc: turn off swap and overcommits.20:22
user____Also oomd is an abomination spawned by systemd & co to live with overcommits. The correct way is to set ulimits per user or per process (pgroups).20:23
hyrcdid that yes user____20:25
hyrchave 3.7GB.  setup zram.  not sure what % of RAM to use for zram.20:26
user____If you have ulimits set properly and no swapping (slows down), and reserve 1G or so for kernel, it will not lock up.20:26
hyrcsome use 25% some use 199%20:26
user____zram is not normal ram20:26
hyrcyes it is compressed ram. but what to set it to, idk.  seems to work how i have it setup20:27
user____And yet you complain about crashes. 25% is mentioned. It is bull. Turn off zram, stabilize the system, then turn it back on, one step at a time.20:28
hyrci fixed them, sir20:28
user____Who?20:28
user____25% ram for zram means something compressed in zram can expand easily to 400% ram and you'll crash for sure.20:29
hyrci suggested shipping a devuan installer with an install time option presented to user, to not crash the system when memory runs out20:29
hyrcthat's how they've set it up for the droid4 with one gb.  i used 199% on my 3.7GB machine20:30
user____Right, that requires black magic and worse. Just do the above. No zram, stabilize the system using cgroups and ulimits, test it is solid no matter how many tabs you open in ff, then gradually enable zram but only for system tmp else ff will use tmp zram and blow up the system again.20:30
hyrci do not put /tmp on ramdrive20:30
user____I hope I make myself clear.20:30
hyrci think you did thanks20:30
hyrccalling it tmpfs was a mistake20:31
hyrcled naive developers to not treat it like a limited-space ramdrive20:32
hyrc(python again)20:32
user____It is not "limited space", that's the problem. It's dead easy to write a non sparse 60GB file using dd if=/dev/zeror to zram which will be compressed nicely, and completely blow up the system when opened by any app not mapped to zram, using /tmp for temp decompression images, for example.20:33
user____zram is a way to fake ram which isn't there. You like to live dangerously, do it. But don't complain.20:34
hyrcmy lockups didn't occur with my fixes enabled20:34
user____Okay.20:34
hyrcthey occured with devuan as-configured-by-default20:34
hyrcit might be helpful to offer a few options for memory handler on install20:34
user____yes, but maybe as a patch/post install option?20:35
hyrcyou seem to know a lot about this.  what do you think of that idea?20:35
hyrcmhm20:35
user____Arch has nice info on handling low ram https://wiki.archlinux.org/title/Improving_performance20:35
user____Search overcommit @20:35
hyrcyeah disabling overcommit helped20:35
nemohm. I'm confused20:35
nemotmpfs *isn't* a limited space ram drive20:36
user____I like uresourced @link, not tried yet20:36
nemothat's what ramfs is for no?20:36
nemotmpfs was designed to overflow ram if necessary I thought20:36
hyrctmpfs used to be called ramfs20:36
user____sigh20:36
nemohyrc: both are still supported20:36
nemohyrc: ramfs is ram only.20:36
hyrcthen they called it tmpfs and led to tmpfs abuse20:36
nemohyrc: you can still mount -t ramfs20:36
hyrcmaybe i'm wrong about this20:36
hyrcthe way things fill up /tmp, i put it on a ssd20:37
user____tmpfs and zram are somewhat orthogonal.20:37
hyrcand no more angery20:37
nemoif you do dd if=/dev/zero of=/tmp/whatever bs=1G count=10020:37
hyrcyes20:37
nemoit will work20:37
hyrcwe have switched topics20:37
user____nemo: only with zram20:37
nemouser____: erm. pretty sure it should work without compression. spills over to disc20:37
nemolemme test locally20:37
user____nemo: no. Turn off swap first.20:37
nemouser____: ahhh with swap off20:38
nemoyeah. that will fail20:38
user____https://gitlab.freedesktop.org/benzea/uresourced20:38
nemouser____: ramfs does not use swap20:38
user____Even with swap on, it will fail.20:38
nemowell. depends how much swap you have20:38
nemoor at least... I thought..20:38
user____No normal system has 100G of swap20:38
nemoso... traditionally it was 2X RAM20:39
nemoI guess that's no longer the case20:39
nemothat was back when people used suspend to swap I suppose20:39
user____Most people do not want to swap at all. The speed penalty is horrible.20:39
user____Normal swap setup is 1xRAM size normally now.20:39
nemouser____: yeah. one nice thing about ramfs there if you are trying to do something that you absolutely always want to be ram backed20:39
nemouser____: can be helpful for big data files and using shell as data trawler20:40
nemoor... I guess password stuff maybe. dunno20:40
user____It seems uresourced uses systemd ...20:40
nemohm. this work laptop has 37.3GiB of swap20:42
nemowhat an odd number20:42
user____How much RAM20:43
nemothinking someone just grabbed a random rounding off of end of disc when partitioning20:43
hyrcthanks for this informative conversation20:43
nemouser____: 32 gigs, so, ok, about 1X20:43
user____hyrc: you can script a bash script which implements the changes (and unimplements them) and upload it in the wiki.20:43
nemodefinitely would be problematic for hibernating, but I guess no one does that anymore20:43
nemowell. "maybe"20:43
nemouser____: that said, if 1X backing is standard now, the brand new Apple laptop would not fail on count=100 then 😉  - it has 64GiB of RAM so 128GiB RAM+swap if one was going for that ☺20:46
nemobut yes. was just a randomly typed command. my bad.20:47
user____Apple does not count for Linux. It's FreeBSD based >;-)20:47
user____Btw FreeBSD is fairly robust wrt ram abuse by user apps.20:47
user____It's just that Linux reinvents everything that already exists in *bsd in triplicate, broken by design, and with crap abandonware "docs".20:48
nemostep â‘   user____ buys me a $4½k laptop step â‘¡ I install linux on it. step â‘¢ dd count=100 for some reason ☺20:48
nemouser____: freebsd doesn't allow overcommit?20:49
user____Sorry, I retract that. The "optimistic memory allocator" is also implemented in FreeBSD now. Solaris has no overcommits.20:49
* user____ headbangs a bit20:49
nemowell. it probably doesn't have tmpfs anyway20:50
user____Awe and wonder. I have not touched Solaris since the 1990s, and even then, only as user.20:50
user____https://www.reddit.com/r/linux/comments/2zbsox/do_i_need_swap_space_if_i_have_16_gb_of_ram/ good reading20:50
nemoI'd rather have it than not have it20:51
nemoesp on a machine used for browsers and java VMs20:51
nemobetter to swap thrash than crash20:51
user____It's your choice. Linux did not invent ramdisks. They exist everywhere but linux renamed it...20:51
nemowell. can still use ramfs if you wish ofc20:51
user____nemo: swap trashing just delays the swap,20:51
nemoin fact probably on /tmp20:51
user____*just delays the crash20:52
user____With the extra bonus of having an unresponsive machine swapping where it is not clear if it will "make it" or not.20:52
hyrcthanks for that link20:52
user____Idiocy from link: "One significant thing that swap space is used for is tmpfs." -- er, no. Once tmpfs swaps, it is SLOW.20:54
nemowell... why not just use ramfs for /tmp then20:54
user____tmpfs IS ramfs with another name and other options20:54
user____such as the ability to swap (and slow down)20:55
nemothe other day I unpacked a year's worth of logs to /tmp to trawl for some data for a user.  this was maybe not the best idea but, eh, probably also not that big a deal either20:55
nemofor one thing, the disc itself is virtual on those servers20:55
hyrcit's cartoon level superman-bizarro-world insanity for me to be doing 'desktop-y things' and need gigs of ram.   my nextstation hat 24MB RAM.20:55
nemouser____: I'm just saying, why not be explicit and use ramfs if you never want to allow swap20:56
user____nemo: tmpfs IS ramfs with extras...20:56
nemohyrc: heh. my daughter is doing school on the living room machine. It is burning 9 gigs of RAM for her friends minecraft worlds. When she fires up minecraft that's another 8 gigs20:56
hyrcand python loves to dump gigs of data in there because "it's temp!"20:56
nemouser____: yes... I'm just saying. if you don't want the extras. just be explicit and mount as ramfs. no more problems right? it'll just fail due to lack of space when it runs out of ram20:57
user____nemo: and maintain an out of tree config on your own?20:57
nemouser____: I've made ramfs mounts when playing with data files just to avoid swap before20:57
nemouser____: *shrug* it's fstab. fstab is custom anyway usually20:57
user____https://www.psce.com/en/blog/2012/05/31/mysql-oom-killer-and-everything-related/ more fun20:57
nemohyrc: it's funny though. up until 2010-ish I had a gentoo laptop with a whole 96MiB of RAM ☺  - it ran an XFCE4 desktop with seamonkey reasonably well20:59
nemohyrc: P166 - only machine I ever used -Os on, on theory it might help with the RAM situation20:59
nemohyrc: that's also how much RAM the first generation iphone had20:59
nemowell. I think 128, but some was allocated for graphics. I remember we had a devil of a time getting hedgewars to work on it anyway21:00
FilipZHi.21:00
FilipZSome time ago, I reported here my problem with the malfunctioning wireless card21:00
hyrcnemo: i didn't realize 1st gen iphone was 128MB.  I thought 256 was low on N900.21:01
nemohyrc: https://en.wikipedia.org/wiki/IPhone_(1st_generation)21:02
hyrchi FilipZ21:02
user____hyrc: what was your `cat /proc/sys/vm/panic_on_oom` value before changes, and now?21:03
hyrccat: /proc/sys/vm/panic_on_oom: Cannot allocate memory21:04
FilipZIt was Intel Wireless 3650. I wrote about it under the name of Guest11 and Guest10.21:04
hyrcdon't recall changing that21:04
hyrcmaybe i did have to check notes21:05
user____hyrc: try with sudo21:05
user____cat /proc/sys/vm/panic_on_oom -> 0 or 121:05
user____Is 0 here, default current Beowulf kernel21:05
FilipZIf somebody out here that helped me could remember and tell what could be done next, it would be nice.21:05
hyrcshould work as root (su'd)21:05
user____yes21:05
FilipZI pasted here a link to the dmesg before.21:05
user____something strange is going on there hyrc21:05
FilipZI remember that I was asked about something like running the live OS, in some special mode, in order to do the dmesg once again21:06
user____https://sysctl-explorer.net/vm/panic_on_oom/21:07
hyrcFilipZ: i'm sorry i don't have a log of your conversation21:07
hyrcty user____21:07
hyrci set vm.oom-kill = 021:08
hyrcvm.overcommit_memory = 221:08
user____Was oom_kill not 0?21:08
hyrcdunno21:08
golinuxFilipZ: This channel is logged at http://reisenweber.net/irclogs/libera/_devuan/21:09
user____cat /proc/sys/vm/oom_kill_allocating_task is 0 here, should set to 1 to zap processes which try to bust the available remaining ram21:10
user____That alone sould prevent most kernel panics due to low ram21:10
hyrccopied to notes, ty21:10
user____https://www.kernel.org/doc/Documentation/sysctl/vm.txt see here original docs21:10
hyrcafter closing firefox i get 0 user____21:11
hyrcso i guess 'cat' was being killed :)21:12
user____yeah21:13
user____you are living on the edge21:13
user____what's your `cat /proc/sys/vm/overcommit_memory` ?21:13
hyrc221:13
critrit's the difference between rebooting immediately and waiting until you can't deal with slow swap and rebooting anyway.21:15
user____Ok, so you turned it off. Default is 0. Ok as you set it.21:15
user____critr: you can't reboot when the system is frozen in a swap frenezy.21:15
user____admin_reserve_kbytes is also interesting hyrc, you want it enlarged21:16
user____8MB is not enough for a gui login and process kill.21:16
user____It is enough for a text login, if you manage to switch to text console while the system is swap trashing.21:17
user____I'd set oom_kill_allocating_task and be done21:22
user____hyrc: so set /proc/sys/vm/overcommit_ratio to 0 and turn off swap and it should "never" crash again21:32
user____The kernel.21:32
hyrcis the overcommit ratio still relevant with overcommit_memory = 2 ?21:33
hyrcit's 50 currently21:33
user____Honestly, I go with defaults whenever I can. Only if things go South do I bother.21:33
hyrc:) yes21:33
user____https://docs.kernel.org/admin-guide/sysctl/vm.html @ overcommit_ratio21:34
hyrcthanks21:34
user____hyrc: see @ CommitLimit for formula used https://www.kernel.org/doc/html/latest/filesystems/proc.html21:34
hyrcsaved21:36
FilipZI am back again. http://reisenweber.net/irclogs/libera/_devuan/_devuan.2021-09-17.log.html Here are the last mentions of this problem. I am Guest11 here. gnarface: Can I somehow run this safe mode boot entry, without a live OS?23:23
gnarfaceFilipZ: yea, afaik "safe mode" should be just some kernel command-line options.  if you hit "e" to edit the grub boot prompt you can read them and copy them manually to your other grub install23:24
gnarfacesafe mode options should have been generated automatically by the stock kernel packages but if you put a custom kernel in there maybe not23:25
systemdlete I'm looking at https://www.maketecheasier.com/change-luks-encryption-passphrase/ and trying the luksDump operation shown about 1/2 way down that page.  I don't get the same results.  Article is from 2019.  Anyone know what is going on?23:43

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!