libera/#devuan/ Thursday, 2020-06-18

eyalrozWhy would atril (the PDF viewer) create a webkit2gtk-4.0 process, which grows a huge (> 80 GB) virtual memory footprint, even for a small document?00:44
sauron-hi all, i need to create an array from 2 files, does anyone here knows how to do that?00:46
eyalrozsauron-:  What kind of array?00:47
sauron-for example: 1 file has 1 2 3 and other has a b c, the array should be: 1a 1b 1c 2a 2b....00:48
syco-split?00:48
sauron-both files have the values in the next line00:48
sauron-1, under 1 is 2....00:49
sauron-i read in bash that you have to 'declare' but this files have more than 70 millions lines...00:50
fsmithredno, you don't have to declare variables in bash00:50
eyalrozAnd where do you need to put that array?00:50
fsmithredjust set them when you want to set them00:50
sauron-in a new file00:50
eyalrozAlso, if it's such a large file - don't use bash. Use python or perl, or even - C or C++.00:51
sauron-thats the easy part: ... > b16 (thats the name i plan to use)00:51
sauron-the part i dont know is how to make array adding the values of both files00:52
sauron-*adding the values with all the possible combinations00:52
eyalrozOh, well, maybe you can use the 'paste' command00:53
fsmithredthat's looks like it'll do it00:53
eyalrozpaste -d ' ' a.txt b.txt00:53
fsmithredpaste - merge lines of files00:53
fsmithredor maybe -d '' (no space)00:54
eyalrozeach line of the output will contain a line from a.txt, then the delimiter (a space in this case), then a line from b.txt00:54
sauron-paste doesnt give me all the possible combinations but i can use it in another script, is just what i needed00:56
fsmithredall combinations?00:57
fsmithredso not just 1a 2b 3c00:57
sauron-a1, b2, c3, d4, thats all00:57
fsmithredbut 1a 1b 1c 2a 2b 2c?00:57
fsmithredI think paste will do exactly what you want00:58
sauron-thats for the 'easy' example, the real file has over 9 gb00:58
fsmithredas long as the lines all match up in order and none are missing...00:58
sauron-so i need to make sure it works in the test file before going to the file i need to create the array00:58
sauron-however the paste -d... was very useful for another script, thanks for that01:06
sauron-here i found the solution, hope it helps others... https://www.thegeekstuff.com/2010/06/bash-array-tutorial/01:23
specingsauron-: wooledge.org01:25
tuxd3vKernel 5.9 may be big for AMD GCN 1.0 apus..02:14
sauron-fsmithred specing eyalroz https://termbin.com/4l0h03:07
sauron-done!!!! that did what i need03:08
eyalrozsauron-: : That is not such a good idea for large files.08:22
tediousIs it a known problem that a stock beowulf system made with debootstrap is unusable due to console errors?15:08
gnarfacewell it's probably missing some important packages to make it bootable, like a kernel and boot loader...15:09
tediousRIght I did that part. :)15:09
gnarfacein that case you're probably gonna have to mention errors specifically15:10
tediousIt boots but there are a few hundred console errors per second so the system isn't usable.15:10
tediousrc rc0: error -515:10
tediousANd some of them are rc2 I think.15:10
tediousIt's hard to tell what proportion they're coming in so fast.15:11
gnarfacei think you should google for that error15:11
tediousFunny thing is I can't get a straight answer what the hell that error even is.15:11
gnarfaceit doesn't sound like a devuan specific problem, it looks like a hardware issue15:11
tediousEven the source doesn't say.15:11
tediousNah nothing else gives this problem.15:12
fsmithredtry adding 'quiet' to the boot command15:12
gnarfacethe first link i come up with suggests it's a bios configuration issue with a pcie card15:12
tediousfsmithred: This is well past boot messages.15:12
fsmithredyeah, I know15:13
fsmithredit might need to be -- quiet15:13
tediousIt starts before agettys are spawned I think.15:13
fsmithredbut that is supposed to suppress console messages15:13
tediousThat supresses printks right?15:13
tediousThese are like syslog messages.15:14
fsmithrednot sure exactly what it does15:14
tediousgnarface: How are you searching?15:14
gnarface"rc0: error -5"15:14
gnarfaceuse quotes15:14
gnarfaceeven if it turns out to be kernel/driver related, it could still be a particular card15:15
tediousHow does the video card affect sysvinit but the rest of the system boots?15:16
gnarfacei couldn't tell you, but i doubt that's what is even happening15:17
gnarfaceis it a nvidia card?15:17
tediousIt's an older AMD card.15:19
gnarfacethat's the only pcie card?15:20
gnarfacehttps://www.linuxquestions.org/questions/linux-general-1/dmesg-var-log-messages-errors-4175632203/15:22
gnarfaceanything on here look familiar?  is it mentioned in any udev persistent files?  they could be in /etc/udev or /lib/udev15:23
gnarfaceany bios settings possibly changed recently?15:23
gnarfacecards changed, card order changed, etc?15:23
gnarfaceif all else fails you could try the backports kernel to see if it's any better15:24
gnarfacesome of the amd cards may need non-free firmware for full functionality too but i'm not sure if this is a symptom of that15:24
gnarfacemostly that's only the newer ones though15:24
tediousHmm I don't think I installed anything non-free.15:39
tediousIs that normal for ATI/AMD cards?15:40
openbsdtai123a bit rethinking about base utils, they are usually under-optimized. look just "ls" to list files for instance, this utils is very unefficient. you can test it. it will perform slowly for a great number a files. A simple C code is basically more efficient if not sorting files.15:46
yetithat that to RMS15:59
yetior who is in charge with coreutils?15:59
yetihttp://gnu.org/software/coreutils16:01
yetihave a chat with the holy cow... eeeeh gnu16:01
sauron-eyalroz well, thats what i found and tested. asked for help in several channels, got no answer in any so thats the solution so far...17:27
fred`are there any 'common problems' known with dnsmasq after upgrading from ascii to beowolf ?19:17
fred`my problem is, that suddenly no dhcp-leases are distributed anymore19:18
fsmithredfred`, check buster release notes. There might be something about it.19:40
fred`fsmithred: didnt find anything, but working now. dont know why, but dnsmasq wasnt able to listen 67/udp anymore (failed to bind DHCP server socket)20:45
fred`netstat didnt show any process listening to this20:45
mcr@openbsdtai123, so /bin/ls is not inefficient because it can't implement qsort well. /bin/ls is inefficient because listing a very large directory of files, *if* you have to stat(2) all the files to find out how big they are, and what type (so you can colorize them), can take a lot of disk I/O.21:22
openbsdtai123cat is not supporting UTF-8. on devuan and raspbian. If you do the same under BSD, it just works.23:32
openbsdtai123 the command that shows it:   find -iname "*.txt" | while read -r i ; do cat "$i" >> ~/merge.txt ; done23:32
openbsdtai123then the merge.txt will fails to have right utf-8.23:32
openbsdtai123A simple replacement of "cat" by a little C code to cat the file will create a merge.txt with right utf.23:33
yetibugreport to the owner of the sources... coreutils, gnu project23:43
openbsdtai123it comes from vi mostly. nano and less have less troubles with utf-8. I tested cat and mcat and it seems not too differnt.23:52
openbsdtai123I will recompile vim myself to see it it comes from the debian/devuan vim packages(i.e. the deb file).23:53
yeti<--- not a vim-er23:59

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