Subject: Maximum number of X server clients?
To: None <>
From: Simon Burge <>
List: current-users
Date: 05/07/1999 22:12:21
By inspection, it appears that there's a limit of about 55ish clients on
the X server because OPEN_MAX is defined as 64 in sys/syslimits.h.  Can
anyone verify this?  I'm not running any NetBSD machines with X at the
moment but am planning to soon.

If this is indeed the case, can someone try the trailing patch and see
if it bumps the limit up to 120ish?

It also seems that the X people have hardcoded a maximum of 128 clients
regardless of the value of OPEN_MAX - does anyone know of any reasoning
behind this?

Index: osdep.h
RCS file: /cvsroot/xsrc/xc/programs/Xserver/os/osdep.h,v
retrieving revision
diff -p -u -r1.1.1.3 osdep.h
--- osdep.h	1998/11/23 15:40:36
+++ osdep.h	1999/05/07 12:07:53
@@ -110,8 +110,8 @@ SOFTWARE.
-/* ignore OPEN_MAX on FreeBSD, it's bogusly low */
-#if OPEN_MAX <= 128 && !defined(__FreeBSD__)
+/* ignore OPEN_MAX on FreeBSD and NetBSD, it's bogusly low */
+#if OPEN_MAX <= 128 && !(defined(__FreeBSD__) || defined(__NetBSD__))
 #define MAXSOCKS (OPEN_MAX - 1)
 #define MAXSOCKS 128