Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
huhuchen
committed
Apr 17, 2012
1 parent
f586f12
commit 33adb32
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ | ||
|
||
这里 , 学习怎么写 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
XEN 虚拟化 | ||
============================== | ||
|
||
|
||
xen的文件系统是用分区呢?还是用的是文件? | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
问 : | ||
听说如果是用文件的话,xen的文件系统会差很多。。。。 | ||
|
||
答 : | ||
2002年前用分区性能好这句话是对的; | ||
|
||
2002年后科技发展,硬件、磁盘缓存、内核、文件系统等发展很快,用文件可以借助 host 上文件系统和内存缓存,可以提高性能。 | ||
|
||
测试结果两个差不多,用文件稍微强一点,但是用文件会方便很多,方便客户转移机房,转移 host | ||
|
||
|
||
|