Re: Prioritize my own app's disk access
Re: Prioritize my own app's disk access
- Subject: Re: Prioritize my own app's disk access
- From: Jens Alfke <email@hidden>
- Date: Tue, 05 Jul 2016 09:19:44 -0700
You might try asking on the darwin-userlevel mailing list.
In addition to increasing I/O priority, there may be other ways to make your disk writes more efficient. For example you can preallocate space for the file before writing to it. Writing in larger chunks may also help. (Of course you may have tried these already.)
Using wired memory for your buffers is also a good idea, since if any of those buffers get paged out things will really go to hell.
Also, I assume you’ve profiled the code and are confident that it’s being constrained by I/O bandwidth and not CPU time? (It’s possible that I/O requests made by real-time threads get higher priority; I can’t remember if this is the case, as it’s a long time since I’ve had to deal with this sort of stuff.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden