From: hno <> Date: Mon, 15 May 2006 19:39:57 +0000 (+0000) Subject: Give I/O threads a smaller stack. X-Git-Tag: SQUID_3_0_PRE4~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a3501d2a5a673c602642c0deead97a8e2b3ad54;p=thirdparty%2Fsquid.git Give I/O threads a smaller stack. --- diff --git a/src/DiskIO/DiskThreads/aiops.cc b/src/DiskIO/DiskThreads/aiops.cc index 155765ab52..c8c72f906a 100644 --- a/src/DiskIO/DiskThreads/aiops.cc +++ b/src/DiskIO/DiskThreads/aiops.cc @@ -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 @@ -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");