愉快原因
奋战3天,总算数据有个眉目,赶在22:00前送到老板手里。然后教学楼关门,一起出来,讨论下一步方案,回来时候心情愉快:)
什么是幸福?
今天弄了一根长网线,从宿舍拉到门厅,用一个本本挑灯夜战——即不怕吵到同学,又可避免半夜从实验室出来饥寒交迫回宿舍的感觉——一切顺利,工作到4:30,稍做清理,直接倒在床上,那感觉——幸福啊!
意外的郁闷
福之祸所倚,刚幸福到早上8:20突然手机响!老板叫过去修改计算方案,迷迷糊糊的想起‘郁闷’二字……
平淡
唉,什么时候这些东西做个累加,结果就是平淡了吧?
emacs+gdb举例
首先cd到源代码目录下:
M-x cd
~/helloworld/src/
M-x gdb
run gdb (like this):gdb
后面加应用程序名称,例如调helloworld程序:
run gdb (like this):gdb helloworld
出现gdb窗口,和直接在console里就gdb是一样的。不同的是当你的源代码停在断点或单步时emacs会自动找到源代码并同步显示,显示当前执行语句前面会有一个箭头“=>”
emacs有一些调试命令,但不如直接使用gdb命令方便。有X时可以使用ddd,没X时可以用emacs调试。
Emacs资源导引
2004年 12月23日
百科全书类:
Manpage of Emacs:http://www.linuxforum.net/books/emacs.html
Emacs 中文化指南:http://zhdotemacs.sourceforge.net/emacs/
Emacs WiKi百科:http://zh.wikipedia.org/wiki/EMACS
Emacs User's Guide:http://www.cbi.pku.edu.cn/chinese/documents/csdoc/emacs/
(其实Emacs自带的教程就是很好的起步指南
论坛:
LinuxForum的Emacs\Vim论坛:http://www.linuxforum.net/forum/postlist.php?Cat=&Board=vim
水木清华的Emacs论坛:http://www.smth.org/bbsdoc.php?board=Emacs
个人主页:
王垠的个人主页:http://learn.tsinghua.edu.cn/homepage/2001315450/emacs.html
八卦:
Emacs是什么的简称?(又是一个黑客幽默
E. M. A. C. S.
Emacs Makes A Computer Slow
Escape Meta Alt Control Shift
Emacs Makers Are Crazy Sickos
Emacs Makes All Computing Simple
Emacs Makefiles Annihilate C-Shells
Emacs Manuals Always Cause Senility
Emacs May Allow Customized Screwups
Emacs Manuals Are Cryptic and Surreal
Eventually Munches All Computer Storage
Eight Megabytes And Constantly Swapping
Elsewhere Maybe All Commands are Simple
Excellent Manuals Are Clearly Suppressed
Emacs May Alienate Clients and Supporters
Except by Middle Aged Computer Scientists
Extended Macros Are Considered Superfluous
Every Mode Accelerates Creation of Software
Each Manual's Audience is Completely Stupefied
Exceptionally Mediocre Algorithm for Computer Scientists
Easily Maintained with the Assistance of Chemical Solutions
Eradication of Memory Accomplished with Complete Simplicity
从昨天的这个时候算起已经24小时了,除去吃饭睡觉就是测试这个骄气的网络,人不是机器自然不能和交换机一般见识,但是转天开通服务的要求还是要求你必须尽快测试修整,文档-测试-发mail-测试-文档。。。。一天的循环,总算有了点眉目,最后高兴的都快要请所有网卡吃饭了:)
回到宿舍至少三个人问我‘今天回来这么早?’ 其实我才明白,这实际上是昨天回宿舍的时间-_-b
写点blog,希望明天早起能看到朝阳——虽然概率不大:)
晚安NKStars&Myrinet
每个节点运行一个gm_mapper进程,启动的时候,所有的gm_mapper都宽度优先搜索,当探索到另外一个节点的mapper的时候,比较两个节点的gm_mapper进程的level值和mac地址,选择比较大的作主mapper,另外一个做从,这样系统各个mapper俩俩比对最终会产生一个胜利者,这个剩下的主mapper会在以后的工作重负责重新整理其它所有gm_mapper组成一个更合理的二叉树并总理路由计算,向从节点发送路由表,检测网络上节点变更状态更新路由表等工作。
若重起节点的时候发现节点无法发现路由表,这样的时候最简单的方法就是重起所有节点上的gm_mapper。
.0如何停止gm_mapper?
/etc/init.d/gm stop mapper
.1查看集群中有多少各主mapper
psh node001-node384 '/opt/xcat/gm/bin/gm_board_info |grep map'|awk "{print \$4}"|sort -u
.2查看有多少NOT fully configured的节点
psh node001-node384 '/opt/xcat/gm/bin/gm_board_info |grep configured|grep NOT'|wc -l
.3以level=2重起所有节点上的gm_mapper
psh node001-node84 'kill -9 $(ps aux|grep gm_mapper|grep -v grep|awk "{print \$2}");/opt/xcat/gm-2.1.3aa2nks3/sbin/gm_mapper --unit=0 --daemon-pid-file=/var/run/gm_mapper/pid.0 --level=2'
.1 How can I tell if the GM-2 Mapper has correctly detected all of the hosts in my Myrinet network?
.2 GM-2 Mapper
.3 How does the Mapper work in GM-2?
.4 gm_stress用法