August 17, 2007 at 10:00
先说说bootchart,看图便知这是干什么的.
Bootchart 26s
Bootchart 22s
启动 26s, 谁跟偶拼一下? 
(更新: 现在是 22 秒.)
Bootchart 具体怎么装,偶就不想提了.
gentoo下面注意安装时的提示.
(不过好像是错的,自己到/etc/conf.d/rc里面找个正确的参数吧.)
最后到官方去提交/var/log/bootchart.log就可以得到图了.
—–
下面谈谈加速的问题.
1 readahead
保持一个相对较小的预抓取列表
(不过gentoo好像需要自己装.)
参见一看就晕的 readahead * 4
2 并行处理
gentoo,sysvinit,/etc/conf.d/rc
RC_PARALLEL_STARTUP=”yes”
加速至少25%.
如果用initng之类的替代品,估计会快到疯狂吧.
(initng,号称下一代引导系统…
有点吹过头?)
Read the rest of this entry »
Tags: linux
Permalink
July 18, 2007 at 10:04
nice和renice相信一般的linux管理员都会使用.
他们能够调整程序运行的优先级.
当然顺便提一句.
在 2.6.23 进入 mainline 的 CFS(Completely Fair Scheduler)
对优先级做了如下的规定:
进程的nice每提高1,则增加10%的CPU使用率,反之减少10%.
并与HZ的取值无关(原先的调度器受HZ的影响较大).
cpulimit和ionice相对知道的人就少多了
不过由于全新调度器的出现,手工调整的机会就更少了.
这些调整将会由核心自动进行.
不过偶自己认为,在IO上的改进对性能的提升帮助会更大.
所以,readahead,big io command,Large Blocksize Support等出现了
(虽然它们根本不稳定)
不跑题了,开始说.
Read the rest of this entry »
Tags: kernel, linux, soft
Permalink
June 18, 2007 at 23:58
It seems Linux kernel development has really some issues these days…
Adrian Bunk,Con Kolivas
这是第二位了,因为某些原因不再进行核心的开发.
古人怀才不遇,今人呢?
ck-patches永远定格在2.6.22-ck1,虽然暂时还没有发布.
Con Kolivas留下了SD CPU scheduler,还有Swap prefetch.
(后者已经被好多桌面发行版采纳了)
ck-patches包含的这两项
SD CPU scheduler让偶的机器CPU跑满时候仍然保持良好的响应
swap prefetch让偶在关掉firefox之后能够迅速得到足量的内存.
它们离开了,偶除了感谢还能做什么呢?
确实,最终SD CPU scheduler,Swap prefetch都不会被接纳,进入mainline.
如果有继任者的话,思想或许能够被保留下来.
Read the rest of this entry »
Tags: kernel, linux
Permalink
June 2, 2007 at 21:39
本文对读者要求程度较高,不推荐一般使用者阅读
并要求读者在查看文章之前对数据进行备份,
以防丢失.
文章内容:swap-prefetch,CFS scheduler,readahead等.
文章涉及的patches,可在mm-patches,ck-patches中找到.
更新:由于Linux 核心开发中固有的矛盾,
有些开发者将不再进行核心开发,
下面提到的部分patch将不再被维护.
参见:ck-patches: Thank you,and goodbye.
Read the rest of this entry »
Tags: kernel, linux
Permalink
May 7, 2007 at 20:54
其它发行版可以参考.
/etc/make.conf
LINGUAS=”zh_CN”
(如果你只用英语,不需要中文的界面,
用LINGUAS=”en”,这个配置不影响中文显示)
userlocales: 仅保留必要的locale.
编辑 /etc/locale.gen 只留以下几行
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8
然后sudo locale-gen
清理可用localepurge
Read the rest of this entry »
Tags: howto, linux
Permalink
May 2, 2007 at 21:16
du -sh /usr/lib32: 11M
这11M主要来自32/64bit toolchain.
尤其是glibc.
使用equery belongs filename
就可以查到究竟是属于哪个包.
有据可查是件好事情.
emerge glibc是件浪费时间的工作.
在这之前看看toolchain吧.
binutils,glibc,gcc.
前面文章中提到了新的binutils.
(Gentoo linux:Make some decisions)
查了一下,稳定的binutils 2.17 发布时间是2006-06-26.
距现在已经接近1年.稳定程度没得说.
稳定和新功能看来不可兼得.
Read the rest of this entry »
Tags: 64bit, linux
Permalink
April 26, 2007 at 20:55
首先出场的主角是 ppc64,mips64 和 amd64.
在gentoo的profiles中它们都有multilib或者no-multilib可选.
mips64,ppc64(2005.1).amd64(2006.0)
make.defaults(amd64 no-multilib 2007.0)
仅仅一句,把32位就掐死了 
MULTILIB_ABIS=”amd64″
其它的就是些包,use flags的屏蔽.
multilib和no-multilib的区别还是不小的.
Read the rest of this entry »
Tags: 64bit, linux
Permalink
April 25, 2007 at 18:29
Beagle
Beagle:Linux 下最流行的桌面搜索
优点:有firefox extension
(这个优点足够大家去用了,这样功能和Google Desktop Search差距就很小了
貌似google desktop for linux确实也没有这功能)
缺点:需要gnome库(可以使用 Peagle 解决,但是没有GUI) 和mono,
占用资源大(除了beagle之外其它的都小),好像有一点点慢
Read the rest of this entry »
Tags: linux, soft
Permalink
April 20, 2007 at 22:21
memcached是由livejournal团队(danga.com)制作的开源缓存软件.
安装实际上很容易(编译memcached除外) – 而且可以作为服务运行.
已经有编译好的套件.参数和linux/bsd下的memcached没什么区别
http://jehiah.com/projects/memcached-win32/
memcached 1.2.4 for win32.
http://www.splinedancer.com/memcached-win32/
例如:
Read the rest of this entry »
Tags: linux, soft
Permalink
March 15, 2007 at 22:25
预备知识:linux核心配置,portage 管理初步
另见:Linux Desktop Search:桌面搜索百花齐放?
首先做一堆工作.
Beagle 安装准备
1 linux 核心处理:
File Systems –>
[*] Inotify file change notification support
<*> Ext3 journalling file system support
[*] Ext3 extended attributes
(或这个,如果你用reiserfs)
<*> Reiserfs support
[*] ReiserFS extended attributes
(重编核心)
2 fstab,在/home 中加上user_xattr
如果核心已配置,则运行
mount -o remount,user_xattr /home
(重启也可达到效果)
3 /etc/portage/package.use
添加一行
dev-libs/gmime mono
4 执行 emerge app-misc/beagle
之前可以考虑开几个use选项(chm pdf …)
这里偶把gtk关闭了,因为偶不想编一堆gnome的包.
注:
如果你已经装了gnome,忽略偶关于gtk的言论吧…
peagle的部分你大可不看.
直接用你的beagle-search就ok.
Read the rest of this entry »
Tags: linux, soft
Permalink