Status: New
Owner: ----
New issue 2106 by [email protected]: Pin V8 thread to one processor
(set affinity) to get stable performance data and improve the performance
http://code.google.com/p/v8/issues/detail?id=2106
I measure the performance on Linux platform we can find that the V8
performance varies greatly. For V8 benchmark, there are about 10% variance.
The reason is the process / thread scheduling. If we can pin the main
thread of V8 to one processor using pthread_setaffinity_np or
sched_setaffinity. we can get very stable performance data. And the
performance will improve about ~6%. [(14527 - 13706)/ 13706 = 5.9%]. The
following is the data. I run the V8 benchmark for 5 times and get the
average data.
my suggestion is we add one flag to enable the feature. The user will
determine whether it's enable. It will be very useful for performance
analysis.
original data after setaffinity
1, 14321 14501
2, 13170 14540
3, 13426 14510
4, 14158 14545
5, 13457 14539
avg 13706 14527
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev