Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuchen committed Apr 17, 2012
1 parent f586f12 commit 33adb32
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
40 changes: 40 additions & 0 deletions thrift.rst
@@ -0,0 +1,40 @@
Thrift
=======================



安装
~~~~~~~~~~~~~~~~~~~~~~~

Centos 和 Ubuntu 可以直接安装 , 参见

http://thrift.apache.org/docs/install/

Gentoo 安装方式 如下 ::

emerge layman
echo 'source /var/lib/layman/make.conf' >> /etc/make.conf
layman -sync
layman -a OSSDL
eix-update
emerge dev-libs/thrift


使用
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

教程见

http://svn.apache.org/repos/asf/thrift/trunk/tutorial/

看 tutorial.thrift 即可

thrift --gen <language> <Thrift filename>

python 的 language 名称是 py

生成以后 看

http://svn.apache.org/repos/asf/thrift/trunk/tutorial/py/

这里 , 学习怎么写
18 changes: 18 additions & 0 deletions xen/index.rst
@@ -0,0 +1,18 @@
XEN 虚拟化
==============================


xen的文件系统是用分区呢?还是用的是文件?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
问 :
听说如果是用文件的话,xen的文件系统会差很多。。。。

答 :
2002年前用分区性能好这句话是对的;

2002年后科技发展,硬件、磁盘缓存、内核、文件系统等发展很快,用文件可以借助 host 上文件系统和内存缓存,可以提高性能。

测试结果两个差不多,用文件稍微强一点,但是用文件会方便很多,方便客户转移机房,转移 host



0 comments on commit 33adb32

Please sign in to comment.