vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

High CPU Load Caused by Client/Server Interfaces

Last updated: 2019-01-30

Client/Server Interfaces, an Often-Unexpected Reason for High CPU Load

In multi-partition configurations, Client/Server interfaces can have a significant contribution to the CPU load. The reason is the implementation of the server invocation in different scenarios.


 
First Scenario – Client/Server Interfaces within a Partition

  1. If a client SWC A is mapped to Task 1 and calls a service of a server SWC B that is not mapped to a task, the service runs in the context of the calling client SWC and is handled as a function call. There is no time-consuming invocation of another task necessary.
  2. If a client SWC A is mapped to Task 1 and calls a service of a server SWC C that is mapped to another Task 2, this task of the server operation has to be invoked. This can have a major impact on the CPU load of the system. The resulting rescheduling consumes execution times, which are by magnitudes greater than a direct invocation (function call).

Second Scenario – Client/Server Interfaces crossing the partition boundary

  1. If a client SWC A is mapped to a Task 1 and needs to access a server SWC D that resides on another partition, this server must be mapped to a task (Task 4). 

Accessing Client/Server type interfaces over partition (core) boundaries consumes by magnitudes more execution time than on the same partition since it requires scheduling of the client and the server task. 

Solution:

There are different solutions to reduce the CPU load caused by Client/Server interfaces.

  • Check if the task mapping of the server operation is really necessary. There can be configurations in which the RTE cannot determine the partition assignment of a software component and must be provided with additional information. The best method to provide this information is to assign the component to a partition within the EcuC module. Mapping a server operation provides the same information but also brings the drawback of much longer execution times when the mapped operation is being invoked.
  • Map server and client(s) to the same partition. In other words: Omit inter-partition Client/Server interfaces if possible. If the interface is between the application and the BSW, check if the BSW module can provide a satellite that provides the interface on the same partition as the application. 
  • Refactor interfaces to data oriented S/R types (read/write, send/receive) either directly or via a proxy component.
 
Article Options
2019-01-30
Views: 266