Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Performance of IOMemoryDescriptor::prepare on contiguous, wired memory



Lets say I do the following:

- IOMallocContiguous some memory in a driver
- map this memory to a user process
- change the (entire) contents of the memory (in the user process)
- pass the user address to a (different) driver
- create an IOMemoryDescriptor for this user address
- call IOMemoryDescriptor->prepare
- call IOMemoryDescriptor->getPhysicalAddress
- do some DMA

Since I know the memory is contiguous and wired, I had expected prepare()
to be very fast. However, it sometimes takes up to 11 ms (Dual 450 G4)!
Is my expectation of prepare() invalid? Is it safe to not call prepare
(yet call getPhysicalAddress) when I know the memory is contiguous and wired?

Thanks for any insight!

--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer +1-514-822-6000 x7399
Matrox Electronic Systems Ltd. Montrial, Quibec, Canada
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Any known way to find the "owner".... (From: Eric Cole <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.