July 24, 2007 at 09:20
大家应该是比较熟悉Xen了,
Xen 经常被用在 cheap VPS(Virtual Private Servers) 上,
能够提供不错的性能.
(加一句,VPS Based on Xen,多数的操作系统是Gentoo linux,debian,Fedora
具体为什么是Gentoo Linux,估计是好配置?)
对于 VPS 来说,稳定性是很重要的一个方面
所以稍微有点晚到,而且性能稍微差一点点的 KVM 好像没有得到平等的对待
KVM 能够轻松进入mainline,但是不会被那些 VPS Hosting Company 接受.
(来的晚,研究的人少?)
KVM没有被用在VPS上的更重要原因偶觉得是 VT(Virtualization Technology).
(包括Intel Virtualization Technology,还有AMD(应该是Opteron)的AMD-V,
只有非常新的处理器才支持.)
硬件虚拟支持在Xen中是可选(Para-virtualization,准虚拟化不需要VT)的,而KVM是必须的.
(mt) Media Temple (偶做的介绍)用了个中间派别的 Virtuozzo.不同于其他的VPS了
OpenVZ (Virtuozzo) 利用的是操作系统虚拟化技术,
将系统划分成多个独立隔离的容器,每个容器是一个虚拟的操作系统.
(所以看起来速度还真是不错,而且不需要为guests重新编译核心)
Read the rest of this entry »
Tags: notes
Permalink
May 26, 2007 at 23:31
最近为了一些神奇的原因讨厌utf-8.
(当然,网页上使用utf-8偶还是没有什么异议的)
gentoo linux(portage)的USE固然方便,
但需要考虑的确实太多了.
对于mplayer看(带字幕)电影的问题,
简单一笔说完
1 emerge fireflysung
2 gmplayer->选项
3 字幕和OSD->编码->选择CP936
4 字体->浏览->/usr/share/fonts/fireflysung/fireflysung.ttf
5 看电影.
Read the rest of this entry »
Tags: notes, soft
Permalink
April 26, 2007 at 23:07
sudo emerge streamripper lastfm-ripper
wget http://vidar.gimp.org/wp-content/uploads/2006/07/lastfmproxy-1.1.tar.gz
tar zxvf lastfmproxy-1.1.tar.gz
cd lastfmproxy-1.1
nano config.py
username = "yourusername"
password = "yourpassword"
./main.py &
http://localhost:1881/lastfm://globaltags/rock
http://localhost:1881/lastfm://globaltags/dance
http://localhost:1881/lastfm://artist/Madonna/similarartists
http://localhost:1881/lastfm://artist/Coldplay/similarartists
lastfm://user/fcicq/playlist
lastfm://user/fcicq/recommended/100
last.fm-ripper -u fcicq -p *** lastfm://user/fcicq/playlist -o lastfm
Tags: notes
Permalink
November 27, 2006 at 20:04
Tags: notes, SEO, summary
Permalink
Enter your password to view comments
November 1, 2006 at 18:44
Tags: notes
Permalink
Enter your password to view comments
October 31, 2006 at 18:26
sudo cdrecord -checkdrive | grep “dev”
sudo cdrecord -v dev=1000,0,0 speed=6 driveropts=burnfree -dao -eject ISOFILE
blank=all/fast
Tags: notes
Permalink
October 24, 2006 at 18:46
扫盲,不要没事找事…
New Version
Item-based:
喜欢长尾理论的人同样喜欢蓝海战略.
超市把啤酒和尿布摆在一起
喜欢 Programming Ruby 的同样喜欢 应用Rails进行敏捷Web开发 .
喜欢 PHP 的给你推荐PHP, 最多推荐CSS, 更离谱的就是Ajax.
User-based:
如果你喜欢PHP, 给你推荐Rails
(因为你和喜欢php的人相似,所以给你推荐这些人还喜欢的Rails)
这就是所谓的协同推荐系统
2007.8.21
Tags: notes
Permalink
October 19, 2006 at 22:36
Tags: notes, SEO
Permalink
Enter your password to view comments
September 24, 2006 at 15:45
AWS New Version
Amazon Simple Storage Service(Amazon S3)
Storage
$0.15 per GB-Month of storage used
Data Transfer
$0.10 per GB – all data transfer in
$0.18 per GB – first 10 TB / month data transfer out
$0.16 per GB – next 40 TB / month data transfer out
$0.13 per GB – data transfer out / month over 50 TB
Requests
$0.01 per 1,000 PUT or LIST requests
$0.01 per 10,000 GET and all other requests*
Amazon Elastic Compute Cloud(Amazon EC2)
$0.10 – Small Instance (Default)
1.7 GB of memory, 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit), 160 GB of instance storage, 32-bit platform
1 month=736 hours -> 74$ /month
用EC2提供虚拟服务器, 把域名(用脚本)指向ec2,
文件放到s3 – 对视频类网站极其有利, 程序文件备份/还原用s3.
程序写成分布式的,流量过大时再开一个/多个instance.
Tags: notes
Permalink
August 28, 2006 at 21:39
Disabling the TCP options reduces the overhead of each TCP packet and might help to get the last few percent of performance out of the server. Be aware that disabling these options most likely decreases performance for high-latency and lossy links.
* net.ipv4.tcp_sack = 0
* net.ipv4.tcp_timestamps = 0
Read the rest of this entry »
Tags: linux, network, notes
Permalink