Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
动态切换CPU频率软件
View previous topic :: View next topic  
Author Message
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2007-Mar-02 Fri, pm6:19 Reply with quote
 Post subject: 动态切换CPU频率软件

综合了群里面的讨论,speedstep在小Z上的实现,基本上有三种方法:
1. 使用applet驻留X的任务栏。优点是修改已有applet即可,cpu占用率低,用户体验好,缺点是检测精度高和cpu占用率低不可兼得。
2. 使用后台服务的形式。过客提出可以使用脚本,但是脚本检测精度太低,CPU代价也高。使用c程序会比较精确,100ms级没有任何问题。缺点是用户体验不友好。
3. 内核级支持。编程复杂,但是检测精度和cpu占用率方面表现都不错。

我个人比较支持第二种方法。

关于speedstep的实现,首先是要检测cpu使用率。在2.4内核中kapm_idled会导致/proc/stat的idle时间不准确,所以2.4不能简单检测/proc/stat来实现。第二个问题是调节cpu频率,在2.4内核中,可以通过写/proc/zaurus/CCCR和/proc/zaurus/VCORE来实现,而在2.6内核中,使用了/dev/ipmc设备来控制cpu的频率。

附件src.tar.gz为speedstep的源代码。
附件ss24/26.zip为speedstep程序。

在2.4内核(pdaxrom b3及以下,cacko,原rom)在命令行运行speedstep24,则会在切换频率的时候在命令行显示相关内容。或者可以运行speedstep24_d,则会在后台运行自动切换频率。

2.6同上。目前的2.6版本超频会闪烁,这个问题我正在努力解决。

目前的2.4频率切换是每500ms检测一次,检测到cpu>90%之后会跳到624,检测到cpu<40>90%之后会超频,检测到cpu<40%之后会降频。cpu占用率稳定之后每2.5s检测一次

使用本软件可能会有危险性,对于造成的损失本人不负任何责任。



ss26.zip
 Description:

Download
 Filename:  ss26.zip
 Filesize:  5 KB
 Downloaded:  49 Time(s)


ss24.zip
 Description:

Download
 Filename:  ss24.zip
 Filesize:  4.91 KB
 Downloaded:  52 Time(s)


src.tar.gz
 Description:

Download
 Filename:  src.tar.gz
 Filesize:  1.81 KB
 Downloaded:  52 Time(s)



Last edited by joerkky on 2007-Mar-04 Sun, pm4:52; edited 4 times in total
Back to top
View user's profile Send private message
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2007-Mar-04 Sun, am12:59 Reply with quote
 Post subject:

joerkky wrote:
2.4的daemon方式,2.5s切换,最低频率200的

很棒,大程序启动速度加快,电池也saving了.
可以进一步完善成release版.

使用方法:
退出X
执行程序speedstep24
然后,进X

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
john4



Joined: 08 Nov 2005
Posts: 70

小企鹅: 782

PostPosted: 2007-Mar-05 Mon, pm12:47 Reply with quote
 Post subject:

不懂如何安装,楼主能说明一下吗,谢 Razz
Back to top
View user's profile Send private message
lonelyp



Joined: 14 Nov 2006
Posts: 260

小企鹅: 8158

PostPosted: 2007-Mar-05 Mon, pm1:18 Reply with quote
 Post subject:

pdaxrom1.1 beta4以下
下载了直接在console输入speedstep24即可运行
beta4以上运行
speedstep26


使用本软件可能会有危险性,对于造成的损失本人不负任何责任。


最恐怖的下场,可能烧CPU
另7500C没测试过

_________________
my Blog: http://wells.osall.com

请支持我的开源项目Sylvan: http://sylvan.osall.com
Back to top
View user's profile Send private message Visit poster's website
john4



Joined: 08 Nov 2005
Posts: 70

小企鹅: 782

PostPosted: 2007-Mar-05 Mon, pm3:34 Reply with quote
 Post subject:

Shocked
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional