public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: DJ Delorie <dj@redhat.com>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH v2 0/3] System-wide tunables
Date: Fri, 19 Apr 2024 17:11:40 -0400	[thread overview]
Message-ID: <xn7cgt2h2r.fsf@greed.delorie.com> (raw)
In-Reply-To: <ZiIuRxrjPoPa7jlW@arm.com> (message from Szabolcs Nagy on Fri, 19 Apr 2024 09:41:43 +0100)

Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> tunables can differ across targets, so they need to be checked not to
> cause trouble (e.g. doing a hwcap mask specified by an int instead of
> arch feature can do different things across abis)

This is no different than setting an environment variable today, right?
The data stored in ld.so.cache has pre-computed IDs but also the string
names, and the IDs are validated and recomputed in case libc.so changes.
The value string is not parsed unless it's a generic "double" type, and
even then, the string value is still included.

I have not yet implemented any filters for the tunables, but it's
already been requested to have an only/exclude filter for "per program
image name".  I suppose I could add a filter for only/exclude hwcaps
too.

Hmm... aren't tunables processed in ld.so, not libc.so  If so, it's
*already* more difficult to support multiple glibcs at the same time
(tunables mismatch between ld.so and libc.so), unless you have a
separate filesystem namespace, in which case you have a separate
ld.so.cache also.


  reply	other threads:[~2024-04-19 21:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  3:48 DJ Delorie
2024-04-19  8:41 ` Szabolcs Nagy
2024-04-19 21:11   ` DJ Delorie [this message]
2024-04-22  8:47     ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xn7cgt2h2r.fsf@greed.delorie.com \
    --to=dj@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=szabolcs.nagy@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).