]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Clarify on why writing swap.state in parallell is good
authorhno <>
Wed, 8 Mar 2006 17:34:04 +0000 (17:34 +0000)
committerhno <>
Wed, 8 Mar 2006 17:34:04 +0000 (17:34 +0000)
src/store_dir.cc

index 896e86cd8bbc9ded532cfa112cb86ef3cb62c316..cd831732cdb6a9151b29cef53287f7085762cc89 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.151 2005/07/03 15:25:09 serassio Exp $
+ * $Id: store_dir.cc,v 1.152 2006/03/08 10:34:04 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -439,8 +439,10 @@ storeDirWriteCleanLogs(int reopen)
         }
     }
 
-    /* This writes all logs in parallel. It seems to me to be more efficient
-     * to write them sequentially. - RBC 20021214
+    /*
+     * This may look inefficient as CPU wise it is more efficient to do this
+     * sequentially, but I/O wise the parallellism helps as it allows more
+     * hdd spindles to be active.
      */
     while (notdone) {
         notdone = 0;