git: 9front

Download patch

ref: 7a25640f0f97713c044dc39a6003d6d429b92039
parent: 14b195312e783c65b860ee4fedad481fcbb2eb99
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jul 13 14:37:56 EDT 2015

9660srv: go back to 128k clusters

doing tests taring up 9front.iso shows the following:

lowering the cluster size back to 128k avoids over half the
reads. 837888 sectors read for 512k vs. 347712 sectors with
128k cluster size.

--- a/sys/src/cmd/9660srv/iobuf.c
+++ b/sys/src/cmd/9660srv/iobuf.c
@@ -23,9 +23,8 @@
  * it's worth worrying about.		-rsc
  */
 
-/* trying a larger value to get greater throughput - geoff */
-#define	BUFPERCLUST	256 /* sectors/cluster; was 64, 64*Sectorsize = 128kb */
-#define	NCLUST		16
+#define	BUFPERCLUST	64 /* sectors/cluster; 64*Sectorsize = 128kb */
+#define	NCLUST		64
 
 int nclust = NCLUST;
 
--