• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Prioritize my own app's disk access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Prioritize my own app's disk access (From: Jonathan Taylor <email@hidden>)
 >Re: Prioritize my own app's disk access (From: Alastair Houghton <email@hidden>)
 >Re: Prioritize my own app's disk access (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Re: Property synthesis trouble - 32 vs 64 bit builds
  • Next by Date: Re: Property synthesis trouble - 32 vs 64 bit builds
  • Previous by thread: Re: Prioritize my own app's disk access
  • Next by thread: Re: Prioritize my own app's disk access
  • Index(es):
    • Date
    • Thread