]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix filemap warning
authorwessels <>
Sat, 23 May 1998 05:28:37 +0000 (05:28 +0000)
committerwessels <>
Sat, 23 May 1998 05:28:37 +0000 (05:28 +0000)
src/filemap.cc

index e507caf3c1ef50c07d00726371c7f28e6e8734bd..17fb62d9b7e5e82f11411aa8f5fce7bde484385b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: filemap.cc,v 1.25 1998/04/16 21:51:55 wessels Exp $
+ * $Id: filemap.cc,v 1.26 1998/05/22 23:28:37 wessels Exp $
  *
  * DEBUG: section 8     Swap File Bitmap
  * AUTHOR: Harvest Derived
@@ -146,7 +146,9 @@ file_map_bit_set(fileMap * fm, int file_number)
     fm->n_files_in_map++;
     if (!fm->toggle && (fm->n_files_in_map > ((fm->max_n_files * 7) >> 3))) {
        fm->toggle++;
-       debug(8, 0) ("You should increment MAX_SWAP_FILE\n");
+       debug(8, 0) ("WARNING: filemap utilization at %d%%\n"
+           "\tConsider decreasing store_avg_object_size in squid.conf\n",
+            percent(fm->n_files_in_map, fm->max_n_files));
     } else if (fm->n_files_in_map > (fm->max_n_files - 100)) {
        fatal("You've run out of swap file numbers.");
     }