It is advantageous for the real-time applications where time, the fast response is important. the mapping of running thread to specific core is decided by the algorithm, not by existing Linux Kernel scheduler. So when explicit affinity assignments are made. However there are instances which demands tweaking of the affinity assignments to aid the desired performance improvement for applications written using proper processor affinity techniques, proper design of thread contexts and shared objects and proper memory management. The efficient mapping algorithm will set the processsor affinity for running processes. ![]() With multiple cores on a single chip, the tasks were running in parallel, a proper algorithm is required to map the running processes/thread of a application by scheduling each on the multiple processors, without interrupting, or migrating them time to time may degrades the performance. But, if we have multiple cores and not utilizing them the CPU properly, that is only one application running at a time, then its a drawback of using multi-core systems. For example Windows XP, Windows 7 automatically sets their affinity to different processors for load distribution. The OS implementation has default affinity managing algorithm mechanisms to address these objectives and confirms to the scalability and performance requirements in the SMP environment. ![]() This is neededġ) To reduce cache problems and optimize the cache performance, by resisting the migration of processes between the processorsĢ) Proper balancing of available cores through proper load distribution, allocating specific amount of work or task to each core, to improve computational time,ģ) To utilize the time quantum in a multi-threaded application, Significance of Processor Affinity The main objective of setting the Processor affinity is to enable a mapping or binding the running threads or tasks to specific core in multi-core systems.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |