public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCHv6 0/4] glibc tunables
@ 2016-11-16  8:35 Siddhesh Poyarekar
  2016-11-16  8:35 ` [PATCH 3/4] Enhance --enable-tunables to select tunables frontend at build time Siddhesh Poyarekar
                   ` (10 more replies)
  0 siblings, 11 replies; 38+ messages in thread
From: Siddhesh Poyarekar @ 2016-11-16  8:35 UTC (permalink / raw)
  To: libc-alpha; +Cc: carlos, adhemerval.zanella

Hi,

Here is iteration 6 of the tunables patchset, now with two patches palmed off
to Adhemerval to worry about!  Here are changes from the previous patchset:

 - I discovered some implicit includes that broke aarch64 - shame on me for
   missing them.
 - I realized that __tunables_init used strncmp and strlen.  They're built into
   ld.so too, but they are likely tunables targets and I don't want them to
   break unintentionally in future, so off they go
 - The patchset depends on Adhemerval's __access_noerrno patch[1] fixed up with
   my comments on the patch.

The branch siddhesh/tunables has these patches and also Adhemerval's fixed up
patch.  If you're watching this, please also review Adhemerval's
__access_noerrno patch and help get that through.

Siddhesh

[1] https://sourceware.org/ml/libc-alpha/2016-11/msg00416.html

Siddhesh Poyarekar (4):
  Add framework for tunables
  Initialize tunable list with the GLIBC_TUNABLES environment variable
  Enhance --enable-tunables to select tunables frontend at build time
  User manual documentation for tunables

 INSTALL                                    |  18 ++
 Makeconfig                                 |  16 ++
 README.tunables                            |  84 ++++++
 config.h.in                                |   3 +
 config.make.in                             |   1 +
 configure                                  |  17 ++
 configure.ac                               |  10 +
 csu/init-first.c                           |   2 -
 csu/libc-start.c                           |  12 +
 elf/Makefile                               |   7 +
 elf/Versions                               |   3 +
 elf/dl-support.c                           |   2 +
 elf/dl-sysdep.c                            |   8 +
 elf/dl-tunable-types.h                     |  46 +++
 elf/dl-tunables.c                          | 447 +++++++++++++++++++++++++++++
 elf/dl-tunables.h                          |  82 ++++++
 elf/dl-tunables.list                       |  69 +++++
 elf/rtld.c                                 |   2 +
 malloc/Makefile                            |   6 +
 malloc/arena.c                             |  54 ++++
 malloc/tst-malloc-usable-static-tunables.c |   1 +
 malloc/tst-malloc-usable-static.c          |   1 +
 malloc/tst-malloc-usable-tunables.c        |   1 +
 manual/Makefile                            |   3 +-
 manual/install.texi                        |  21 ++
 manual/probes.texi                         |   2 +-
 manual/tunables.texi                       | 185 ++++++++++++
 scripts/gen-tunables.awk                   | 157 ++++++++++
 sysdeps/mach/hurd/dl-sysdep.c              |   8 +
 29 files changed, 1264 insertions(+), 4 deletions(-)
 create mode 100644 README.tunables
 create mode 100644 elf/dl-tunable-types.h
 create mode 100644 elf/dl-tunables.c
 create mode 100644 elf/dl-tunables.h
 create mode 100644 elf/dl-tunables.list
 create mode 100644 malloc/tst-malloc-usable-static-tunables.c
 create mode 100644 malloc/tst-malloc-usable-static.c
 create mode 100644 malloc/tst-malloc-usable-tunables.c
 create mode 100644 manual/tunables.texi
 create mode 100644 scripts/gen-tunables.awk

-- 
2.7.4

^ permalink raw reply	[flat|nested] 38+ messages in thread
* [PATCH v7 0/4] glibc tunables
@ 2016-12-30  4:09 Siddhesh Poyarekar
  2016-12-30  4:09 ` [PATCH 1/4] Add framework for tunables Siddhesh Poyarekar
  0 siblings, 1 reply; 38+ messages in thread
From: Siddhesh Poyarekar @ 2016-12-30  4:09 UTC (permalink / raw)
  To: libc-alpha; +Cc: fweimer, carlos

Hi,

Here's v7 of the tunables patchset. Changes are as follows:

 - Fixed up issues that Florian pointed out
 - Replaced mmap call with an INTERNAL_SYSCALL to avoid setting errno
 - Dropped the call to __getpagesize since the kernel is capable of
   rounding requests to nearest page size

I tried to avoid the copying of the tunables string, but it complicated the
tunables interface by introducing a length attribute for strings so I dropped
that idea.

Tested on x86_64.

Siddhesh Poyarekar (4):
  Add framework for tunables
  Initialize tunable list with the GLIBC_TUNABLES environment variable
  Enhance --enable-tunables to select tunables frontend at build time
  User manual documentation for tunables

 INSTALL                                    |  18 ++
 Makeconfig                                 |  16 +
 README.tunables                            |  85 ++++++
 config.h.in                                |   3 +
 config.make.in                             |   2 +
 configure                                  |  17 ++
 configure.ac                               |  10 +
 csu/init-first.c                           |   2 -
 csu/libc-start.c                           |   8 +
 elf/Makefile                               |  13 +
 elf/Versions                               |   3 +
 elf/dl-support.c                           |   2 +
 elf/dl-sysdep.c                            |   4 +
 elf/dl-tunable-types.h                     |  46 +++
 elf/dl-tunables.c                          | 457 +++++++++++++++++++++++++++++
 elf/dl-tunables.h                          |  92 ++++++
 elf/dl-tunables.list                       |  69 +++++
 elf/rtld.c                                 |   2 +
 malloc/Makefile                            |   6 +
 malloc/arena.c                             |  54 ++++
 malloc/tst-malloc-usable-static-tunables.c |   1 +
 malloc/tst-malloc-usable-static.c          |   1 +
 malloc/tst-malloc-usable-tunables.c        |   1 +
 manual/Makefile                            |   3 +-
 manual/install.texi                        |  21 ++
 manual/probes.texi                         |   2 +-
 manual/tunables.texi                       | 185 ++++++++++++
 scripts/gen-tunables.awk                   | 157 ++++++++++
 sysdeps/mach/hurd/dl-sysdep.c              |   4 +
 29 files changed, 1280 insertions(+), 4 deletions(-)
 create mode 100644 README.tunables
 create mode 100644 elf/dl-tunable-types.h
 create mode 100644 elf/dl-tunables.c
 create mode 100644 elf/dl-tunables.h
 create mode 100644 elf/dl-tunables.list
 create mode 100644 malloc/tst-malloc-usable-static-tunables.c
 create mode 100644 malloc/tst-malloc-usable-static.c
 create mode 100644 malloc/tst-malloc-usable-tunables.c
 create mode 100644 manual/tunables.texi
 create mode 100644 scripts/gen-tunables.awk

-- 
2.7.4

^ permalink raw reply	[flat|nested] 38+ messages in thread
* [PATCH v8 0/4] glibc tunables
@ 2016-12-31 15:41 Siddhesh Poyarekar
       [not found] ` <1483198831-2232-2-git-send-email-siddhesh@sourceware.org>
  0 siblings, 1 reply; 38+ messages in thread
From: Siddhesh Poyarekar @ 2016-12-31 15:41 UTC (permalink / raw)
  To: libc-alpha; +Cc: fweimer, carlos

Hi,

Here is an updated version of the glibc tunables patchset.

Changes:

 - Use sbrk instead of mmap for allocation of the tunables string and add a
   note about setting errno.  I'll post a patch to add an __sbrk_noerrno in
   2.26 to make this bullet-proof.

 - Go back to __builtin_unreachable because __builtin_trap may cause issues in
   other architectures.  I will do a build test of other architectures and post
   an update before release if everything is OK.

 - Fixed up manual changes, including ones that Rical had suggested earlier - I
   had made those in another branch and forgotten about them.

Siddhesh Poyarekar (4):
  Add framework for tunables
  Initialize tunable list with the GLIBC_TUNABLES environment variable
  Enhance --enable-tunables to select tunables frontend at build time
  User manual documentation for tunables

 INSTALL                                    |  21 ++
 Makeconfig                                 |  16 +
 README.tunables                            |  85 ++++++
 config.h.in                                |   3 +
 config.make.in                             |   2 +
 configure                                  |  17 ++
 configure.ac                               |  10 +
 csu/init-first.c                           |   2 -
 csu/libc-start.c                           |   8 +
 elf/Makefile                               |  13 +
 elf/Versions                               |   3 +
 elf/dl-support.c                           |   2 +
 elf/dl-sysdep.c                            |   4 +
 elf/dl-tunable-types.h                     |  46 +++
 elf/dl-tunables.c                          | 457 +++++++++++++++++++++++++++++
 elf/dl-tunables.h                          |  92 ++++++
 elf/dl-tunables.list                       |  69 +++++
 elf/rtld.c                                 |   2 +
 malloc/Makefile                            |   6 +
 malloc/arena.c                             |  54 ++++
 malloc/tst-malloc-usable-static-tunables.c |   1 +
 malloc/tst-malloc-usable-static.c          |   1 +
 malloc/tst-malloc-usable-tunables.c        |   1 +
 manual/Makefile                            |   3 +-
 manual/install.texi                        |  20 ++
 manual/probes.texi                         |   2 +-
 manual/tunables.texi                       | 192 ++++++++++++
 scripts/gen-tunables.awk                   | 157 ++++++++++
 sysdeps/mach/hurd/dl-sysdep.c              |   4 +
 29 files changed, 1289 insertions(+), 4 deletions(-)
 create mode 100644 README.tunables
 create mode 100644 elf/dl-tunable-types.h
 create mode 100644 elf/dl-tunables.c
 create mode 100644 elf/dl-tunables.h
 create mode 100644 elf/dl-tunables.list
 create mode 100644 malloc/tst-malloc-usable-static-tunables.c
 create mode 100644 malloc/tst-malloc-usable-static.c
 create mode 100644 malloc/tst-malloc-usable-tunables.c
 create mode 100644 manual/tunables.texi
 create mode 100644 scripts/gen-tunables.awk

-- 
2.7.4

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2017-02-08  8:48 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-16  8:35 [PATCHv6 0/4] glibc tunables Siddhesh Poyarekar
2016-11-16  8:35 ` [PATCH 3/4] Enhance --enable-tunables to select tunables frontend at build time Siddhesh Poyarekar
2016-12-27 11:44   ` Florian Weimer
2016-12-27 21:10     ` Siddhesh Poyarekar
2016-12-27 21:16       ` Florian Weimer
2016-11-16  8:35 ` [PATCH 1/4] Add framework for tunables Siddhesh Poyarekar
2016-12-27 11:08   ` Florian Weimer
2016-12-27 20:59     ` Siddhesh Poyarekar
2016-12-27 21:12       ` Florian Weimer
2016-12-27 21:25         ` Siddhesh Poyarekar
2016-12-30 13:28     ` Joseph Myers
2016-12-31 13:48       ` Siddhesh Poyarekar
2016-11-16  8:35 ` [PATCH 4/4] User manual documentation " Siddhesh Poyarekar
2016-11-16 13:49   ` Rical Jasan
2016-11-21  3:07     ` Siddhesh Poyarekar
2016-11-16  8:35 ` [PATCH 2/4] Initialize tunable list with the GLIBC_TUNABLES environment variable Siddhesh Poyarekar
2016-12-27 11:41   ` Florian Weimer
2016-12-27 21:35     ` Siddhesh Poyarekar
2016-11-21  2:58 ` [ping][PATCHv6 0/4] glibc tunables Siddhesh Poyarekar
2016-11-24 13:31 ` [PING 2][PATCHv6 " Siddhesh Poyarekar
2016-11-28 11:52 ` [PING 3][PATCHv6 " Siddhesh Poyarekar
2016-12-05 12:08 ` [PING 4][PATCHv6 " Siddhesh Poyarekar
2016-12-05 15:10   ` Steven Munroe
2016-12-12 16:20 ` [PING 5][PATCHv6 " Siddhesh Poyarekar
2016-12-26 14:29 ` [PING 6][PATCHv6 " Siddhesh Poyarekar
2016-12-27  9:49 ` [PATCHv6 " Florian Weimer
2016-12-30  4:09 [PATCH v7 " Siddhesh Poyarekar
2016-12-30  4:09 ` [PATCH 1/4] Add framework for tunables Siddhesh Poyarekar
2017-02-06 22:36   ` Andreas Schwab
2017-02-07  6:49     ` Siddhesh Poyarekar
2017-02-07 16:06       ` Andreas Schwab
2017-02-08  8:48         ` Siddhesh Poyarekar
2017-02-06 22:59   ` Andreas Schwab
2016-12-31 15:41 [PATCH v8 0/4] glibc tunables Siddhesh Poyarekar
     [not found] ` <1483198831-2232-2-git-send-email-siddhesh@sourceware.org>
2016-12-31 16:49   ` [PATCH 1/4] Add framework for tunables Florian Weimer
2016-12-31 17:58     ` Siddhesh Poyarekar
2016-12-31 19:43       ` Florian Weimer
2016-12-31 19:50         ` Siddhesh Poyarekar
2016-12-31 19:52           ` Florian Weimer
2017-01-01 13:40             ` Nix

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).