]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Give I/O threads a smaller stack.
authorhno <>
Mon, 15 May 2006 19:39:57 +0000 (19:39 +0000)
committerhno <>
Mon, 15 May 2006 19:39:57 +0000 (19:39 +0000)
src/DiskIO/DiskThreads/aiops.cc

index 155765ab52dbfa99bb4327b1cd162f384f7ce0b6..c8c72f906ac705b066a271ce7f4560c4d3bedea4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: aiops.cc,v 1.7 2006/05/08 23:38:34 robertc Exp $
+ * $Id: aiops.cc,v 1.8 2006/05/15 13:39:57 hno Exp $
  *
  * DEBUG: section 43    AIOPS
  * AUTHOR: Stewart Forster <slf@connect.com.au>
@@ -291,6 +291,9 @@ squidaio_init(void)
 
 #endif
 
+    /* Give each thread a smaller 256KB stack, should be more than sufficient */
+    pthread_attr_setstacksize(&globattr, 256 * 1024);
+
     /* Initialize request queue */
     if (pthread_mutex_init(&(request_queue.mutex), NULL))
         fatal("Failed to create mutex");