dl-tunables.list 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # Copyright (C) 2016-2019 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3. # The GNU C Library is free software; you can redistribute it and/or
  4. # modify it under the terms of the GNU Lesser General Public
  5. # License as published by the Free Software Foundation; either
  6. # version 2.1 of the License, or (at your option) any later version.
  7. # The GNU C Library is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. # Lesser General Public License for more details.
  11. # You should have received a copy of the GNU Lesser General Public
  12. # License along with the GNU C Library; if not, see
  13. # <http://www.gnu.org/licenses/>.
  14. # Allowed attributes for tunables:
  15. #
  16. # type: Defaults to STRING
  17. # minval: Optional minimum acceptable value
  18. # maxval: Optional maximum acceptable value
  19. # env_alias: An alias environment variable
  20. # security_level: Specify security level of the tunable. Valid values are:
  21. #
  22. # SXID_ERASE: (default) Don't read for AT_SECURE binaries and
  23. # removed so that child processes can't read it.
  24. # SXID_IGNORE: Don't read for AT_SECURE binaries, but retained for
  25. # non-AT_SECURE subprocesses.
  26. # NONE: Read all the time.
  27. glibc {
  28. malloc {
  29. check {
  30. type: INT_32
  31. minval: 0
  32. maxval: 3
  33. env_alias: MALLOC_CHECK_
  34. }
  35. top_pad {
  36. type: SIZE_T
  37. env_alias: MALLOC_TOP_PAD_
  38. security_level: SXID_IGNORE
  39. }
  40. perturb {
  41. type: INT_32
  42. minval: 0
  43. maxval: 0xff
  44. env_alias: MALLOC_PERTURB_
  45. security_level: SXID_IGNORE
  46. }
  47. mmap_threshold {
  48. type: SIZE_T
  49. env_alias: MALLOC_MMAP_THRESHOLD_
  50. security_level: SXID_IGNORE
  51. }
  52. trim_threshold {
  53. type: SIZE_T
  54. env_alias: MALLOC_TRIM_THRESHOLD_
  55. security_level: SXID_IGNORE
  56. }
  57. mmap_max {
  58. type: INT_32
  59. env_alias: MALLOC_MMAP_MAX_
  60. security_level: SXID_IGNORE
  61. }
  62. arena_max {
  63. type: SIZE_T
  64. env_alias: MALLOC_ARENA_MAX
  65. minval: 1
  66. security_level: SXID_IGNORE
  67. }
  68. arena_test {
  69. type: SIZE_T
  70. env_alias: MALLOC_ARENA_TEST
  71. minval: 1
  72. security_level: SXID_IGNORE
  73. }
  74. tcache_max {
  75. type: SIZE_T
  76. }
  77. tcache_count {
  78. type: SIZE_T
  79. }
  80. tcache_unsorted_limit {
  81. type: SIZE_T
  82. }
  83. }
  84. cpu {
  85. hwcap_mask {
  86. type: UINT_64
  87. env_alias: LD_HWCAP_MASK
  88. default: HWCAP_IMPORTANT
  89. }
  90. }
  91. elision {
  92. enable {
  93. type: INT_32
  94. minval: 0
  95. maxval: 1
  96. }
  97. skip_lock_busy {
  98. type: INT_32
  99. default: 3
  100. }
  101. skip_lock_internal_abort {
  102. type: INT_32
  103. default: 3
  104. }
  105. skip_lock_after_retries {
  106. type: INT_32
  107. default: 3
  108. }
  109. tries {
  110. type: INT_32
  111. default: 3
  112. }
  113. skip_trylock_internal_abort {
  114. type: INT_32
  115. default: 3
  116. }
  117. }
  118. }