Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Christian Worley <cworley@altatech.com>
To: rharter@flash.net
Subject: Re: Device driver question
Date: 1996/08/26	[thread overview]
Message-ID: <3221C992.FF6@altatech.com> (raw)
In-Reply-To: 321F7903.1C00@flash.net


Ron Harter wrote:
> 
> Hello
> 
> I have been tasked with performing some performace enhancements on a
> custom in-house developed device driver for VXLI interface. The main
> bottleneck that has been observed is the time to lock down the users
> memory pages during the i/o operations. The average tiome is approx
> 125-150 microseconds. The read/write interface uses the physio call to
> lock the memory down and branch to the appropriate strategy portion of
> the driver to setup and initiate the DMA operations. Does anyone have
> any suggestions as to how to reduce this amount of time? One method
> being discussed is to force the user to lock down their pages using
> mlock prior to doing any io operations and then just calling the stratgy
> portions of the driver directly.
> 

try vm_map_pageable(...) with VM_PROT_READ or VM_PROT_WRITE  arguments
to lock down the users buffer, VM_PROT_NONE to clear the lock.

Chris



  reply	other threads:[~1996-08-26  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-24  4:00 Device driver question Ron Harter
1996-08-26  4:00 ` Christian Worley [this message]
     [not found] <4h2o1k$89t@hernmaster.us.newbridge.com>
1996-03-04  5:00 ` Mark Parenti
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox