]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Tue, 1 Feb 2000 12:43:02 +0000 (12:43 +0000)
committerwessels <>
Tue, 1 Feb 2000 12:43:02 +0000 (12:43 +0000)
 - Changed storeGetMemSpace so that it doesn't immediately exit
   if the store is in rebuilding phase.  Purging memory objects
   should be a "light" activity, so there should be no performance
   penalty.  If we don't purge memory objects during the rebuild
   phase, then memory usage grows without bounds until rebuilding
   is complete.  At high workloads this can cause malloc to fail.

src/store.cc

index c4c21d89325e6baf36b66e0e5a574e4804496d43..06ee5927f9e4e097018c075529ec5d9c7d0000d2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.513 2000/02/01 05:17:58 wessels Exp $
+ * $Id: store.cc,v 1.514 2000/02/01 05:43:02 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -706,8 +706,6 @@ storeGetMemSpace(int size)
     pages_needed = (size / SM_PAGE_SIZE) + 1;
     if (memInUse(MEM_STMEM_BUF) + pages_needed < store_pages_max)
        return;
-    if (store_dirs_rebuilding)
-       return;
     debug(20, 2) ("storeGetMemSpace: Starting, need %d pages\n", pages_needed);
 #if HEAP_REPLACEMENT
     while (heap_nodes(inmem_heap) > 0) {