对于ubuntu更新过内核的话,使用新内核登陆系统时,会发现virtualBox没办法运行guest OS了,会提示用root用户运行如下命令:
/etc/init.d/vboxdrv setup
下面还会说如果是ubuntu用户需要安装DKMS以便virtalBox在发现内核有变动时能够自动重新编译相应内核,我再经过测试后发现,DKMS只会对virtalBox-ose版本的起作用,因为我的virtalBox是直接在SUN主页上面下载的二进制版本,所以这个DKMS对我用的版本就没有作用了,即在更新完系统内核后只需要执行一次
/etc/init.d/vboxdrv setup
就可以了,而且再登陆到旧的内核里面同样可以使用virtualBox
kevin@kevin-laptop:/etc/init.d$ sudo /etc/init.d/vboxdrv setup
[sudo] password for kevin:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module * done.
* Starting VirtualBox kernel module * done.
昨天试了下virtualBox的“数据空间”功能,它可以让host OS上面的数据share给guest OS用,我之前是用SAMBA来做这个事情的,我发现virtualBox自带的这个“数据空间”功能好像没有SAMBA来的快,个人感觉,所以又换回去了,不知道二者在性能上有什么区别,在选择哪一个解决方案时有无讲究!
因为笔记本是Intel945G的显卡,对于Ubuntu9.04的内核来说支持不是很好,网上说kernel2.6.30的内核改善了对Intel显卡的支持,于是我就当了小白鼠,结果测试下来glxgears还真有蛮大差别:
glxgears结果比对:
kernel2.6.30rc7
kevin@kevin-laptop:~$ glxgears
Failed to initialize GEM. Falling back to classic.
4439 frames in 5.0 seconds = 887.660 FPS
4631 frames in 5.0 seconds = 926.155 FPS
4634 frames in 5.0 seconds = 926.702 FPS
4572 frames in 5.0 seconds = 914.217 FPS
4581 frames in 5.0 seconds = 916.086 FPS
4573 frames in 5.0 seconds = 914.472 FPS
^C
kernel2.6.28
kevin@kevin-laptop:~$ glxgears
Failed to initialize GEM. Falling back to classic.
2293 frames in 5.0 seconds = 458.522 FPS
2124 frames in 5.0 seconds = 424.664 FPS
2363 frames in 5.0 seconds = 472.428 FPS
2370 frames in 5.0 seconds = 473.881 FPS
2360 frames in 5.0 seconds = 471.896 FPS
^C
话说我刚刚写完这篇文章时,发现kernel 2.6.30已经发布了,于是下载下来,彻底卸掉rc7的内核,然后安装,跑了一下glxgears
kevin@kevin-laptop:~$ glxgears
Failed to initialize GEM. Falling back to classic.
4754 frames in 5.0 seconds = 950.793 FPS
4896 frames in 5.0 seconds = 979.153 FPS
4898 frames in 5.0 seconds = 979.408 FPS
4805 frames in 5.0 seconds = 960.904 FPS
4668 frames in 5.0 seconds = 933.534 FPS
^C
看上去有明显的提高啊!呵呵
阅读(1272) | 评论(0) | 转发(0) |