|
|

楼主 |
发表于 2008-12-4 21:06:17
|
显示全部楼层
调整了的缓存策略,现在系统缓存由原来占用内存35%左右减少到11%,腾出了更多空间给应用程序,情况有所好转,但偶尔还是有卡的状况出现,现在开始怀疑是不是我的省电策略有问题,接着查。顺便贴一下如何调整linux下系统的缓存策略。
proc/sys/vm/drop_caches (since Linux 2.6.16)
Writing to this file causes the kernel to drop clean caches,
dentries and inodes from memory, causing that memory to become
free.
To free pagecache, use echo 1 > /proc/sys/vm/drop_caches; to
free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
to free pagecache, dentries and inodes, use echo 3 >
/proc/sys/vm/drop_caches.
Because this is a non-destructive operation and dirty objects
are not freeable, the user should run sync(8) first.
顺带提一下,我的本是Core2 主频2.2,1G内存,2400XT独显128M显存,250G SATA硬盘。虽然不是极品配置,但在XP下跑孤岛危机中等画质不卡,跑个魔兽什么的不成问题,而且我的配置跟在ubuntu下是一样的,臃肿的ubuntu不卡到了瘦身优化过的arch下却开始卡了,肯定是配置哪有问题。 |
|