WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: guix - "loader cache" glibc ldconfig  (Read 2260 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 641
  • ~.~
guix - "loader cache" glibc ldconfig
« on: January 06, 2022, 02:02:35 PM »
 just catching up with some of the more recent the guix additions

 https://guix.gnu.org/en/blog/2021/taming-the-stat-storm-with-a-loader-cache/

 some intresting details in the above

as mentioned in the quote below
glibc is not an extension, it is part of the base.

For info:

tc-10.x glibc-2.28
tc-11.x glibc-2.30

glibc  is part of the tcl base.

I wander if any consideration might be given to adding this guix glibc patch to future build rc
 https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/glibc-dl-cache.patch?h=core-updates&id=0236013cd0fc86ff4a042885c735e3f36a7f5c25

Quote from: guix:blog/2021/taming-the-stat-storm-with-a-loader-cache
A discussion of these changes is in the issue tracker; you can see the glibc patch and the new make-dynamic-linker-cache build phase.
In short, the make-dynamic-linker-cache phase computes the set of direct and indirect dependencies of an ELF file using the file-needed/recursive procedure and derives from that the library search path, creates a temporary ld.so.conf file containing this search path for use by ldconfig, and finally runs ldconfig to actually build the cache.




Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: guix - "loader cache" glibc ldconfig
« Reply #1 on: January 07, 2022, 04:11:16 AM »
That's not useful for TC. It's rather specific to guix.

TC libs are all in standard dirs, and so found quickly; not searched in 39 dirs like guix. Nor would per-app caches help anything.
The only barriers that can stop you are the ones you create yourself.

Offline mocore

  • Hero Member
  • *****
  • Posts: 641
  • ~.~
Re: guix - "loader cache" glibc ldconfig
« Reply #2 on: January 08, 2022, 06:14:39 AM »

i had thaught when posting it is probably more aplicable to  (guix + core) case

and pondered if some similar reasoning (changes required to base)  exists behind the choice to make a spesific dcore build  ?
.. rather than just using dpkg + core ...

 

Offline mocore

  • Hero Member
  • *****
  • Posts: 641
  • ~.~
Re: guix - "loader cache" glibc ldconfig
« Reply #3 on: January 10, 2022, 05:30:33 AM »

just ftr

https://wiki.archlinux.org/title/Guix
Quote
GNU Guix is a package manager that offers transactional, reproducible, per-user package management. While Guix can be used stand-alone and provide a full GNU distribution and a kernel by itself, you can install the Guix package manager on top of Arch to make Guix available to users while using a more traditional and mature Unix-like system as a base.

the arch wiki seams  good write up intro to guix *laments the lack of tc-wiki*

i (& others) have previously had some success using tc+guix
"Re: Request guix for TC9 x86" http://forum.tinycorelinux.net/index.php/topic,22443.msg140612.html#msg140612

i had modifyd the guix-install script
0) to run on tc
1) added 'live' config section  like https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh:sys_create_store()
    but insted of extracting guix store to /
    bind mounting it from [eg:/opt/guix/...] (large)disk partition containg guix store  into  fs  /gnu/store, /var/guix

related
http://forum.tinycorelinux.net/index.php/topic,22455.0.html # Guix on Tiny Core import Guix Packages to Mountable TCE extensions