public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: libc-alpha@sourceware.org
Cc: Florian Weimer <fweimer@redhat.com>, Carlos O'Donell <carlos@redhat.com>
Subject: V4 [PATCH 0/2] ld.so: Add --list-tunables to print tunable values
Date: Sat, 31 Oct 2020 08:44:35 -0700	[thread overview]
Message-ID: <20201031154437.2689427-1-hjl.tools@gmail.com> (raw)

Tunable values and their minimum/maximum values are invisible to users.
This patch set adds --list-tunables to ld.so to print tunable values
with their minimum and maximum values.

--list-tunables works on i686 and x86-64.  Please test --list-tunables on
your native processors.  users/hjl/tunable/master branch at:

https://gitlab.com/x86-glibc/glibc/-/commits/users/hjl/tunable/master

contains the same set of patches.

On x86, to make cache info accessible to --list-tunables, they are moved
to cpu_features in ld.so and TUNABLE_SET_WITH_BOUNDS is used to update
tunable bounds.

Rebased on top of

commit cb3a749a22a55645dc6a52659eea765300623f98
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed Oct 28 15:53:26 2020 +0100

    x86: Restore processing of cache size tunables in init_cacheinfo

H.J. Lu (2):
  x86: Move x86 processor cache info to cpu_features
  ld.so: Add --list-tunables to print tunable values

 NEWS                               |   2 +
 elf/Makefile                       |   8 +
 elf/dl-main.h                      |   2 +-
 elf/dl-tunables.c                  |  36 +++
 elf/dl-tunables.h                  |   2 +
 elf/dl-usage.c                     |   7 +-
 elf/rtld.c                         |  23 ++
 manual/tunables.texi               |  37 +++
 sysdeps/x86/cacheinfo.c            |  46 ++-
 sysdeps/x86/cacheinfo.h            | 400 ++-----------------------
 sysdeps/x86/cpu-features.c         |  35 +--
 sysdeps/x86/dl-cacheinfo.h         | 460 +++++++++++++++++++++++++++++
 sysdeps/x86/include/cpu-features.h |  22 ++
 13 files changed, 666 insertions(+), 414 deletions(-)

-- 
2.28.0


             reply	other threads:[~2020-10-31 15:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-31 15:44 H.J. Lu [this message]
2020-10-31 15:44 ` V4 [PATCH 1/2] x86: Move x86 processor cache info to cpu_features H.J. Lu
2021-01-14 14:13   ` Adhemerval Zanella
2021-01-14 19:28     ` V5 " H.J. Lu
2020-10-31 15:44 ` V4 [PATCH 2/2] ld.so: Add --list-tunables to print tunable values H.J. Lu
2021-01-14 18:35   ` Adhemerval Zanella
2021-01-14 22:25     ` V5 " H.J. Lu
2021-01-15 12:47       ` Adhemerval Zanella
2021-02-02 10:59       ` Andreas Schwab
2021-02-02 17:36         ` [PATCH] ld.so: Unset glibc tunables for --list-tunables test H.J. Lu
2021-02-02 18:07           ` Andreas Schwab
2021-02-02 18:12             ` [PATCH] tst-rtld-list-tunables.sh: Unset glibc tunables H.J. Lu

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=20201031154437.2689427-1-hjl.tools@gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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).