• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2013, Vol. 35 ›› Issue (9): 27-35.

• 论文 • Previous Articles     Next Articles

Research on operating system scalability for search service         

ZHAO Yulong,WANG Lei,WANG Huan   

  1. (School of Computer Science and Engineering,Beihang University,Beijing 100191,China)
  • Received:2013-05-03 Revised:2013-07-24 Online:2013-09-25 Published:2013-09-25

Abstract:

The scalability of the operating system is the ability that the performance of operating system grows with the increase of the number of CPU cores. Analyzing current mature operating systems to find the performance bottleneck in multicore environments and eliminate it has become one of the research spots of modern operating systems. Through pressure experiments of search service, it's found that the scalability of 64 cores Linux server running Nginx reverse proxy is poor and the throughput of 64 cores only increases by 3 times in comparison to 1 core. The bottleneck is that all NIC interrupts and soft interrupt handling concentrate in one core of the server. Using the NIC Flow Direction mechanisms and the Linux kernel interrupt affinity, the NIC interrupt load balancing approach is achieved. The average throughput increases by 33%. NIC interrupts load balancing in multicore environments cannot guarantee the TCP connection affinity. By modifying the code of the Linux kernel, the nonaffinity problem is solved, and the throughput keeps increasing by 9%.

Key words: multi core;operating system scalability;search service;NIC interrupts balance;TCP connection affinity