On a second note: There are many other aspects to concurrent scheduling such as queue implementations etc.. Especially if there is no "beef" inside the message processing, these differences become more dominant compared to cache misses, but this is another problem that has been covered extensively by other people in depth (e.g. Nitsan Wakart).
Focus of this experiment is locality/cache misses, keep in mind different queueing implementations of executors for sure add dirt/bias.
As requested, I add results from the linux "perf" tool to prove there are significant differences in cache misses caused by random assignment of Thread - to Actor as done by ThreadPoolExecutor and WorkStealingExecutor.
Check out my recent post for a description of the test case.
Results with adjusted SingleThreadExecutor (XEON 2 socket, each 6 cores, no HT)
As in previous post, "dedicated" actor-pinned-to-thread performs best. For very small local state, there are only few cache misses so differences are small, but widen once a bigger chunk of memory is accessed by each actor. Note that ThreadPool is hampered by its internal scheduling/queuing mechanics, regardless of locality, it performs weak.
When increasing number of Actors to 8000 (so 1000 actors per thread), "Workstealing" and "Dedicated" perform similar. Reason: executing 8000 actors round robin creates cache misses for both executors. Note that in a real world server its likely that there are active and inactive actors, so I'd expect "Dedicated" to perform slightly better than in this synthetic test.
"perf stat -e" and "perf stat -cs" results
(only 2000, 4000, 8000 local size tests where run)
Dedicated/actor-pinned-to- thread:
333,669,424 cache-misses
19.996366007 seconds time elapsed185,440 context-switches
20.230098005 seconds time elapsed
=> 9,300 context switches per second
workstealing:
2,524,777,488 cache-misses
39.610565607 seconds time elapsed
381,385 context-switches
39.831169694 seconds time elapsed
=> 9,500 context switches per second
fixedthreadpool:
3,213,889,492 cache-misses
92.141264115 seconds time elapsed
25,387,972 context-switches
87.547306379 seconds time elapsed
=>290,000 context switches per second
A quick test with a more realistic test method
In order to get a more realistic impression I replaced the synthetic int-iteration by some dirty "real world" dummy stuff (do some allocation and HashMap put/get). Instead of increasing the size of the "localstate" int array, I increase the HashMap size (should also have negative impact on locality).
Note that this is rather short processing, so queue implementations and executor internal implementation might dominate locality here. This test is run on Opteron 8c16t * 2Sockets, a processor with 8kb L1 cache size only. (BTW: impl is extra dirty, so no performance optimization comments pls, thx)
As ThreadPoolExecutor is abnormous bad in this Test/Processor combination, plain numbers:
64 HMap entries | 256 HMapentries | 2000 HMapentries | 4000 HMapentries | 32k HMapentries | 320k HMapentries | |
WorkStealing | 1070 | 1071 | 1097 | 1129 | 1238 | 1284 |
Dedicated | 656 | 646 | 661 | 649 | 721 | 798 |
ThreadPool | 8314 | 8751 | 9412 | 9492 | 10269 | 10602 |
Conclusions basically stay same as in original post. Remember cache misses are only one factor of overall runtime performance, so there are workloads where results might look different. Quality/specialization of queue implementation will have huge impact in case processing consists of only some lines of code.
Finally, my result:
Pinning actors to threads created lowest cache miss rates in any case tested.
Hi Rudiger
ReplyDeleteSmall typo at the beginning
"Code-completion let me accidentally choose Executors.newSingleThreadScheduledExecutor() instead of Executors.newSingleThreadScheduledExecutor()"
Again you selected the Scheduled one :)
Thanks for sharing
Georges
WPWE NICE BLOG
DeleteData Analytics course in Mumbai
Argh .. poor me .. I am considering to fork openjdk and delete this method :-) Thx
ReplyDeletevery useful .thank you for sharing
ReplyDeleteJava Online course Hyderabad
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this
ReplyDeleteDigital Marketing Training in rajajinagar
This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
ReplyDeleteClick here:
python training in Bangalore
Click here:
python training in Bangalore
I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
ReplyDeleteBlue Prism Training in Pune
Blueprism training in tambaram
Blueprism training in annanagar
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
ReplyDeleteData Science with Python training in chenni
Data Science training in chennai
Data science training in velachery
Data science training in tambaram
Data Science training in anna nagar
Data Science training in chennai
Data science training in Bangalore
I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks
ReplyDeleteangularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
angularjs Training in bangalore
This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me..
ReplyDeletepython training in pune | python training institute in chennai | python training in Bangalore
Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.
ReplyDeleteAWS Training in Bangalore | Amazon Web Services Training in Bangalore
AWS Training in Bangalore |Best AWS Training Institute in BTM ,Marathahalli
AWS Training in Rajaji Nagar | Amazon Web Services Training in Rajaji Nagar
Best AWS Training Institute in BTM Layout Bangalore ,AWS Coursesin BTM
Best AWS Training in Marathahalli | AWS Training in Marathahalli
This is most informative and also this post most user friendly and super navigation to all posts.
ReplyDeleteangularjs training in Marathahalli
angularjs training institutes in Marathahalli
best angularjs training in Marathahalli
I greatly appreciate your such a knowledge sharing
ReplyDeleteiWatch service center chennai | apple ipad service center in chennai | apple iphone service center in chennai
It would have been the happiest moment for you,I mean if we have been waiting for something to happen and when it happens we forgot all hardwork and wait for getting that happened.
ReplyDeleteMicrosoft Azure online training
Selenium online training
Java online training
Java Script online training
Share Point online training
Attend The Python training in bangalore From ExcelR. Practical Python training in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python training in bangalore.
ReplyDeletepython training in bangalore
thanks for sharing this information
ReplyDeletebest data science training in bangalore
best data science training institute in bangalore
data science classroom training in bangalore
devops certification course in bangalore
aws certification course in bangalore
best AWS Training institute in Bangalore
Amazon web services training in bangalore
aws training in bangalore
This comment has been removed by the author.
ReplyDeleteI learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from Data science training in btm layout experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying hkbk group of institutions
ReplyDeleteLooks interesting post
ReplyDeletelearn sql online
Thank you for sharing. Machine Learning Training in Bangalore from Indian Cyber Security Solutions design the course to provide a broad introduction to machine learning, data-mining, and statistical pattern recognition. Machine learning is the science of getting computers to act without being explicitly programmed. In the past decade, machine learning has given us self-driving cars, practical speech recognition, effective web search, and a vastly improved understanding of the human genome. Machine learning is so pervasive today that you probably use it dozens of times a day without knowing it. Machine Learning Course done by ICSS in Kolkata. ICSS is the Best Machine Learning Institute in Bangalore.
ReplyDeleteThanks For Sharin With Us.It gave me a lot of Helpful information.
ReplyDeleteMean stack online training
Mean stack training in hyderabad
If you are stuck with your online management assignment then in this case you can opt for our Database Management Assignment help. we provide the best assignment assignment help online.
ReplyDeleteWe also provide Advanced Database Management System help. for students across the globe.
for more information contact us +16692714848
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeletearttificial intelligence course in faridabad
Thanks for sharing this article
ReplyDeleteLeanpitch provides online training in Scrum during this lockdown period everyone can use it wisely.
Scrum Values
You might comment on the order system of the blog. You should chat it's splendid. Your blog audit would swell up your visitors. I was very pleased to find this site.I wanted to thank you for this great read!!
ReplyDeleteData Analyst Course
"I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it. data science courses
ReplyDelete"
Excellent article. Very interesting to read. I really love to read such a nice article.
ReplyDeleteTop 10 java training institute in coimbatore |Java Training institute Coimbatore | software Testing Course in Coimbatore | Selenium Training Coimbatore | Automation Testing | Selenium Training institute Coimbatore | Best Selenium Training institute Coimbatore | Online selenium Training institute Coimbatore | software Testing Course in Coimbatore | Best Online software testing training institutes in coimbatore | Best software Testing Training Course in Coimbatore | Online software testing course in coimbatore | Manual and Automation Testing Training in saravanampatti
ReplyDeleteYou completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog.
data scientist courses
Your way of telling the whole thing in this paragraph is truly fastidious, every one can effortlessly be aware of it,Thanks a lot.
ReplyDeleteDisk Drill Crack
Your post is very awesome. And I think the admin in this site work very hard. Because the material use in this site is very informative for me and many others peoples. Thanks sharing this amazing post.
ReplyDeleteIBM SPSS Statistics Crack
cool stuff you have and you keep overhaul every one of us
ReplyDeleteData Science Course in Mysore
This comment has been removed by the author.
ReplyDeletevery informative blogs
ReplyDeletedata science training in Patna
Very informative blog and very easy to understand. Keep posting, will be returning back for updates. Thank you
ReplyDeletehttps://www.clariwell.in/
Best Java Training
Liên hệ Aivivu, đặt vé máy bay tham khảo
ReplyDeletevé máy bay vietjet từ hàn quốc về việt nam
vé máy bay từ hải phòng về sài gòn
chuyến bay đến hà nội
vé máy bay đi đà lạt
ve may bay di Hue gia re
Great information, I got a lot of new information from this blog.
ReplyDeleteOracle Apex Training In Bangalore
Due to the rising demand for Data Scientists, there are many educational platforms that are coming up with programs in Data Science, you may never find the best, but you can always find the one that is suitable for you.
ReplyDeleteData Science Training in Gurgaon
www.edchart.com
ReplyDeleteFor online microsoft Certification Exams
<1--- 1st azure set --->
online microsoft azure administrator certification exams edchart
online microsoft azure infrastructure & deployment certification exams edchart
online microsoft azure data analyst certification exams edchart
online microsoft-designing-an-azure-data-solution-certification exams edchart
online microsoft-azure-relational-database-admin-certification exams edchart
online microsoft-azure-iot-developer- certification exams edchart
online designing-and-implementing-microsoft-azure-devops-certification exams edchart
online microsoft-azure-security-technologies-certification exams edchart
This comment has been removed by the author.
ReplyDeleteneed to thank you for this particularly fantastic article. I definitely really liked every part of it.Educational Institute in Visakhapatnam
ReplyDeleteDigital Marketing Course
ReplyDeletein Telugu
I was just examining through the web looking for certain information and ran over your blog.It shows how well you understand this subject. Bookmarked this page, will return for extra.
ReplyDeletedata scientist training and placement
thanks for sharing i have a resource related python if you read this amazing content then you would like mine too.
ReplyDeleteExcellent blog. I am waiting for more blogs from you. Thank you.
ReplyDeletePython Training in Hyderabad
Interesting blog and informative.
ReplyDeleteOnline Machine Learning Training in Hyderabad
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeleteThank you for the information.
ReplyDeleteJava
I didn't understand why the customer service officials awarded my order to a rookie R programmer. The lady was fast but not accurate. She didn't fail but got me only 51 marks. I don't want to complain a lot because this is the first time you've done this to me. However, I must let Statistics Homework Help know that I'll choose my favorite R Homework Help expert next time. Meanwhile, thanks for the assistance.
ReplyDeleteYou actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it!
ReplyDeletedata scientist training in hyderabad
You actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it!
data scientist training in hyderabad
Adobe Character Animator Crack is a versatile application that allows users to create animated characters professionally easily. This will enable users to Adobe Character Animator Crack key to express and movement to their animated character, making it easy to create an engaging animated character. adobe character animator crack
ReplyDeleteHow Do You Lose Currency Trading In au-usd
ReplyDeleteI get pleasure from, cause I found just what I used to be having a look for. You’ve ended my four day long hunt! God Bless you man. Have a nice day. Feel free to visit my website; 온라인카지노사이트
ReplyDeleteGood web site! I truly love how it is simple on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. Feel free to visit my website; 카지노사이트링크
ReplyDeleteIts an amazing website, really enjoy your articles. Helpful and interesting too. Keep doing this in future. I will support you.Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Feel free to visit my website; 온라인카지노사이트넷
ReplyDeletejust like to say thank for a tremendous post and all round interesting website. Please do keep up the great work. your blog. Feel free to visit my website; 바카라사이트닷컴
ReplyDeleteA very good and informative article indeed . It helps me a lot to enhance my knowledge. I really like the way the writer presented his views. I hope to see more informative and useful articles in future.Get best Mobile App Development Dubai service of app development you visit here site to get more info.
ReplyDeleteGoogle Adwords Certification Course
ReplyDeleteGoogle Ads certification adds value to your resume. It increases the chance of getting employed in top MNC companies
Wonderful illustrated information. I thank you for that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
ReplyDeletedata scientist training in hyderabad
I think this is definitely an amazing project here. So much good will be coming from this project. The ideas and the work behind this will pay off so much. I am very happy to see your blog. You did a great job and thanks for sharing. Get best Mobile App Development Dubaiservice you visit here site for more info.
ReplyDeleteNice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.
ReplyDeletedata analytics courses in hyderabad with placements
Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing.business analytics course in warangal
ReplyDeleteThe concepts covered in each section of the Inventateq digital marketing course in Bangalore are expected to be fully grasped and achieved in each subsequent lesson. The growth hacking training program is designed by online businessmen and millionaires based on the most successful methods and practices.
ReplyDeleteInventateq digital marketing course in Bangalore
Everything is very open with a clear clarification of the issues. It was truly informative. Your site is useful. Thank you for sharing!data analytics course in jodhpur
ReplyDeleteI am another customer of this site so here I saw various articles and posts posted by this site,I curious more energy for some of them trust you will give more information further.
ReplyDelete360DigiTMG, the top-rated organisation among the most prestigious industries around the world, is an educational destination for those looking to pursue their dreams around the globe. The company is changing careers of many people through constant improvement, 360DigiTMG provides an outstanding learning experience and distinguishes itself from the pack. 360DigiTMG is a prominent global presence by offering world-class training. Its main office is in India and subsidiaries across Malaysia, USA, East Asia, Australia, Uk, Netherlands, and the Middle East.
ReplyDeleteYou really make it look so natural with your exhibition however I see this issue as really something which I figure I could never understand. It appears to be excessively entangled and incredibly expansive for me.
ReplyDeletebusiness analytics training in hyderabad
We are grateful for your blog post. You will find a lot of approaches after visiting your post. Great work
ReplyDeletedata science course in malaysia
I see some amazingly important and kept up to a length of your strength searching for in your on the site
ReplyDeletecyber security course malaysia
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.Data Science Course in Mohali
ReplyDeleteWonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up! data science course in Shimla
ReplyDeleteA data science is a researcher who prepares huge volumes of bog data for analysis, build complex quantitative algorithms to organize and synthesize the information
ReplyDeletehttp://360digitmg.com/india/data-science-using-python-and-programming-banglore
very nice blog with excellent information thank you.
ReplyDeleteData Science Institutes in Bangalore
It is the superset of data mining in which data is collected. It is then cleansed with the help of statistical algorithms to transform it into a model that can efficiently represent data.
ReplyDeleteYou completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog.data science training in jabalpur
ReplyDeleteI am really happy to say it’s an interesting post to read. I learn new information from your article, you are doing a great job. Keep it up
ReplyDeleteSoftware Testing Tools Training in Hyderabad
iobit driver booster pro key
ReplyDeletevmware fusion pro crack
ReplyDeleteGreetings to everyone i am olivia, Have you ever heard people saying that Physics is one of the most difficult subject? well i thought that same untill i found new assignment help australia, i am really satisfied with their Physics Assignment Help services which they provided me and because of them i archieved A+ grades in my exams, If you are looking for the best assignment help services you should definitely go with them !!!
ReplyDeleteWe are associated with six hundred and seventy-six full-time and nine hundred and eighty-two part-time online skilled experts, each specializing in a different subject. Each of them is selected separately after a series of thorough screen tests, which include license checks. Not only this, but these tests also include detailed analysis of work history, writing online Java programming assignments, and interviews on a one-on-one basis.
ReplyDeleteFor the past couple of years Java has introduced many adjustments and posed a hard challenge for developers to preserve up to date with new Java variations each 6 months. The release of popular frameworks like Spring 5, Spring safety 5, and Spring Boot 2 are simply some of the updates which had been introduced to life closing yr and the ultra-modern version of Java changed into released March 2020, Java 14. Builders will want to live on their feet as extra Java updates are introduced within the following few years.
ReplyDeleteJava classes in Pune
I like your blog. If anyone want make career in Java so, Java Course in Greater Noida is best career opportunity.
ReplyDeleteelazığ
ReplyDeleteerzincan
bayburt
tunceli
sakarya
Z1LM
adıyaman
ReplyDeletesakarya
yalova
tekirdağ
amasya
İVAX
sakarya
ReplyDeletedüzce
çankırı
sivas
elazığ
R2MF
Very interesting blog. Many blogs I see these days do not really provide anything that attracts others, but believe me the way you interact is literally awesome. also visit for : top cheque printing software , top digital signage software.
ReplyDeletehttps://titandijital.com.tr/
ReplyDeleteağrı parça eşya taşıma
maraş parça eşya taşıma
muğla parça eşya taşıma
uşak parça eşya taşıma
İSS
ankara parça eşya taşıma
ReplyDeletetakipçi satın al
antalya rent a car
antalya rent a car
ankara parça eşya taşıma
37DZ
adana evden eve nakliyat
ReplyDeleteafyon evden eve nakliyat
istanbul evden eve nakliyat
burdur evden eve nakliyat
gümüşhane evden eve nakliyat
TRFTQ
A6E85
ReplyDeleteManisa Evden Eve Nakliyat
Erzincan Evden Eve Nakliyat
Zonguldak Lojistik
Bartın Evden Eve Nakliyat
Tokat Lojistik
21EFB
ReplyDeleteoxandrolone anavar for sale
parabolan
order sustanon
https://steroidsbuy.net/steroids/
order steroids
deca durabolin for sale
testosterone propionat for sale
order winstrol stanozolol
Adana Evden Eve Nakliyat
D8727
ReplyDeleteAdıyaman Evden Eve Nakliyat
Ağrı Evden Eve Nakliyat
Sincan Boya Ustası
Binance Referans Kodu
Casper Coin Hangi Borsada
Yenimahalle Boya Ustası
Tekirdağ Parke Ustası
İzmir Şehirler Arası Nakliyat
Bolu Parça Eşya Taşıma
EC9F2
ReplyDeletebinance indirim kodu %20
92FC4
ReplyDeleteosmaniye canlı görüntülü sohbet siteleri
sesli sohbet
kütahya görüntülü sohbet siteleri
zonguldak nanytoo sohbet
en iyi ücretsiz sohbet siteleri
sesli sohbet sitesi
antalya sesli sohbet sitesi
ardahan canlı sohbet uygulamaları
canli sohbet
9EDA8
ReplyDeleteen iyi görüntülü sohbet uygulamaları
malatya canli sohbet chat
kırklareli ücretsiz görüntülü sohbet uygulamaları
hatay rastgele sohbet uygulaması
ankara canlı sohbet sitesi
canlı görüntülü sohbet
canlı ücretsiz sohbet
tunceli mobil sesli sohbet
parasız sohbet siteleri
20D42
ReplyDeleteankara rastgele sohbet
afyon canlı görüntülü sohbet siteleri
bilecik sohbet uygulamaları
rize rastgele sohbet odaları
Mersin Parasız Görüntülü Sohbet Uygulamaları
aksaray sesli sohbet mobil
kadınlarla rastgele sohbet
canlı görüntülü sohbet uygulamaları
ücretsiz sohbet siteleri
2B400
ReplyDeleteBitcoin Nasıl Üretilir
Shinja Coin Hangi Borsada
Hexa Coin Hangi Borsada
Coin Nasıl Üretilir
Kripto Para Nedir
Bitcoin Nasıl Kazanılır
Youtube Beğeni Hilesi
Binance Hesap Açma
Kaspa Coin Hangi Borsada
D2317
ReplyDeleteBtcst Coin Hangi Borsada
Gate io Borsası Güvenilir mi
Dxgm Coin Hangi Borsada
Bonk Coin Hangi Borsada
Kripto Para Kazma
Youtube İzlenme Satın Al
Coin Oynama
Binance Komisyon Ne Kadar
Bitranium Coin Hangi Borsada
A6011
ReplyDeleteNazımiye
Evciler
Hani
Twitter İfşa
Seydiler
Domaniç
Anamur
Gülnar
Bismil