Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149709

Forum Post: RE: PROCESSOR-SDK-AM57X: Context switch latency

$
0
0
Hello, It is nice that you have run the benchmark for the latest kernel version. But why the time of lat_ctx-4-256k is 0? lat_ctx-2-128k (us) 4.79 lat_ctx-2-256k (us) 4.00 lat_ctx-4-128k (us) 8.07 lat_ctx-4-256k (us) 0.00 >What are you basing your expectations on? Or, why do you feel that this is not the expected performance? I expect that it spends 1 or 2 us on context switch for simple applications like notepad. Lets say we have one program A which is not so smart and sleep per ms by calling usleep(1000) . This program A causes context-switch two times (others -> A and A -> others) per ms. Assume the overhead of context-switch is around 5 us, then the theoretical value of overhead will be (5 * 2 / 1000) = 1%. So.... usleep(1000) wastes the 1% of CPU resource??

Viewing all articles
Browse latest Browse all 149709

Trending Articles