From owner-freebsd-hackers Mon Aug 31 12:11:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA11680 for freebsd-hackers-outgoing; Mon, 31 Aug 1998 12:11:48 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA11675 for ; Mon, 31 Aug 1998 12:11:47 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA00438; Mon, 31 Aug 1998 12:07:24 GMT (envelope-from mike@dingo.cdrom.com) Message-Id: <199808311207.MAA00438@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Joao Carlos Mendes Luis cc: luoqi@watermarkgroup.com (Luoqi Chen), hackers@FreeBSD.ORG, imp@village.org Subject: Re: 64k physio limit In-reply-to: Your message of "Mon, 31 Aug 1998 15:34:22 -0300." <199808311834.PAA17561@roma.coe.ufrj.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 31 Aug 1998 12:07:24 +0000 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > #define quoting(Luoqi Chen) > // > Is there any way to get a larger I/O to happen than 64k? I have a tape > // > drive that would be happiest if I could do 256kish writes to it at a time, > // > rather than only 64k. > // > > // > Warner > // > > // Set the device driver's cdevsw:d_maxio to 256k? > > Which problems arise from making this the default ? Memory waste ? Drivers may expect not to be called with more than 64k of work at a given time. Having a single limit anywhere is bogus; the d_maxio field should be used and fragmentation managed at a higher level. I don't recall whether this is now being done correctly; it wasn't working properly when I had to fix the 'wfd' driver to deal with the Zip not supporting > 32k transfers. I don't know of any driver that maintains a maximum-transfer sized buffer, no. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message