From 440a8a36792bdf9ef51639066aab0b7771ffcab8 Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Wed, 9 Nov 2016 22:09:53 +0000 Subject: 12789 increase timers allowed per-process Reviewed by: Ryan Zezeski Reviewed by: Jerry Jelinek Reviewed by: John Levon Reviewed by: Dan McDonald Approved by: Robert Mustacchi --- usr/src/uts/common/sys/timer.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/sys/timer.h') diff --git a/usr/src/uts/common/sys/timer.h b/usr/src/uts/common/sys/timer.h index ec349c962f..4bbc5b4fb8 100644 --- a/usr/src/uts/common/sys/timer.h +++ b/usr/src/uts/common/sys/timer.h @@ -25,7 +25,7 @@ */ /* - * Copyright (c) 2015, Joyent, Inc. All rights reserved. + * Copyright 2020 Joyent, Inc. */ #ifndef _SYS_TIMER_H @@ -34,6 +34,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -42,7 +43,15 @@ extern "C" { #ifdef _KERNEL #define _TIMER_MAX 32 -extern int timer_max; /* patchable via /etc/system */ +/* + * Max timers per process. This is patchable via /etc/system and can be + * updated via kmdb. Sticking to positive powers of 2 is recommended. + * The default value is 4 * NCPU. Setting timer_max to a value below the + * default via /etc/system is ignored. + */ +extern int timer_max; + +#define _TIMER_ALLOC_INIT 8 /* initial size for p_itimer array */ /* * Bit values for the it_lock field. -- cgit v1.2.3