系统软件作为处理器和应用程序之间的接口,对于充分利用处理器的特性来维护处理器与应用程序的稳定性和提高应用程序的性能起着极其重要的作用.描述了在Linux内核中解决龙芯2号处理器的Cache别名问题的方法以及通过增加页的大小、软TLB和FAST_TLB_REFILL的方法减小TLB失效的性能损失,还有Uncache Accelerate对媒体播放软件的加速.实验结果表明,在系统软件中增加这些方法的支持,对系统的稳定性和性能都有较大的好处.
As the interface between applications and processor, system software plays an important role in maintaining the stabilization of processor and improving the performance of applications. In this paper, ways to resolve cache synonyms in Godson-2 processor and methods to decrease performance loss resulting from TLB miss, such as augmenting the page size, software TLB and FAST_ TLB_ REFILL, are described. And a way of Uncache Accelerate for improving performance of video output is depicted. Experimental results show that these kinds of methods in system software can benefit the stabilization and performance of the computer system.