Increase number of max semaphores to fix OOM crashes on some systems

Mario Limonciello mario.limonciello at amd.com
Wed Jun 28 04:19:12 UTC 2023


Fixes: https://github.com/fwts/fwts/issues/4
Link: https://bugs.launchpad.net/fwts/+bug/2025193
---
  src/libfwtsacpica/fwts_acpica.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libfwtsacpica/fwts_acpica.c 
b/src/libfwtsacpica/fwts_acpica.c
index d8bc54a6..c174f71d 100644
--- a/src/libfwtsacpica/fwts_acpica.c
+++ b/src/libfwtsacpica/fwts_acpica.c
@@ -50,7 +50,7 @@

  #define ACPI_MAX_INIT_TABLES           (64)    /* Number of ACPI tables */

-#define MAX_SEMAPHORES                 (1024)  /* For semaphore tracking */
+#define MAX_SEMAPHORES                 (2048)  /* For semaphore tracking */
  #define MAX_THREADS                    (128)   /* For thread tracking */

  #define MAX_WAIT_TIMEOUT               (20)    /* Seconds */
-- 
2.34.1



More information about the fwts-devel mailing list