I am wondering how many loops it takes to change contexts on Linux. I specifically use the E5405 Xeon (x64), but I would like to see how it compares with other platforms.
There is a free LMBench app written by Larry McVoy and his friends. It provides many OS and HW tests. One of the tests is called lat_ctx, and it measures contex timer delays. Google for lmbench and test yourself on your own HW. This is the only way to get a number that matters to you.
Gilad
vmstat , -, . , , , .
, - , . , 100: 1 - ? . 1000: 1
3000 , 0,3 . 100: 1, , 0,003 .
, , , .., :)
, () UDP- 200 . .
This suggests that the context can be switched by no more than 2.5 microseconds, and the actual context switch probably takes a little less.
Source: https://habr.com/ru/post/1702721/More articles:Get common rows in one table - sqlHow to authenticate php or java client if I use WCF w / forms auth? - securityWhy does ps return only one line of output in my Perl script when I call it Nagios? - linuxDoes the operator use me to close or destroy objects? - asp.netКак открыть браузер для URL-адреса с помощью ActivePerl в Windows? - windowsHas anyone written a plugin to add a finale to ActiveResource? - pluginsSSRS Multiple Values - The appropriate level for filter implantation - sql-serverVisual Studio WinForms Designer Does Not Create Object - instantiationЕсть ли способ получить доступ к объекту окна iframe из холста в FBJS? (Facebook) - javascriptHow to distribute a script using gdata-python-client? - pythonAll Articles