- 博客(22)
- 收藏
- 关注
翻译 About Heartbleed
Two articles for heartbleed buhttp://gizmodo.com/how-heartbleed-works-the-code-behind-the-internets-se-1561341209http://blog.existentialize.com/diagnosis-of-the-openssl-heartbleed-bug.html
2014-04-14 10:34:46 595
原创 [Review Linux] filesystem
Linux中“一切皆文件”的思想想必是尽人皆知,从文件系统到虚拟文件系统,从inode和dentry到文件,从文件到命名空间,从命名空间再回到进程,弄清这些概念之间的关系和联系,对于更好的理解Linux文件系统是非常重要的,下面有两篇很好的文章值得参考。无论是理论还是代码,深入理解Linux内核一书以及很多资料都讲解的非常详尽,所以不妨从整体上再次回顾一番。Linu
2014-02-08 17:22:46 555
原创 string类构造函数、拷贝构造函数、赋值函数、析构函数
#ifndef DDSTRING_H#define DDSTRING_Hclass ddString {public: ddString(const char *pStrAddr = 0); ddString(const ddString &otherStr); ddString &operator=(const ddString &otherStr); unsigned int size() c
2014-02-05 20:52:22 525
原创 小试牛刀
一些常用的数据结构和算法,随附的参考文章写的都不错,值得反复研究。虽然实际项目中时有应用,但有时间还是要分别实现一下,无论对于夯实基础,还是灵活应用都有好处。· Top Khttp://blog.csdn.net/v_JULY_v/article/details/6403777http://blog.csdn.net/v_july_v/article/details/6
2014-02-04 22:18:47 579
原创 马上Go 2.1
要点1. 以package "pkgname"为组织形式,main与C一样是可执行程序的入口函数,但是没有参数和返回值2. 模块化导入机制3. 支持UTF-8(确实,这点很神奇,在试这个例子前还想汉语等输出不会乱码吗,原来机密在此啊)看总结,找答案https://github.com/astaxie/build-web-application-with-golang/blob/
2014-01-28 23:04:48 502
原创 马上Go 1.1
虽然早就听说了Go,但是一直没有机会好好的研究。感谢build-web-application-with-golang项目。简要的完成第1章,enjoy Go之旅吧。工程目录结构gospace/├── bin│ └── testmain├── pkg│ └── linux_386│ └── test.a└── src ├
2014-01-28 22:53:11 710
原创 Google lmctfy 4.0 - flow of creating a container
For checking the error of memory.stale_page_age, I looked around the flow of creating a container, taking memory 100M for a example.The flow is very clear from command respond to derived handler wor
2014-01-28 22:30:55 478
原创 Google lmctfy 3.2 - Example allocate memory in container
写个了小程序试着在memory_only下分配超过100MB的内存,结果每次都能成功,百思不得其姐,岂不是违背了资源隔离的本意?原来是这个原因,"Looks like I didn't have memory isolation enabled. I needed to enable CONFIG_MEMCG, and now things work (without the sym
2014-01-27 10:54:46 565
原创 Google lmctfy 3.1 - Example memory.stale_page_age error
Now let's review this error.Command exited with error message: 5: Failed to open file "/sys/fs/cgroup/memory/memory_only/memory.stale_page_age" for hierarchy 7After checking around the source,
2014-01-27 09:49:31 588
原创 GDB note
gdb foogdb foo coregdb foo pidset args -- for foo with parameters
2014-01-24 21:24:54 379
原创 Mock测试
在面向对象程序设计中,模拟对象(英语:mock object,也译作模仿对象)是以可控的方式模拟真实对象行为的假的对象。程序员通常创造模拟对象来测试其他对象的行为,很类似汽车设计者使用碰撞测试假人来模拟车辆碰撞中人的动态行为。http://zh.wikipedia.org/wiki/%E6%A8%A1%E6%8B%9F%E5%AF%B9%E8%B1%A1mock测试就是在测试过
2014-01-23 16:14:42 897
原创 Google lmctfy 3.0 - Example
1. cgroup文件系统作为lmctfy的基础,cgroup文件系统是必要的,否则执行init时会报错ls /sys/fs/cgroup/blkio cpuacct devices hugetlb perf_eventcpu cpuset freezer memory systemd说明已经挂载了cgroup文件系统,上面显示的就是cgroup
2014-01-22 22:20:10 810
转载 Linux 容器的建立和简单管理
原文链接:http://www.ibm.com/developerworks/cn/linux/1312_caojh_linuxlxc/index.htmlLinux 容器的建立和简单管理LXC 中文名称就是 Linux 容器工具,容器可以提供轻量级的虚拟化,以便隔离进程和资源。使用 LXC 的优点就是不需要安装太多的软件包,使用过程也不会占用太多的资源, LXC 是在
2014-01-21 17:22:32 497
原创 Google lmctfy 2.0 - build
lmctfy depends on the following libraries and expects them to be available on the system:Protocol BuffersgflagsRE2https://code.google.com/p/protobuf/https://code.google.com/p/gflags/http
2014-01-21 14:39:23 484
原创 Google lmctfy 1.0 - Introduction
lmctfy = let me contain that for you,Google发布的开源的Linux Container,https://github.com/google/lmctfy,关于项目说明,也可以参考中文译本:http://linux.cn/article-2049-1.html。它是一种Linux容器,利用Cgroup为各种应用程序提供CPU、Memory、N
2014-01-20 21:46:44 761
原创 github note - Linux
1. git installationsudo apt-get install gitguide of githttp://rogerdudler.github.io/git-guide/index.zh.html2. ssh keys in githubhttps://help.github.com/articles/generating-ssh-ke
2014-01-15 09:37:28 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人