Search results for

“offloading”

183 results found

Post

Replies

Boosts

Views

Activity

Reply to My iPhone 'exploded'
Have you checked to see if your Offload Unused Apps is enabled? Is it possible that these are apps that you have not used in a while and the new OS has removed them from your device due to inactivity in order to free up space on your phone?
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’17
Reply to File system lag (lots of beach balls)
From what I have been reading, APFS changes how Fusion works. It's now just a cache repository for meta data, readback cache and writeback cache. It will assist in directory listing. App Nap, Prelinking and directory lookups would likely be the most impacted.I do not know if it will offload files to the SSD that are frequently used like in days past. I'm not saying this is fact but supposition based on what little information I've found so far. The nature of APFS means it is always optimizing content in order to reduce fragmentation so logically it makes sense that it would work off of the HDD and use the Fusion as a cache - such as that for app nap. Anyone else have insight on APFS and Fusion topology? Has it changed Fusion fundamentally?
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’17
App "no longer" in App Store - but it is!
After searching the forum, I couldn't find this problem so thought it worth flagging.I wanted to see the process in the new feature of offloading an app rather than deleting it. I offloaded several apps and they stayed on my device but with a small cloud with downward arrow symbol indicating it was able to be reinstalled. However, I hit problems when I attempted to reinstall the app, as I got a pop-up informing me that my device was unable to download the app as it was no longer available in the App Store. I even got that for YouTube, which I am pretty certain is still in the App Store.I got this error whether I tried to reinstall directly from the app icon on my device or via the iPhone Storage sub-menu in Settings. If I go direct to the App Store and search for the app, it's there and I can reinstall it. I'm using a 5s for this.
2
0
988
Jun ’17
Reply to Are Multiple UI Threads Possible?
I understand that UIKit is not designed to be thread safe, and that generally long running tasks need to be offloaded to other threads to avoid blocking the main thread.I'm just currently making UIKit do a lot of work - animations, autolayout etc. Which cannot be offloaded to another thread - therefore being a prime candidate for the creation of another UI thread and everything that goes along with that.So what I want is sounding to be unlikely.I want to be able to duplicate my application into another window and have the second window not interfere with performance of the main window.Without significant rewriting effort.Another UI thread working on the separate window would solve my problem immediately and gracefully.I do appreciate all of the comments though.So, thank you.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’17
Reply to Are Multiple UI Threads Possible?
Let's be plain about it: UIKit (which basically cover all of the UI Thread territory) isn't thread safe and the things that draw the view hierarchy run on the main thread. The rare exceptions are outstanding enough that they get mentioned explicitly in the documentation as being thread safe or being designed to run in another thread/queue.On the other hand, it really depends on what you're doing and what sorts of latency you're allowing for how much you can offload to another thread. Because the straight forward way of offloading things that were originally done on the main thread to a background thread ends up looking a lot like this: You've got an action method that's responding to the user tapping a button. Gather up all of the relevant parameters and dispatch a block to the worker queue.Inside that worker block, do the computation and work. Gather up the relevant results and dispatch a block to the main queue. Inside this second block, use the passed in results to update the user interfa
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’17
Reply to iOS 10 - App is not working in background mode after 3 minutes
If there is a way to achieve, then How can I upload/download data after 30 minutes of app went backgrond?.Two things:iOS provides no general mechanism for an app to schedule itself to be resumed at a specific time.If an app is running, it has full access to the network, regardless of whether it’s in the foreground or background. The only gotcha is that devices with WWAN will typically shut down Wi-Fi when the device is locked.I’m confused about your upload requirement. If you’re suspended in the background there should be no need to upload data because you can’t possibly have generated new data that warrants uploading.As far as downloads are concerned, my standard recommendation in this space is to have your app offload the decision about what data needs to be dowloaded to a server. When the server decides that the app needs some data it can send it a silent push notification to the app, in response to which the app can kick off the download.IMPORTANT You can use silent push notifications as a mechan
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’17
Reply to How to receive UDP packets that have no checksum
Honestly that sounds like a bug in the driver; it seems obvious that the driver’s checksum offload should behave the same as kernel’s.I don’t know if there’s a way around this; if you want a definitive answer, you should open a DTS tech support incident and I, or one of my colleagues, can dig into it.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Feb ’17
Reply to How to receive UDP packets that have no checksum
Thanks for the prompt reply.The problem however, seems to be that the checksum verification is offloaded to the NIC. There are kernel parameters (ending in hwcksum_rx for example) that indicate this. This means that the NIC does not even deliver the UDP packets with a zero checksum to the system and the function udp_input_checksum is not even called.It also seems that the involved kernel parameters cannot be altered. (not even when the System Integrity Protection is switched off, which would not have been a viable solution anyway).So the question remains, how to get the UDP packets with their checksum set to zero?
Feb ’17
Reply to Can an app update without being open?
My app lets you know if there are upcoming events in your area and it would be nice if it could check every week or so with my server to see if there were any and update the users local Notifications. So this would require it to run in the background and access the web.iOS has a mechanism for this, namely background fetch. You learn more about it in the Background Execution section of the App Programming Guide for iOS.However, if your app is not being run regularly by the user then it’s likely that your app will fall off the background fetch radar. The best way to meet your requirements is to offload this periodic work to a server. That is, have your server poll the event database and, if there’s anything relevant for this user, post a push notification. That is power efficient (no code needs to execute on the user’s device) and reliable.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’16
Reply to Does Xcode use GPU to build?
Xcode is not itself a compiler, it just hosts the compiler. For Obj-C, the current (preferred) compiler is clang. You can visit clang.llvm.org and if your question isn't answered by the information on the site, there are mailing lists where you can ask about implementation details and strategy.My guess, though, is that the compiler isn't designed to use the GPU.>> No reason for it to need the GPU when buildingNo particular reason, but it's certainly possible that it might use something like OpenCL to offload some processing onto the GPU.
Nov ’16
Reply to Copying NSMutableArray within a NSOperation?
No, atomicity doesn't change anything. The value of the property is a pointer (to a mutable array), so atomicity would protect only the accessing of the pointer, not the data structures pointed to.It's a complete waste of time looking for a generic solution, such as encasing random blocks of code in a synchronizing construct. You'll either leave hard-to-find bugs in the edge cases, or hard-to-find deadlocks.In this case, we can't even speculate on a real solution, because we don't know what's going on. We don't even know if scanQueue is serial or concurrent. We don't know what the point of using NSOperation is: is it to get parallel processing, to offload long tasks from the main thread, etc? Maybe NSOperation isn't the best API to use for this, perhaps direct use of GCD is easier. The code you showed has each NSOperation using, or not using, the resulting array of the previous operation, according to the timing of the block placed back on the main thread. We don't know the consequences of this sort
Topic: UI Frameworks SubTopic: AppKit Tags:
Apr ’16
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
3
0
1.1k
Oct ’15
Metal Matrix Multiplication reference code
Hi,I have just started experimenting with Metal. I really just want to offload a few matrix multiplications to the GPU.So, I downloaded this perfectly applicable example code and ran it: https://developer.apple.com/library/ios/samplecode/MetalPartialSumsCompute/Introduction/Intro.html#//apple_ref/doc/uid/TP40015013-Intro-DontLinkElementID_2I can run it on my iphone 6 but there are several issues:It crashes sometimes (EXC_BAD_ACCESS (code=1), and other malloc errors). That's a bit worrying for reference code.It says I am getting approximately 0.04 gflops/sec[sic] using either CPU (Accelerate) or GPU (Metal). I believe I should be getting 3+ GFLOPS from the CPU? (http://www.anandtech.com/show/8554/the-iphone-6-review/3) I'm not sure what to expect from the GPU/Metal but I am assuming a considerably higher number.Here's example output:2015-12-02 14:48:27.772 MetalMatrixMultiply[5477:2056717] >> [12] Matrix Dimensions: A = [1248 x 1137], B = [1137 x 2004], C = [1248 x 2004], lda = 1248, ldb = 2008,
1
0
2.2k
Dec ’15
How to increment ios badge notifiation count when app is not running?
We are already done with the initial setup for implementing Push notifications and are able to send/receive notifications successfully.Now, we have been looking for the possible solutions to handle badge count increment from ios app (especially when app is not in foreground) -1. Delegate the badge count calculation to server side. - If we think of offloading the task of badge calculation to app server, then question arises is that, how server side will get to know about the count of viewed notifications so that badge can be decremented accordingly.2. Use UIBackgroundModes and call 'didReceiveRemoteNotification:fetchCompletionHandler' method. - Apple says, this method will get called when my app is either in foreground or background state. With this we should be able to track the count/notification info even when the app is in background & thus it probably enables us to do the necessary calculation in iOS app itself. However, we have noticed that this method doesn't invoke when app is in backgroun
1
0
5.1k
Jul ’15
Need Resources: Kernel and SpoghtlightNetHelper Unauthorized System Access
To Whom It May Concern:I apparently have a self propagating virus that was introduced to my network by purchase of a used Mac computer from Amazon.com on approximately December 24, 2015. That is when I first started noticing erratic behavior on my machines. I have clean formatted and reinstalled OS from computers on an isolated network that was not infected. As soon as I connect the newly reinstalled OS iMacs to the infected network they become reinfected on first boot. I've spent something like 40 labor hours on this so far and I can't afford anymore resource allocation to this issue until there are some steps to cure the system.This activity on my computer appears to be a nasty virus. From what I can tell, it tries injecting itself in every executable it can locate. It trys to obtain the icloud login credentials, it attempts to obtain administrator credentials, and on one computer it appears to have secured and stolen my credentials to completely hijack the computer. Once it hijacks the computer it deletes
0
0
1.5k
Jan ’16
Reply to My iPhone 'exploded'
Have you checked to see if your Offload Unused Apps is enabled? Is it possible that these are apps that you have not used in a while and the new OS has removed them from your device due to inactivity in order to free up space on your phone?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’17
Reply to File system lag (lots of beach balls)
From what I have been reading, APFS changes how Fusion works. It's now just a cache repository for meta data, readback cache and writeback cache. It will assist in directory listing. App Nap, Prelinking and directory lookups would likely be the most impacted.I do not know if it will offload files to the SSD that are frequently used like in days past. I'm not saying this is fact but supposition based on what little information I've found so far. The nature of APFS means it is always optimizing content in order to reduce fragmentation so logically it makes sense that it would work off of the HDD and use the Fusion as a cache - such as that for app nap. Anyone else have insight on APFS and Fusion topology? Has it changed Fusion fundamentally?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’17
App "no longer" in App Store - but it is!
After searching the forum, I couldn't find this problem so thought it worth flagging.I wanted to see the process in the new feature of offloading an app rather than deleting it. I offloaded several apps and they stayed on my device but with a small cloud with downward arrow symbol indicating it was able to be reinstalled. However, I hit problems when I attempted to reinstall the app, as I got a pop-up informing me that my device was unable to download the app as it was no longer available in the App Store. I even got that for YouTube, which I am pretty certain is still in the App Store.I got this error whether I tried to reinstall directly from the app icon on my device or via the iPhone Storage sub-menu in Settings. If I go direct to the App Store and search for the app, it's there and I can reinstall it. I'm using a 5s for this.
Replies
2
Boosts
0
Views
988
Activity
Jun ’17
Reply to Are Multiple UI Threads Possible?
I understand that UIKit is not designed to be thread safe, and that generally long running tasks need to be offloaded to other threads to avoid blocking the main thread.I'm just currently making UIKit do a lot of work - animations, autolayout etc. Which cannot be offloaded to another thread - therefore being a prime candidate for the creation of another UI thread and everything that goes along with that.So what I want is sounding to be unlikely.I want to be able to duplicate my application into another window and have the second window not interfere with performance of the main window.Without significant rewriting effort.Another UI thread working on the separate window would solve my problem immediately and gracefully.I do appreciate all of the comments though.So, thank you.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’17
Reply to Are Multiple UI Threads Possible?
Let's be plain about it: UIKit (which basically cover all of the UI Thread territory) isn't thread safe and the things that draw the view hierarchy run on the main thread. The rare exceptions are outstanding enough that they get mentioned explicitly in the documentation as being thread safe or being designed to run in another thread/queue.On the other hand, it really depends on what you're doing and what sorts of latency you're allowing for how much you can offload to another thread. Because the straight forward way of offloading things that were originally done on the main thread to a background thread ends up looking a lot like this: You've got an action method that's responding to the user tapping a button. Gather up all of the relevant parameters and dispatch a block to the worker queue.Inside that worker block, do the computation and work. Gather up the relevant results and dispatch a block to the main queue. Inside this second block, use the passed in results to update the user interfa
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’17
Reply to iOS 10 - App is not working in background mode after 3 minutes
If there is a way to achieve, then How can I upload/download data after 30 minutes of app went backgrond?.Two things:iOS provides no general mechanism for an app to schedule itself to be resumed at a specific time.If an app is running, it has full access to the network, regardless of whether it’s in the foreground or background. The only gotcha is that devices with WWAN will typically shut down Wi-Fi when the device is locked.I’m confused about your upload requirement. If you’re suspended in the background there should be no need to upload data because you can’t possibly have generated new data that warrants uploading.As far as downloads are concerned, my standard recommendation in this space is to have your app offload the decision about what data needs to be dowloaded to a server. When the server decides that the app needs some data it can send it a silent push notification to the app, in response to which the app can kick off the download.IMPORTANT You can use silent push notifications as a mechan
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’17
Reply to How to receive UDP packets that have no checksum
Honestly that sounds like a bug in the driver; it seems obvious that the driver’s checksum offload should behave the same as kernel’s.I don’t know if there’s a way around this; if you want a definitive answer, you should open a DTS tech support incident and I, or one of my colleagues, can dig into it.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Feb ’17
Reply to How to receive UDP packets that have no checksum
Thanks for the prompt reply.The problem however, seems to be that the checksum verification is offloaded to the NIC. There are kernel parameters (ending in hwcksum_rx for example) that indicate this. This means that the NIC does not even deliver the UDP packets with a zero checksum to the system and the function udp_input_checksum is not even called.It also seems that the involved kernel parameters cannot be altered. (not even when the System Integrity Protection is switched off, which would not have been a viable solution anyway).So the question remains, how to get the UDP packets with their checksum set to zero?
Replies
Boosts
Views
Activity
Feb ’17
Reply to Can an app update without being open?
My app lets you know if there are upcoming events in your area and it would be nice if it could check every week or so with my server to see if there were any and update the users local Notifications. So this would require it to run in the background and access the web.iOS has a mechanism for this, namely background fetch. You learn more about it in the Background Execution section of the App Programming Guide for iOS.However, if your app is not being run regularly by the user then it’s likely that your app will fall off the background fetch radar. The best way to meet your requirements is to offload this periodic work to a server. That is, have your server poll the event database and, if there’s anything relevant for this user, post a push notification. That is power efficient (no code needs to execute on the user’s device) and reliable.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’16
Reply to Does Xcode use GPU to build?
Xcode is not itself a compiler, it just hosts the compiler. For Obj-C, the current (preferred) compiler is clang. You can visit clang.llvm.org and if your question isn't answered by the information on the site, there are mailing lists where you can ask about implementation details and strategy.My guess, though, is that the compiler isn't designed to use the GPU.>> No reason for it to need the GPU when buildingNo particular reason, but it's certainly possible that it might use something like OpenCL to offload some processing onto the GPU.
Replies
Boosts
Views
Activity
Nov ’16
Reply to Copying NSMutableArray within a NSOperation?
No, atomicity doesn't change anything. The value of the property is a pointer (to a mutable array), so atomicity would protect only the accessing of the pointer, not the data structures pointed to.It's a complete waste of time looking for a generic solution, such as encasing random blocks of code in a synchronizing construct. You'll either leave hard-to-find bugs in the edge cases, or hard-to-find deadlocks.In this case, we can't even speculate on a real solution, because we don't know what's going on. We don't even know if scanQueue is serial or concurrent. We don't know what the point of using NSOperation is: is it to get parallel processing, to offload long tasks from the main thread, etc? Maybe NSOperation isn't the best API to use for this, perhaps direct use of GCD is easier. The code you showed has each NSOperation using, or not using, the resulting array of the previous operation, according to the timing of the block placed back on the main thread. We don't know the consequences of this sort
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Apr ’16
Will Cordova applications that download additional JavaScript be rejected
My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.The idea would be to have:the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)the main JavaScript added to the pages as external scripts from a servera device-ready function for each page that will set up and start the main JavaScript once it's availableI have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.Thanks!
Replies
3
Boosts
0
Views
1.1k
Activity
Oct ’15
Metal Matrix Multiplication reference code
Hi,I have just started experimenting with Metal. I really just want to offload a few matrix multiplications to the GPU.So, I downloaded this perfectly applicable example code and ran it: https://developer.apple.com/library/ios/samplecode/MetalPartialSumsCompute/Introduction/Intro.html#//apple_ref/doc/uid/TP40015013-Intro-DontLinkElementID_2I can run it on my iphone 6 but there are several issues:It crashes sometimes (EXC_BAD_ACCESS (code=1), and other malloc errors). That's a bit worrying for reference code.It says I am getting approximately 0.04 gflops/sec[sic] using either CPU (Accelerate) or GPU (Metal). I believe I should be getting 3+ GFLOPS from the CPU? (http://www.anandtech.com/show/8554/the-iphone-6-review/3) I'm not sure what to expect from the GPU/Metal but I am assuming a considerably higher number.Here's example output:2015-12-02 14:48:27.772 MetalMatrixMultiply[5477:2056717] >> [12] Matrix Dimensions: A = [1248 x 1137], B = [1137 x 2004], C = [1248 x 2004], lda = 1248, ldb = 2008,
Replies
1
Boosts
0
Views
2.2k
Activity
Dec ’15
How to increment ios badge notifiation count when app is not running?
We are already done with the initial setup for implementing Push notifications and are able to send/receive notifications successfully.Now, we have been looking for the possible solutions to handle badge count increment from ios app (especially when app is not in foreground) -1. Delegate the badge count calculation to server side. - If we think of offloading the task of badge calculation to app server, then question arises is that, how server side will get to know about the count of viewed notifications so that badge can be decremented accordingly.2. Use UIBackgroundModes and call 'didReceiveRemoteNotification:fetchCompletionHandler' method. - Apple says, this method will get called when my app is either in foreground or background state. With this we should be able to track the count/notification info even when the app is in background & thus it probably enables us to do the necessary calculation in iOS app itself. However, we have noticed that this method doesn't invoke when app is in backgroun
Replies
1
Boosts
0
Views
5.1k
Activity
Jul ’15
Need Resources: Kernel and SpoghtlightNetHelper Unauthorized System Access
To Whom It May Concern:I apparently have a self propagating virus that was introduced to my network by purchase of a used Mac computer from Amazon.com on approximately December 24, 2015. That is when I first started noticing erratic behavior on my machines. I have clean formatted and reinstalled OS from computers on an isolated network that was not infected. As soon as I connect the newly reinstalled OS iMacs to the infected network they become reinfected on first boot. I've spent something like 40 labor hours on this so far and I can't afford anymore resource allocation to this issue until there are some steps to cure the system.This activity on my computer appears to be a nasty virus. From what I can tell, it tries injecting itself in every executable it can locate. It trys to obtain the icloud login credentials, it attempts to obtain administrator credentials, and on one computer it appears to have secured and stolen my credentials to completely hijack the computer. Once it hijacks the computer it deletes
Replies
0
Boosts
0
Views
1.5k
Activity
Jan ’16