最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

linux kernel - Logic behind using per cpu variable - Stack Overflow

programmeradmin7浏览0评论

I'm going through some linux kernel documentation on per cpu variables. I understand that having separate variable for each CPU help prevent cache line invalidation and make things faster.

But in multiprocessor system , a task can get scheduled in any processor. So cache and tlb invalidation or clean keep happening plethora of other kernel data.So how having few per cpu variables increase performance of the system unless those variables are going to be used very frequently?

发布评论

评论列表(0)

  1. 暂无评论