From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19646 invoked from network); 9 Jun 2022 13:42:20 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2022 13:42:20 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 9front; Thu Jun 9 09:40:57 -0400 2022 Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 7963a990 (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Thu, 9 Jun 2022 06:40:54 -0700 (PDT) Message-ID: To: 9front@9front.org Date: Thu, 09 Jun 2022 09:40:52 -0400 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: mobile strategy storage plugin-oriented optimizer Subject: Re: [9front] iounit: bump it across the board Reply-To: 9front@9front.org Precedence: bulk Quoth ori@eigenstate.org: > Quoth noam@pixelhero.dev: > > Quoth ori@eigenstate.org: > > > This patch bumps up the iounit in the kernel to 32k, and > > > introduces the IOUNIT constant to take advantage of it. > > > > Any reason I shouldn't bump it to 1M or something locally? > > (in the kernel and, in userspace, in non-libthread applications) > > > > - Noam Preil > > > > Try it out, but keep in mind that on a slower connection, > you have to wait for the entire iounit to get sent before > you can send the next request -- so, eg, tethering over > wifi means that your file IO needs to go through fully > before your next mouse message can get sent. > phrased poorly -- but, if your mouse and file system share a 9p channel (ie, exportfs), then large messages will block all other communication. the other reason is that you can have a lot of in flight 9p buffers at once; up to 64k per connection. Most of the time there will be fewer, but not always. But even a few hundred 1 meg buffers is a lot of memory on smaller modern systems.