Mailing Lists: Apple Mailing Lists

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

Re: Performance of IOMemoryDescriptor::prepare on contiguous, wired memory



Michael Smith (email@hidden) wrote on Thu, 19 Dec 2002 01:18:27 -0800:

>That's not surprising. You know it's wired and contiguous, but the VM
>doesn't (and can't) know or assume that.
>
>> Is my expectation of prepare() invalid?
>
>What expectation do you have?

I guess I expected that the VM system could know its already wired. Now
I know. :)

>In your case, the VM has no way of knowing that the virtual address
>range that
>you are passing it is mapped to memory that is already wired. Wiring
>memory
>is deathly slow in MacOS X, and you pay the entire cost even though the
>pages
>are already pinned down because you're not doing it against the
>original region.

Bummer.

>To avoid this, you'd want to pass a cookie across so that you could use
>the
>originally allocated and wired region from the first driver in the
>second, or

This is what I have done and its working well.

So thanks for your reply Michael, it was most helpful.


--
____________________________________________________________
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: Performance of IOMemoryDescriptor::prepare on contiguous, wired memory (From: Michael Smith <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.