Revision
140642
Author
cal@macports.org
Date
2015-09-28 14:24:05 -0700 (Mon, 28 Sep 2015)

Log Message

base: tracelib: reduce kevent batch size

We don't need to process up to 1024 requests at the same time.
Increasing this number increases memory usage and the risk of file
descriptor exhaustion. Reducing it just causes more iterations of the
kevent loop.

Modified Paths

Diff

Modified: trunk/base/src/pextlib1.0/tracelib.c (140641 => 140642)


--- trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:22:19 UTC (rev 140641)
+++ trunk/base/src/pextlib1.0/tracelib.c	2015-09-28 21:24:05 UTC (rev 140642)
@@ -268,7 +268,7 @@
 }
 #endif /* defined(HAVE_PEERPID_LIST) */
 
-#define MAX_SOCKETS (1024)
+#define MAX_SOCKETS (64)
 #define BUFSIZE     (4096)
 
 /**