Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ Optimize for Apple Silicon with performance and efficiency cores

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Optimize for Apple Silicon with performance and efficiency cores


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: developer.apple.com

Recent Apple Silicon like A13 Bionic has both high-performance cores (P cores) and high-efficiency cores (E cores). These different core types allow you to deliver apps that have both great performance and great battery life. To take full advantage of their performance and efficiency, you can provide the operating system (OS) with information about how to execute your app in the most optimal way. From there, the OS uses semantic information to make better scheduling and performance control decisions.

Letโ€™s explore some best practices to help you get the most out of Apple Silicon and create faster, more efficient apps. Discover how to adapt your code for asymmetric multiprocessing, adopt Quality of Service classes, and find out more about Grand Central Dispatch APIs.

Adapt your code for asymmetric multiprocessing

Unlike traditional symmetric multiprocessing (SMP) systems which use many identical cores, asymmetric multiprocessing (AMP) systems have cores that are not all equal.

Apple Silicon Macs are AMP systems, having both performance cores (P cores) and efficiency cores (E cores). Even though E cores are optimized for high efficiency, they offer significant compute resources for apps to take advantage of.

An app may execute threads on both P and E cores over a period of time. The OS places threads on P or E cores based on the following criteria:

  • Information your app provides
  • Observation of the appโ€™s workload
  • Observation of the system as whole

On Apple Silicon Macs, the system observes applications and daemons separately from each other. This allows the system to execute them with individual efficiency and performance characteristics. As an example, an app running in the background may have its threads placed on E cores to optimize battery life while the foreground app is taking advantage of P cores.

Use Quality of Service classes to categorize work

Quality of Service (QoS) classes are the primary way for you to categorize work performed by your app and provide the OS with semantic information on the nature of that work and how it affects someone using your app.

On AMP systems, the operating system uses the energy-efficiency information conveyed by QoS classes to influence placement of threads on P or E cores. You can use the following QoS classes on Apple platforms:

For instance, you can use the QoS class Background to categorize all of your appโ€™s background processes in order to maximize battery life.

For more details on Quality of Service, watch โ€œBuilding Responsive and Efficient Apps with GCDโ€ from WWDC15 and explore the energy efficiency guide.

  • WWDC15

Building Responsive and Efficient Apps with GCD

watchOS and iOS Multitasking place increased demands on your application's efficiency and responsiveness. With expert guidance from the GCD team, learn about threads, queues, runloops and best practices for their use in a modern app. Take a deep dive into QoS, its propagation and advanced...

Energy efficiency guide

Manage parallel workloads

Your app can take advantage of both P and E cores to execute parallel worker threads and get tasks done faster and more efficiently.

Statically pre-assigning pieces of a parallel workload to worker threads will leave threads idle before the end of the execution. This is because not all cores are equal and so worker threads will not make identical progress. Instead, subdivide parallel problems into a large number of pieces and use a work-stealing algorithm to balance these pieces across threads to keep all workers busy.

GCD is the recommended API for expressing concurrent and parallel workloads in your application. Parallel workloads should use the concurrentPerform / dispatch_apply API to execute parallel instances of a block on multiple cores simultaneously. Set the number of iterations to at least three times the total number of cores on the system. This enables the work-stealing algorithm inside GCD to appropriately balance iterations.

If you have an existing codebase that cannot adopt GCD and uses a custom pthread worker pool, you may benefit from implementing a work-stealing algorithm to achieve optimal performance. For more information, see โ€œTuning Your Codeโ€™s Performance for Apple Silicon.โ€

Dispatch

Tuning your code's performance for Apple Silicon

Further AMP exploration

When you adopt GCD and QoS in your application, you can unlock greater processing power and ensure that your application performs well across all Apple platforms. If you need more information on testing your adoption, weโ€™ve also provided resources to help you there.

Working on something we havenโ€™t mentioned above? Check out the Developer website for more information on other situations like daemons and agents working on behalf of applications and realtime audio applications and plugins.

Porting your audio code to Apple Silicon

Resources

  • WWDC15

Building Responsive and Efficient Apps with GCD

watchOS and iOS Multitasking place increased demands on your application's efficiency and responsiveness. With expert guidance from the GCD team, learn about threads, queues, runloops and best practices for their use in a modern app. Take a deep dive into QoS, its propagation and advanced...

  • WWDC16

System Trace in Depth

Join engineers from the Instruments team for another focused look at the System Trace Instruments profiling template and how to get the most out of it. Discover how threads, virtual memory, and locking interact to affect performance. Dive deep for a practical look at how you can improve your app's...

  • WWDC17

Modernizing Grand Central Dispatch Usage

macOS 10.13 and iOS 11 have reinvented how Grand Central Dispatch and the Darwin kernel collaborate, enabling your applications to run concurrent workloads more efficiently. Learn how to modernize your code to take advantage of these improvements and make optimal use of hardware resources.

Learn more about Apple Silicon

Prioritize work at the task level

...



๐Ÿ“Œ Optimize for Apple Silicon with performance and efficiency cores


๐Ÿ“ˆ 66.29 Punkte

๐Ÿ“Œ Show All Cores in Task Manager: How to Activate All CPU Cores (Windows 10)


๐Ÿ“ˆ 34.85 Punkte

๐Ÿ“Œ Show All Cores in Task Manager: How to Activate All CPU Cores (Windows 10)


๐Ÿ“ˆ 34.85 Punkte

๐Ÿ“Œ How Apple's new M3 silicon compares to the M1 and M2 chips - from GPU cores to transistors


๐Ÿ“ˆ 31.05 Punkte

๐Ÿ“Œ Apple Silicon: Asymmetrische Cores, PCIe und ein neuer Bootprozess


๐Ÿ“ˆ 29.25 Punkte

๐Ÿ“Œ Data Engineering for ML: Optimize for Cost Efficiency


๐Ÿ“ˆ 27.92 Punkte

๐Ÿ“Œ Can We Optimize Large Language Models More Efficiently? Check Out this Comprehensive Survey of Algorithmic Advancements in LLM Efficiency


๐Ÿ“ˆ 27.92 Punkte

๐Ÿ“Œ 5 easy ways to optimize your Android home screen for maximum efficiency


๐Ÿ“ˆ 27.92 Punkte

๐Ÿ“Œ Qualcommโ€™s next-gen Nuvia-based CPU claimed to have 12-cores and โ€œextremely promisingโ€ performance


๐Ÿ“ˆ 26.54 Punkte

๐Ÿ“Œ How Apple Siliconโ€™s focus on efficiency can benefit even the highest-end Macs


๐Ÿ“ˆ 25.49 Punkte

๐Ÿ“Œ How Amazon Music uses SageMaker with NVIDIA to optimize ML training and inference performance and cost


๐Ÿ“ˆ 25.17 Punkte

๐Ÿ“Œ ODROID-N2 Offer Six Cortex-A73/A53 Cores For $65~82, Good Performance In Linux Benchmarks


๐Ÿ“ˆ 24.74 Punkte

๐Ÿ“Œ ODROID-N2 Offer Six Cortex-A73/A53 Cores For $65~82, Good Performance In Linux Benchmarks


๐Ÿ“ˆ 24.74 Punkte

๐Ÿ“Œ Bloomberg รผber kommende Pro-Macs: Bis zu 32 Performance-Kerne โ€“ und 128 Grafik-Cores


๐Ÿ“ˆ 24.74 Punkte

๐Ÿ“Œ Rescale launches hybrid and multi-cloud intelligent control plane to boost performance and efficiency


๐Ÿ“ˆ 24.57 Punkte

๐Ÿ“Œ Optimize your hard drive's performance and boost system speed for just $50


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ Optimize for the Best Cost and Performance for Azure Cosmos DB NoSQL API


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ How to optimize Kubernetes resource configurations for cost and performance


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ How to Optimize Performance and Cost for Prometheus & Grafana Pods on EKS Fargate


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ Optimize cost and performance with Query Acceleration for Azure Data Lake Storage


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ How To Optimize Shopify Performance And Reduce Bounce Rates


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ How to Animate CSS Box Shadows and Optimize Performance


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ iBoostUp 10.7 - Optimize your Mac, fix performance and errors.


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ PostgreSQL Vacuuming to Optimize Database Performance and Reclaim Space


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ Unlocking the Secrets of TOAST: How To Optimize Large Column Storage in PostgreSQL for Top Performance and Scalability


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ Learn Live - Optimize performance and costs by using Azure Disk Storage


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ MacCleaner Pro 3.2.4 - Clean up your Mac and optimize its performance.


๐Ÿ“ˆ 23.38 Punkte

๐Ÿ“Œ Why data center efficiency and performance rely on a holistic approach


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ Provision workloads to maximize efficiency and price-performance.


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ How Sportradar used the Deep Java Library to build production-scale ML platforms for increased performance and efficiency


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ Deep Dive into AWS EC2 Placement Groups: Maximizing Efficiency and Performance


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ The Evolution of Serverless Monitoring Tools: Enhancing Efficiency and Performance


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ OPTIMUSCLOUD: Cost and performance efficiency for cloud-hosted databases


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ Dashlane rewrites its iOS app, improving efficiency, speed, and performance


๐Ÿ“ˆ 22.77 Punkte

๐Ÿ“Œ Hillstone Networks X8180 secures networks with more performance and energy efficiency


๐Ÿ“ˆ 22.77 Punkte











matomo