-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
wwwutz
commented
May 4, 2021
•
edited
Loading
edited
- fixed SRCURLs
- update
- static
- fixed SRCURLs - update - bash-completion outsourced
so far tested: anyway: yes, please test |
- bash-completion failed, fix that
Error messages are gone, but the git completion doesn't work. Perhaps this needs to be updated, too. |
works for me ... ?!?? |
My test was wrong. Yes, it works now. Thank you. |
LGTM |
- build static to remove dependecies to: linux-vdso.so.1 libncursesw.so.5 libdl.so.2 libc.so.6
Static linking has disadvantages, too. Nearly all programs are linked against libc, which has a few GB (10?) of read only program data. All programs linked against the shared library share the same in-memory copy. If we link everything statically, each program would use its own in-memory copy. A few GB times the number or running programs is relevant for workstations. Also, multiple in-memory copies might prevent optimal utilization of the processor caches, which would be very relevant to performance. |
Shameless plug, that Linus also commented on remotely related issue in the LKML thread Re: Very slow clang kernel config ... |
I guess, some people might stop reading after "Shared libraries are not a good thing..." So I'd like to stress that
seems to fit glibc. |
that's 1.6 times more lines of code ( if we measure this way, which is obviously not a good way to benchmark) Make it seconds: whereas the static version does less code, it will end faster and free up memory faster. Also hacks via Also... libc-2.33.so is 17 MB, not GB ... bash bumped up from 4.5 to 13 MB. Ha 1.6 times faster AND bigger 8-) |
just for fun:
|
No, the whole message and even thread was an interesting read for me.
Absolutely. |
Oops. Yes, indeed. So the number of copies is not a relevant factor. |
buczek@theinternet:~$ time for in in $(seq 1000);do ./bash.shared -c exit 0;done real 0m3.149s real 0m2.736s |
To be clear: I don't request a change here. LGTM |
So, in case of security issues in glibc and other libraries, who remembers to rebuild the packages using these? |
I think, statically linked programs can't use dlopen() so bash would loose the ability to load dynamically loadable builtins (enable -f). Not sure and I don't know if anything/anybody uses this. But needs to be considered. |
Breaks 'fakeroot' (see #2133). |
I will. I think others will join. |
- build static to remove dependecies to: libncursesw.so.5
OK, now we have a 'gimmeyoursharedlibshackmewithld-preload' version with ncurses glued in.
|
LGTM |
No idea if related, I noticed, Ctrl + left/right arrow now jumps words in MarIuX as I am used to from my GNU/Linux (Debian) systems. Before, it would always show some control character with [^ or so. So, thank you for fixing that. |