dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.311 2003/01/17 03:54:36 robertc Exp $
+dnl $Id: configure.in,v 1.312 2003/01/18 02:10:37 hno Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AM_INIT_AUTOMAKE(squid, 3.0-DEVEL)
AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.311 $)dnl
+AC_REVISION($Revision: 1.312 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
regfree \
res_init \
rint \
+ sbrk \
select \
seteuid \
setgroups \
/* Define to 1 if you have the `rint' function. */
#undef HAVE_RINT
+/* Define to 1 if you have the `sbrk' function. */
+#undef HAVE_SBRK
+
/* Define to 1 if you have the <sched.h> header file. */
#undef HAVE_SCHED_H
/*
- * $Id: globals.h,v 1.116 2003/01/17 05:14:29 robertc Exp $
+ * $Id: globals.h,v 1.117 2003/01/18 02:10:40 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
extern unsigned int WIN32_OS_version; /* 0 */
extern char *WIN32_OS_string; /* NULL */
#endif
+#if HAVE_SBRK
+extern void *sbrk_start; /* 0 */
+#endif
extern int ssl_ex_index_server; /* -1 */
extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
/*
- * $Id: main.cc,v 1.360 2003/01/02 08:44:17 robertc Exp $
+ * $Id: main.cc,v 1.361 2003/01/18 02:10:40 hno Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
int WIN32_init_err;
#endif
+#if HAVE_SBRK
+ sbrk_start = sbrk(0);
+#endif
+
debug_log = stderr;
if (FD_SETSIZE < Squid_MaxFD)
Squid_MaxFD = FD_SETSIZE;
/*
- * $Id: stat.cc,v 1.364 2002/12/27 10:26:33 robertc Exp $
+ * $Id: stat.cc,v 1.365 2003/01/18 02:10:40 hno Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
statCounter.icp.pkts_sent);
storeAppendPrintf(sentry, "\tNumber of queued ICP replies:\t%u\n",
statCounter.icp.replies_queued);
- storeAppendPrintf(sentry, "\tRequest failure ratio:\t%5.2f%%\n",
+ storeAppendPrintf(sentry, "\tRequest failure ratio:\t%5.2f\n",
request_failure_ratio);
storeAppendPrintf(sentry, "\tAverage HTTP requests per minute since start:\t%.1f\n",
statCPUUsage(5));
storeAppendPrintf(sentry, "\tCPU Usage, 60 minute avg:\t%.2f%%\n",
statCPUUsage(60));
+#if HAVE_SBRK
+ storeAppendPrintf(sentry, "\tProcess Data Segment Size via sbrk(): %d KB\n",
+ (sbrk(0) - sbrk_start) >> 10);
+#endif
storeAppendPrintf(sentry, "\tMaximum Resident Size: %d KB\n",
rusage_maxrss(&rusage));
storeAppendPrintf(sentry, "\tPage faults with physical i/o: %d\n",