From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sat, 16 Nov 2013 21:42:54 -0500 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] simple gofast trick Topicbox-Message-UUID: 8a90359c-ead8-11e9-9d60-3106f5b1d025 this is a one-liner. here's a little demo: chula; sed 's:8192:64*1024:g' fatcat.c && tmk fatcat.c 6c -FVTw fatcat.c 6l -o 6.fatcat fatcat.6 chula; cat /bin/gs>/dev/null;for(i in cat 6.fatcat)time $i /bin/gs > /dev/null 0.00u 0.01s 0.41r cat /bin/gs 0.00u 0.00s 0.23r 6.fatcat /bin/gs the trick is only to increase IOUNIT to 48k in both file server and cpu server. this works since the mtu of the network is 1500 bytes and the Rread messages are up to 48k + 9p overhead, the network layer has multiple outstanding messages and overlapping acks at the network layer much of the time, even though the mount driver continues keeping a single outstanding message per system call. - erik