9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: [9fans] simple gofast trick
Date: Sat, 16 Nov 2013 21:42:54 -0500	[thread overview]
Message-ID: <ae590b24529f127c0518ba878b18b8d3@brasstown.quanstro.net> (raw)

this is a one-liner.  here's a little demo:

	chula; sed 's:8192:64*1024:g' </sys/src/cmd/cat.c > 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



                 reply	other threads:[~2013-11-17  2:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae590b24529f127c0518ba878b18b8d3@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).