博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月25日

摘要: WinDbg是微软发布的一款相当优秀的源码级(source-level)调试工具,可以用于Kernel模式调试和用户模式调试,还可以调试Dump文件。1. WinDbg介绍: Debugging Tools and Symbols: Getting Startedhttp://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx A word for WinDbghttp://mtaulty.com/communityserver/blogs/mike_taultys_blog/archive/2004/08/03/4656.as. 阅读全文

posted @ 2012-04-25 18:01 algorithmer 阅读(159) 评论(0) 推荐(0) 编辑

2012年4月21日

摘要: 最近Quora上有个讨论,原意是:“facebook是如何做自动化测试的,他们是怎样测试才能保证每周的升级都可以不出差错的呢?” 参见Link来自Facebook的Steven Grimm很好地回答了这个问题,觉得还不错,这里以第一人称翻译了一下。对于PHP的代码,我们写了非常多的基于PHPUnit测试框架的测试类,这些测试类覆盖范围比较大,从简单的判读真假的单元测试到大规模的后端服务的集成测试。开发人员把运行这些基于PHPUnit的测试用例作为他们工作中的一部分,同时这些用例也在一些专用的设备上不停地被运行(注:持续集成模式)。当开发人员对一些代码做了比较大的修改时,在开发机器上的自动化工具 阅读全文

posted @ 2012-04-21 16:02 algorithmer 阅读(346) 评论(0) 推荐(0) 编辑

摘要: Facebook级别规模的挑战在我们深入细节之前,先了解一组Facebook不得不面对数据,你就可以想象这种规模。● Facebook每月的PV量:630,000,000,000 (6千3百亿)●Facebook上的图片数量超过其他图片网站的总和(包括诸如Flickr这样的图片网站)●每个月有超过30亿的图片上传到Facebook●Facebook系统每秒可以处理120万张图片。这还不包括Facebook的CDN处理的图片。●每月处理超过250亿的信息内容(包括用户状态更新,评论等)●Facebook的服务器数量超过3万台(此数据为2009年的数据)Facebook所用的软件从某些方面来说,F 阅读全文

posted @ 2012-04-21 16:01 algorithmer 阅读(206) 评论(0) 推荐(0) 编辑

摘要: FeaturesXen Cloud PlatformXenServer FreeXenServer AdvancedXenServer EnterpriseXenServer PlatinumCost/LicensingFree/Open Source (Multiple Licenses1)Free/Citrix EULAPaid/Citrix EULAXenServer hypervisorXXXXXIntelliCacheXXXXXResilient distributed management architectureXXXXXVM disk snapshot and revertXX 阅读全文

posted @ 2012-04-21 15:58 algorithmer 阅读(434) 评论(0) 推荐(0) 编辑

摘要: mv /etc/apt/sources.list /etc/apt/sources.list.bakwget http://mirrors.163.com/.help/sources.list.oneiricmv sources.list.oneiric /etc/apt/sources.listapt-get updateReference: http://mirrors.163.com/.help/ubuntu.html 阅读全文

posted @ 2012-04-21 15:56 algorithmer 阅读(183) 评论(0) 推荐(0) 编辑

摘要: apt-get install xen-tools xen-utils-common xenwatch libxen-dev xen-docs-4.1 xen-hypervisor-4.1-amd64 xen-utils-4.1 xenstore-utils bridge-utilsgrub:修改set default="2",即启动下面的内核:submenu "Xen 4.1-amd64" {menuentry 'Ubuntu GNU/Linux, with Xen 4.1-amd64 and Linux 3.0.0-12-generic 阅读全文

posted @ 2012-04-21 15:55 algorithmer 阅读(312) 评论(0) 推荐(0) 编辑

摘要: 在CentOS上,Makefile中动态链接库的位置放在源码文件名的前面和后面都可以,而在ubuntu中LIBS必须放到源文件名的后面,否则会碰到下面的问题:I am currently using gcc to compile and I need to use<math.h>. Problem is that it won't recognize the library. I have also tried-lmand nothing. The function I tried to use wasceil()and I get the following error: 阅读全文

posted @ 2012-04-21 15:53 algorithmer 阅读(1568) 评论(0) 推荐(0) 编辑

摘要: sudo apt-get install openssh-server/etc/init.d/ssh start 阅读全文

posted @ 2012-04-21 15:51 algorithmer 阅读(114) 评论(0) 推荐(0) 编辑

2012年3月28日

摘要: HLFS(HDFS Log Structured FileSystem)是一个开源EBS系统,隶属于《谁来拯救云计算》一文作者康华所发起的cloudxy项目。 HDFS最大的特色是结合了LFS和HDFS, HDFS提供了可靠、随时可扩展的文件服务,而LFS弥补了HDFS不能随机更新的缺憾。 HDFS一个较为成熟的项目,为HLFS提供可靠的、可扩展的存储服务, 大大简化了HLFS的设计。在HLFS中,虚拟磁盘对应一个文件, 文件长度能够超过TB级别,客户端支持Linux和Xen,其中linux基于NBD实现, xen基于blktap2实现,客户端通过类posix接口libHLFS与服务端通讯。 阅读全文

posted @ 2012-03-28 21:11 algorithmer 阅读(6492) 评论(0) 推荐(0) 编辑

2012年1月17日

摘要: 介绍:NAMExentrace - capture Xen trace buffer dataSYNOPSISxentrace[OPTIONS] [FILE]DESCRIPTIONxentraceis used to capture trace buffer data from Xen. The data is output in the following binary format (host endian): CPU(uint)TSC(u64)EVENT(u32)D1D2D3D4D5(allu32)Where CPU is the processor number, TSC is the 阅读全文

posted @ 2012-01-17 18:21 algorithmer 阅读(403) 评论(0) 推荐(0) 编辑