كيفية إيجاد النسبة المئوية للوقت المستهلك لوحدة المعالجة المركزية أثناء تشغيل DMA?

السؤال

برمجة الأنظمة المضمنة على معالج ARM Cortex-M3 / M4 (الوصول المباشر للذاكرة) هي طريقة مستقلة عن النظام الأساسي لنقل البيانات بين وحدة المعالجة المركزية وذاكرة الوصول العشوائي للنظام الرئيسي. DMA operations are typically faster than normal memory accesses because the CPU doesn’t have to wait for the operating system to finish loading the required physical address into its registers before it can read or write data.

DMA operations are used to transfer data between the CPU and peripherals, such as hard drives or flash memory. DMA can be resource intensive, depending on the type of data being transferred. You can use Performance Monitor in Windows 10 to measure how much CPU time is consumed by various tasks and then identify which task consumes the most amount of resources.

لفعل هذا, open Performance Monitor by searching forPerformance Monitorin start menu and clicking on it. التالى, select ‘Devicesfrom the left-hand column and right-click on any device name under it to get additional options like ‘Perfmon Data Collector Script’. Click on ‘Create Basic Collection Setbutton next to your target disk (for example C:), set a collection interval (say every 5 الدقائق) and click ‘Start’. The script will start capturing performance information automatically and you’ll see detailed report with percent cpu time spent during each stage of operation including DMA transfers at runtime.

To find out how much of your CPU time is consumed by DMA operations, you can use Task Manager’s Performance tab. انقر فوق “Processes” ثم حدد “Dma”. This will display a list of all active DMA tasks, as well as their associated percentages of total processor time.

0
افرايم Iyodo 3 الشهور 0 الاجابات 1023 مشاهدات 0

‫اضف اجابة

ببراعة آمنة & المتمحور حول الطالب منصة التعلم 2021