| 摘要: |
| Xorg图形服务器软件在帧缓存设备上采用单线程绘制模式,难以发挥多核CPU的性能.针对多核CPU上的帧缓存设备,设计了带有互斥操作的任务队列,并按照屏幕划分的方法,实现了Xorg的矩形填充操作在帧缓存设备上基于私有任务队列的多线程并行化,并实现了主从线程负载均衡.x11perf测试结果表明,该算法在一台4核商用台式机上的加速比可以达到2.06. |
| 关键词: Xorg 帧缓存设备 嵌入式 并行算法 多核CPU |
| DOI:10.13328/j.cnki.jos.005814 |
| 分类号: |
| 基金项目:国家核高基重大专项(2017ZX01038-104-002);国家自然科学基金(61502510) |
|
| Parallel Frame Buffer Device: Graphics Acceleration Based on Multi-core CPU for Xorg |
|
GAO Long1, DAI Hua-Dong2, YANG Sha-Zhou1, DING Yan1
|
|
1.College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China;2.National Innovation Institute of Defense Technology, Academy of Military Sciences, Beijing 100091, China
|
| Abstract: |
| Xorg server is running in single-threaded mode on frame buffer device, which is hard to obtain good performance on multi-core CPU. For frame buffer device on multi-core CPU, a task queue is designed with mutual-inclusion, screen is split into several sub-screens, and each sub-screen is attached with a thread to draw rectangles within that sub-screen. A private task queue for each thread is used to hold their own tasks to draw rectangles, and load balance is kept between the main thread and each sub-thread. Results of x11perf show that rectangles filling operation could reach a speed-up ratio of 2.06 on a 4-core DELL desktop computer. |
| Key words: Xorg frame buffer embedded parallel algorithm multi-core CPU |