<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
> <channel><title>Under Construction Always!</title> <atom:link href="http://blog.netblue.jp/feed/" rel="self" type="application/rss+xml" /><link>http://blog.netblue.jp</link> <description>いつも工事中</description> <lastBuildDate>Tue, 20 Dec 2011 09:41:05 +0000</lastBuildDate> <language>ja</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/feed/" /> <item><title>Install nginx and php-fpm on Ubuntu</title><link>http://blog.netblue.jp/2011/12/20/install-nginx-and-php-fpm-on-ubuntu/</link> <comments>http://blog.netblue.jp/2011/12/20/install-nginx-and-php-fpm-on-ubuntu/#comments</comments> <pubDate>Tue, 20 Dec 2011 09:38:33 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=451</guid> <description><![CDATA[最初に Ubuntu の nginx はバージョンが古いのですが、PPAで最新の安定版が公式に提供されているので、それを使ったインストールの紹介です。Ubuntu 10.04以上で使えます。またnginxがphp-fpm [...]]]></description> <content:encoded><![CDATA[<h3 class="posttitle">最初に</h3><p>Ubuntu の nginx はバージョンが古いのですが、PPAで最新の安定版が公式に提供されているので、それを使ったインストールの紹介です。Ubuntu 10.04以上で使えます。またnginxがphp-fpm（というよりPHP5一式）も提供してるので、それも一緒に入れます。</p><h3 class="posttitle">add-apt-repository</h3><p>ppaを追加する際に add-apt-repository という便利な python のスクリプトがあるので、入ってない場合はそれを入れます。</p><pre class="brush: plain; title: ; notranslate">apt-get install -y python-software-properties</pre><h3 class="posttitle">nginx &#038; php-fpm ppa 追加</h3><p>ppaを追加します。</p><pre class="brush: plain; title: ; notranslate">add-apt-repository ppa:nginx/stable
add-apt-repository ppa:nginx/php5</pre><p>ここで stable となっている所を development とすることで開発版がインストールされるようになります。 ex) ppa:nginx/development</p><h3 class="posttitle">nginx &#038; php-fpm インストール</h3><pre class="brush: plain; title: ; notranslate">apt-get update
apt-get -y install nginx php5-common php5-fpm php-apc</pre><h3 class="posttitle">nginx &#038; php-fpm 設定ファイルの場所など</h3><p>設定ファイルなどは以下の path にインストールされます。</p><pre class="brush: plain; title: ; notranslate">nginx -- /etc/nginx
php-fpm -- /etc/php5/fpm</pre><p>サーバの起動などは以下の方法で</p><pre class="brush: plain; title: ; notranslate">service nginx {start|stop|restart|reload|force-reload|status|configtest}
service php5-fpm {start|stop|graceful-stop|restart|reload|force-reload}</pre>]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/12/20/install-nginx-and-php-fpm-on-ubuntu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/12/20/install-nginx-and-php-fpm-on-ubuntu/" /> </item> <item><title>benchmark of sakura cloud</title><link>http://blog.netblue.jp/2011/11/16/benchmark-of-sakura-cloud/</link> <comments>http://blog.netblue.jp/2011/11/16/benchmark-of-sakura-cloud/#comments</comments> <pubDate>Wed, 16 Nov 2011 13:36:28 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=437</guid> <description><![CDATA[とっても久しぶりなpostですが、昨日オープンしたさくらのクラウドで取ったベンチマークのまとめです。 まずはCPUから 何故かキャッシュサイズが 4096KB 次UnixBenchmarck [site] CPU1コアで [...]]]></description> <content:encoded><![CDATA[<p>とっても久しぶりなpostですが、昨日オープンしたさくらのクラウドで取ったベンチマークのまとめです。</p><p>まずはCPUから</p><pre class="brush: plain; title: ; notranslate"># cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 44
model name      : Intel(R) Xeon(R) CPU           X5675  @ 3.07GHz
stepping        : 2
cpu MHz         : 3066.282
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc up rep_good pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips        : 6132.56
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:</pre><p>何故かキャッシュサイズが 4096KB</p><p>次UnixBenchmarck [<a
href="http://code.google.com/p/byte-unixbench/" title="byte-unixbench" target="_blank">site</a>]</p><pre class="brush: plain; title: ; notranslate">========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)
   System: deny: GNU/Linux
   OS: GNU/Linux -- 2.6.32-33-server -- #72-Ubuntu SMP Fri Jul 29 21:21:55 UTC 2011
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap=&quot;UTF-8&quot;, collate=&quot;UTF-8&quot;)
   CPU 0: Intel(R) Xeon(R) CPU X5675 @ 3.07GHz (6132.6 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   17:58:49 up 25 min,  1 user,  load average: 0.67, 0.27, 0.10; runlevel 2
------------------------------------------------------------------------
Benchmark Run: Tue Nov 15 2011 17:58:49 - 18:26:54
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables       32161880.3 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3699.0 MWIPS (9.9 s, 7 samples)
Execl Throughput                               4523.6 lps   (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1103600.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          299983.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1968613.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2296526.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 385379.9 lps   (10.0 s, 7 samples)
Process Creation                              13593.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6283.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    816.9 lpm   (60.0 s, 2 samples)
System Call Overhead                        4312489.4 lps   (10.0 s, 7 samples)
System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   32161880.3   2755.9
Double-Precision Whetstone                       55.0       3699.0    672.6
Execl Throughput                                 43.0       4523.6   1052.0
File Copy 1024 bufsize 2000 maxblocks          3960.0    1103600.9   2786.9
File Copy 256 bufsize 500 maxblocks            1655.0     299983.7   1812.6
File Copy 4096 bufsize 8000 maxblocks          5800.0    1968613.5   3394.2
Pipe Throughput                               12440.0    2296526.9   1846.1
Pipe-based Context Switching                   4000.0     385379.9    963.4
Process Creation                                126.0      13593.4   1078.8
Shell Scripts (1 concurrent)                     42.4       6283.6   1482.0
Shell Scripts (8 concurrent)                      6.0        816.9   1361.4
System Call Overhead                          15000.0    4312489.4   2875.0
                                                                   ========
System Benchmarks Index Score                                        1637.7</pre><p>CPU1コアでこの数字だけど、実はさくらのVPSの1Gと（さくらのVPSの1Gプランの方はコア数が2なせいもあって）ほぼ同じスコアになります。詳細は後述。</p><p>sysbench</p><pre class="brush: plain; title: ; notranslate">Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (29.244Mb/sec)
 1871.60 Requests/sec executed
Test execution summary:
    total time:                          5.3430s
    total number of events:              10000
    total time taken by event execution: 0.3105
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.03ms
         max:                                  0.89ms
         approx.  95 percentile:               0.19ms
Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   0.3105/0.00</pre><p>fio</p><pre class="brush: plain; title: ; notranslate"># fio -filename=/tmp/fiotest -rw=randwrite -bs=1m -numjobs=4 -runtime=10 -size=2G -name=fiotest
fiotest: (g=0): rw=randwrite, bs=1M-1M/1M-1M, ioengine=sync, iodepth=1
...
fiotest: (g=0): rw=randwrite, bs=1M-1M/1M-1M, ioengine=sync, iodepth=1
Starting 4 processes
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
Jobs: 4 (f=4): [wwww] [100.0% done] [0K/191M /s] [0/187 iops] [eta 00m:00s]
fiotest: (groupid=0, jobs=1): err= 0: pid=31820
  write: io=519168KB, bw=51880KB/s, iops=50, runt= 10007msec
    clat (usec): min=276, max=150442, avg=4519.42, stdev=12369.41
    bw (KB/s) : min=19147, max=235875, per=27.15%, avg=56625.75, stdev=50321.24
  cpu          : usr=0.00%, sys=3.00%, ctx=410, majf=0, minf=34
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/507, short=0/0
     lat (usec): 500=30.57%, 750=43.59%, 1000=6.71%
     lat (msec): 2=1.18%, 4=1.18%, 10=3.55%, 20=4.34%, 50=7.50%
     lat (msec): 100=1.18%, 250=0.20%
fiotest: (groupid=0, jobs=1): err= 0: pid=31821
  write: io=520192KB, bw=51658KB/s, iops=50, runt= 10070msec
    clat (usec): min=248, max=249016, avg=4751.07, stdev=14294.25
    bw (KB/s) : min= 7196, max=260096, per=26.86%, avg=56010.82, stdev=54404.52
  cpu          : usr=0.00%, sys=2.98%, ctx=418, majf=0, minf=35
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/508, short=0/0
     lat (usec): 250=0.20%, 500=31.30%, 750=43.11%, 1000=5.91%
     lat (msec): 2=0.59%, 4=1.18%, 10=4.13%, 20=2.95%, 50=10.24%
     lat (msec): 100=0.20%, 250=0.20%
fiotest: (groupid=0, jobs=1): err= 0: pid=31822
  write: io=515072KB, bw=51492KB/s, iops=50, runt= 10003msec
    clat (usec): min=259, max=920252, avg=6329.97, stdev=42884.56
    bw (KB/s) : min=15903, max=242366, per=26.81%, avg=55917.94, stdev=53425.02
  cpu          : usr=0.00%, sys=3.00%, ctx=409, majf=0, minf=35
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/503, short=0/0
     lat (usec): 500=28.23%, 750=42.94%, 1000=9.54%
     lat (msec): 2=1.19%, 4=0.99%, 10=4.17%, 20=4.17%, 50=7.55%
     lat (msec): 100=0.60%, 250=0.40%, 1000=0.20%
fiotest: (groupid=0, jobs=1): err= 0: pid=31823
  write: io=545792KB, bw=54232KB/s, iops=52, runt= 10064msec
    clat (usec): min=272, max=97136, avg=5865.52, stdev=13435.91
    bw (KB/s) : min=13398, max=201542, per=28.70%, avg=59858.29, stdev=44334.45
  cpu          : usr=0.00%, sys=3.08%, ctx=455, majf=0, minf=35
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/533, short=0/0
     lat (usec): 500=31.14%, 750=37.90%, 1000=9.76%
     lat (msec): 2=1.88%, 4=0.75%, 10=3.00%, 20=1.31%, 50=12.38%
     lat (msec): 100=1.88%
Run status group 0 (all jobs):
  WRITE: io=2051MB, aggrb=208562KB/s, minb=52727KB/s, maxb=55533KB/s, mint=10003msec, maxt=10070msec
Disk stats (read/write):
  sda: ios=0/2971, merge=0/391798, ticks=0/1284890, in_queue=1373000, util=98.84%</pre><p>fioのiopsは143出たという報告あり。→ <a
href="http://twitter.com/u1/status/136410200168071168" target="_blank">http://twitter.com/u1/status/136410200168071168</a></p><p>以上がさくらのクラウドのプラン1（メモリ2GB）で取ったベンチマーク。OSはUbuntu10.04.03</p><p>比較対象として。linodeの（メモリ768MB CPU4コア）のプラン</p><p>まずはUnixBench</p><pre class="brush: plain; title: ; notranslate">========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)
   System: li378-145: GNU/Linux
   OS: GNU/Linux -- 3.0.4-x86_64-linode21 -- #1 SMP Thu Sep 1 21:28:01 EDT 2011
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap=&quot;UTF-8&quot;, collate=&quot;UTF-8&quot;)
   CPU 0: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 2: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 3: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   04:39:46 up 7 min,  1 user,  load average: 0.69, 0.32, 0.13; runlevel 2
------------------------------------------------------------------------
Benchmark Run: Tue Nov 15 2011 04:39:46 - 05:07:58
4 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables       20652738.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2655.0 MWIPS (9.9 s, 7 samples)
Execl Throughput                                943.2 lps   (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        238251.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           64021.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        707924.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                              361265.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  32187.8 lps   (10.0 s, 7 samples)
Process Creation                               1866.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2761.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    846.8 lpm   (60.1 s, 2 samples)
System Call Overhead                         398931.6 lps   (10.0 s, 7 samples)
System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   20652738.2   1769.7
Double-Precision Whetstone                       55.0       2655.0    482.7
Execl Throughput                                 43.0        943.2    219.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     238251.6    601.6
File Copy 256 bufsize 500 maxblocks            1655.0      64021.0    386.8
File Copy 4096 bufsize 8000 maxblocks          5800.0     707924.4   1220.6
Pipe Throughput                               12440.0     361265.1    290.4
Pipe-based Context Switching                   4000.0      32187.8     80.5
Process Creation                                126.0       1866.9    148.2
Shell Scripts (1 concurrent)                     42.4       2761.0    651.2
Shell Scripts (8 concurrent)                      6.0        846.8   1411.3
System Call Overhead                          15000.0     398931.6    266.0
                                                                   ========
System Benchmarks Index Score                                         434.3
------------------------------------------------------------------------
Benchmark Run: Tue Nov 15 2011 05:07:58 - 05:36:15
4 CPUs in system; running 4 parallel copies of tests
Dhrystone 2 using register variables       76103552.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    10565.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3538.4 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        325993.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           84263.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1068742.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1392137.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 206986.2 lps   (10.0 s, 7 samples)
Process Creation                               6835.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   7140.5 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    934.2 lpm   (60.1 s, 2 samples)
System Call Overhead                        1455179.6 lps   (10.0 s, 7 samples)
System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   76103552.5   6521.3
Double-Precision Whetstone                       55.0      10565.2   1920.9
Execl Throughput                                 43.0       3538.4    822.9
File Copy 1024 bufsize 2000 maxblocks          3960.0     325993.1    823.2
File Copy 256 bufsize 500 maxblocks            1655.0      84263.0    509.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1068742.0   1842.7
Pipe Throughput                               12440.0    1392137.2   1119.1
Pipe-based Context Switching                   4000.0     206986.2    517.5
Process Creation                                126.0       6835.4    542.5
Shell Scripts (1 concurrent)                     42.4       7140.5   1684.1
Shell Scripts (8 concurrent)                      6.0        934.2   1557.0
System Call Overhead                          15000.0    1455179.6    970.1
                                                                   ========
System Benchmarks Index Score                                        1166.7</pre><p>sysbench</p><pre class="brush: plain; title: ; notranslate">Operations performed:  6000 Read, 4000 Write, 12800 Other = 22800 Total
Read 93.75Mb  Written 62.5Mb  Total transferred 156.25Mb  (4.8188Mb/sec)
  308.40 Requests/sec executed
Test execution summary:
    total time:                          32.4252s
    total number of events:              10000
    total time taken by event execution: 31.7999
    per-request statistics:
         min:                                  0.01ms
         avg:                                  3.18ms
         max:                                324.50ms
         approx.  95 percentile:               9.81ms
Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   31.7999/0.00</pre><p>fio</p><pre class="brush: plain; title: ; notranslate"># fio -filename=/tmp/fiotest -rw=randwrite -bs=1m -numjobs=4 -runtime=10 -size=2G -name=fiotest
fiotest: (g=0): rw=randwrite, bs=1M-1M/1M-1M, ioengine=sync, iodepth=1
...
fiotest: (g=0): rw=randwrite, bs=1M-1M/1M-1M, ioengine=sync, iodepth=1
Starting 4 processes
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
fiotest: Laying out IO file(s) (1 file(s) / 2048MB)
Jobs: 4 (f=4): [wwww] [100.0% done] [0K/64946K /s] [0/61 iops] [eta 00m:00s]
fiotest: (groupid=0, jobs=1): err= 0: pid=20163
  write: io=194560KB, bw=19363KB/s, iops=18, runt= 10048msec
    clat (usec): min=372, max=546595, avg=23210.35, stdev=83499.02
    bw (KB/s) : min= 1615, max=37838, per=23.85%, avg=18786.33, stdev=11578.50
  cpu          : usr=0.02%, sys=5.90%, ctx=372, majf=0, minf=50
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/190, short=0/0
     lat (usec): 500=1.58%, 750=6.32%, 1000=1.58%
     lat (msec): 2=54.21%, 4=25.26%, 10=1.58%, 20=0.53%, 50=0.53%
     lat (msec): 100=1.05%, 250=4.74%, 500=1.58%, 750=1.05%
fiotest: (groupid=0, jobs=1): err= 0: pid=20164
  write: io=261120KB, bw=25980KB/s, iops=25, runt= 10051msec
    clat (usec): min=375, max=524381, avg=16840.41, stdev=67674.65
    bw (KB/s) : min= 1698, max=124121, per=33.53%, avg=26403.20, stdev=29522.64
  cpu          : usr=0.04%, sys=8.09%, ctx=245, majf=0, minf=56
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/255, short=0/0
     lat (usec): 500=2.35%, 750=3.92%, 1000=1.96%
     lat (msec): 2=55.29%, 4=25.88%, 10=2.35%, 20=0.78%, 50=1.18%
     lat (msec): 100=0.78%, 250=3.92%, 500=0.78%, 750=0.78%
fiotest: (groupid=0, jobs=1): err= 0: pid=20165
  write: io=120832KB, bw=12022KB/s, iops=11, runt= 10051msec
    clat (usec): min=377, max=848149, avg=20751.66, stdev=88815.04
    bw (KB/s) : min= 1479, max=24576, per=15.31%, avg=12056.00, stdev=7905.31
  cpu          : usr=0.03%, sys=3.75%, ctx=374, majf=0, minf=44
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/118, short=0/0
     lat (usec): 500=3.39%, 750=12.71%, 1000=3.39%
     lat (msec): 2=34.75%, 4=28.81%, 10=5.08%, 20=0.85%, 50=4.24%
     lat (msec): 100=0.85%, 250=4.24%, 500=0.85%, 1000=0.85%
fiotest: (groupid=0, jobs=1): err= 0: pid=20166
  write: io=215040KB, bw=21395KB/s, iops=20, runt= 10051msec
    clat (usec): min=392, max=546273, avg=22945.53, stdev=74787.55
    bw (KB/s) : min= 3075, max=48828, per=28.20%, avg=22205.53, stdev=14610.97
  cpu          : usr=0.03%, sys=6.02%, ctx=558, majf=0, minf=49
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, &gt;=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, &gt;=64=0.0%
     issued r/w: total=0/210, short=0/0
     lat (usec): 500=1.43%, 750=4.76%, 1000=2.86%
     lat (msec): 2=52.86%, 4=24.29%, 10=2.38%, 20=0.95%, 100=1.90%
     lat (msec): 250=5.71%, 500=2.38%, 750=0.48%
Run status group 0 (all jobs):
  WRITE: io=791552KB, aggrb=78753KB/s, minb=12310KB/s, maxb=26603KB/s, mint=10048msec, maxt=10051msec
Disk stats (read/write):
  xvda: ios=4/15635, merge=0/146469, ticks=927/1353853, in_queue=1355597, util=96.10%</pre><p>こんな結果になりました。ベンチマークの結果だけからみるとDiskのI/Oはかなり高いです。比較としてLinodeを出してますが、AWSと比較してもかなり差のある内容になってます。<br
/> ただ、惜しむらくはCPUとメモリのバランスが悪く、コア数が1個からスタートとなってる関係でおなじさくらのサービスのVPSとのスコア差があまりないことです。比較対象としてさくらのVPSの1GプランでのUbuntu10.04.03で取ったUnixBenchを以下に掲げます。コア単体で見ると差があるのですが、さくらのVPSの1Gプランではコア数が2個あるので、あまり差がなくなっているという実例です。</p><pre class="brush: plain; title: ; notranslate">========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)
   System: www1265ua: GNU/Linux
   OS: GNU/Linux -- 2.6.32-35-server -- #78-Ubuntu SMP Tue Oct 11 16:26:12 UTC 2011
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap=&quot;UTF-8&quot;, collate=&quot;UTF-8&quot;)
   CPU 0: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz (5320.2 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz (5320.2 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   07:06:58 up 4 min,  1 user,  load average: 0.19, 0.08, 0.02; runlevel 2
------------------------------------------------------------------------
Benchmark Run: Wed Nov 16 2011 07:06:58 - 07:35:06
2 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables       22323202.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2914.1 MWIPS (9.3 s, 7 samples)
Execl Throughput                               2799.8 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        690055.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          176939.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1321715.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1555110.2 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 225403.2 lps   (10.0 s, 7 samples)
Process Creation                               3744.4 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3602.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    768.7 lpm   (60.1 s, 2 samples)
System Call Overhead                        2898149.9 lps   (10.0 s, 7 samples)
System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   22323202.2   1912.9
Double-Precision Whetstone                       55.0       2914.1    529.8
Execl Throughput                                 43.0       2799.8    651.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     690055.3   1742.6
File Copy 256 bufsize 500 maxblocks            1655.0     176939.9   1069.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1321715.3   2278.8
Pipe Throughput                               12440.0    1555110.2   1250.1
Pipe-based Context Switching                   4000.0     225403.2    563.5
Process Creation                                126.0       3744.4    297.2
Shell Scripts (1 concurrent)                     42.4       3602.4    849.6
Shell Scripts (8 concurrent)                      6.0        768.7   1281.2
System Call Overhead                          15000.0    2898149.9   1932.1
                                                                   ========
System Benchmarks Index Score                                        1017.6
------------------------------------------------------------------------
Benchmark Run: Wed Nov 16 2011 07:35:06 - 08:03:26
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables       37531494.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     5377.5 MWIPS (9.5 s, 7 samples)
Execl Throughput                               4728.0 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        627224.0 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          168733.3 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1619935.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2224671.7 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 397639.7 lps   (10.0 s, 7 samples)
Process Creation                              15574.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6185.0 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    885.9 lpm   (60.1 s, 2 samples)
System Call Overhead                        4321788.1 lps   (10.0 s, 7 samples)
System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   37531494.7   3216.1
Double-Precision Whetstone                       55.0       5377.5    977.7
Execl Throughput                                 43.0       4728.0   1099.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     627224.0   1583.9
File Copy 256 bufsize 500 maxblocks            1655.0     168733.3   1019.5
File Copy 4096 bufsize 8000 maxblocks          5800.0    1619935.4   2793.0
Pipe Throughput                               12440.0    2224671.7   1788.3
Pipe-based Context Switching                   4000.0     397639.7    994.1
Process Creation                                126.0      15574.1   1236.0
Shell Scripts (1 concurrent)                     42.4       6185.0   1458.7
Shell Scripts (8 concurrent)                      6.0        885.9   1476.5
System Call Overhead                          15000.0    4321788.1   2881.2
                                                                   ========
System Benchmarks Index Score                                        1563.0</pre><p>ちなみにこのさくらのVPSの1GプランではDiskが2つに別れて提供されているため、LVMで1つにまとめているので、LVMを使わない設定でインストールするとまた数字が変わるかもしれません</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/11/16/benchmark-of-sakura-cloud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/11/16/benchmark-of-sakura-cloud/" /> </item> <item><title>node.js + express + haml install on ubuntu 10.10</title><link>http://blog.netblue.jp/2011/02/27/node-js-express-haml-install-on-ubuntu-10-10/</link> <comments>http://blog.netblue.jp/2011/02/27/node-js-express-haml-install-on-ubuntu-10-10/#comments</comments> <pubDate>Sun, 27 Feb 2011 08:26:40 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[node.js]]></category> <category><![CDATA[Ubuntu]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=424</guid> <description><![CDATA[少し出遅れてる感バリバリですが、node.jsをUbuntu 10.10@さくらVPSに入れてみた。 node.jsのWebフレームワークのexpressとテンプレート言語hamlで構成してみた。 hamlを選んだ理由は [...]]]></description> <content:encoded><![CDATA[<p>少し出遅れてる感バリバリですが、node.jsをUbuntu 10.10@さくらVPSに入れてみた。<br
/> node.jsのWebフレームワークのexpressとテンプレート言語hamlで構成してみた。<br
/> hamlを選んだ理由は慣れてるから。というそれだけです。</p><p>まず必要なもののチェック。<br
/> 公式によると python 2.4以上とlibssl-devが必要とのことなので、それぞれをチェック。<br
/> まず、Python</p><pre class="brush: plain; title: ; notranslate">$ python --version
2.6.6</pre><p>OK</p><p>次にlibssl-dev。これは入れてなかったら sudo apt-get install libssl-dev で入れます。</p><pre class="brush: plain; title: ; notranslate">$ dpkg -l libssl-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libssl-dev     0.9.8o-1ubuntu SSL development libraries, header files and </pre><p>ではインストール。<br
/> 他の環境を汚染したく無いのもあって、/opt/nodejs 以下にインストールすることにしたので、適宜読み替えて下さい。</p><pre class="brush: plain; title: ; notranslate">$ wget http://nodejs.org/dist/node-v0.4.1.tar.gz
$ tar -zxf node-v0.4.1.tar.gz
$ cd node-v0.4.1
$ ./configure --prefix=/opt/nodejs
$ make
$ sudo make install </pre><p>インストールが終わったので、prefixとして指定した /opt/nodejs/bin を環境変数PATHに設定</p><pre class="brush: plain; title: ; notranslate">$ export PATH=/opt/nodejs/bin:$PATH </pre><p>パッケージマネージャのnpmをインストール。<br
/> ※ sudo のみだと環境変数の受け継ぎが出来ないので -i を忘れずに。</p><pre class="brush: plain; title: ; notranslate">$ curl http://npmjs.org/install.sh | sudo -i sh </pre><p>次は express とhaml だけど、npmで入れるときにはhamlではなくてhamljsと<a
href="https://github.com/visionmedia/haml.js">公式</a>に書いてあるので、その通りに。</p><pre class="brush: plain; title: ; notranslate">$ sudo -i npm install express hamljs </pre><p>以上でインストールは終了。</p><p>次はすごく簡単なサンプルの作成。<br
/> まずサンプル用のディレクトリの作成して、ディレクトリ移動。</p><pre class="brush: plain; title: ; notranslate">$ mkdir -p hello/views
$ cd hello</pre><p>そして以下のコードを hello.js として作成。</p><pre class="brush: plain; title: ; notranslate">var express = require('express');
var app     = express.createServer();
app.get('/', function(req, res) {
    res.render('index.hamljs', {
        layout: false
    });
});
app.listen(3000);
console.log('running at port 3000');</pre><p>次はviewテンプレート。views/index.hamljs として作成。</p><pre class="brush: plain; title: ; notranslate">%html
  %head
    %title hello node.js!
  %body
    %hello
      hello node.js</pre><p>作成後保存したら、そのままのディレクトリで</p><pre class="brush: plain; title: ; notranslate"> $ node hello.js </pre><p>とすることで<br
/> hello node.js<br
/> とだけ書かれたものが表示されるはず。</p><p>後、viewテンプレートの拡張子が .hamljs というものになってるけど、それを .haml にしたい場合は以下のコードを hello.js の2行目に追加すればいい。</p><pre class="brush: plain; title: ; notranslate">app.register('.haml', require('hamljs'));</pre>]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/02/27/node-js-express-haml-install-on-ubuntu-10-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/02/27/node-js-express-haml-install-on-ubuntu-10-10/" /> </item> <item><title>github service hooks on lingr</title><link>http://blog.netblue.jp/2011/02/25/github-service-hooks-on-lingr/</link> <comments>http://blog.netblue.jp/2011/02/25/github-service-hooks-on-lingr/#comments</comments> <pubDate>Fri, 25 Feb 2011 04:59:48 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[github]]></category> <category><![CDATA[Lingr]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=415</guid> <description><![CDATA[Webチャットの Lingr で github の service hooks を使って post push 出来るようになったのでそのまとめ。 前提条件として、チャットルームのオーナーに作業してもらう必要があるのと、対 [...]]]></description> <content:encoded><![CDATA[<p>Webチャットの <a
href="http://lingr.com">Lingr</a> で github の service hooks を使って post push 出来るようになったのでそのまとめ。<br
/> 前提条件として、チャットルームのオーナーに作業してもらう必要があるのと、対象の github の Repository の admin ページへのアクセス権がある事が必要となります。</p><p>それでは以下方法。</p><p>1．チャットルームオーナーに github という bot を召喚してもらう<br
/> 　http://lingr.com/room/[Room ID]/manage/github で &#8216;invite now!&#8217; をクリック<br
/> 　※ チャットルーム一覧の detail → manage → github でも飛べます。</p><p>2．github の Repository の admin ページで Post-Receive URL を追加<br
/> 　https://github.com/[User ID]/[Repository ID]/admin で<br
/> 　 Service Hooks → Post-Receive URLs をクリック<br
/> 　URLに http://lingr.heroku.com/github/[Room ID] を追加して &#8216;Update Settings&#8217;<br
/> <a
href="http://blog.netblue.jp/uploads/2011/02/aabfc08507f3d9f3f3c96f3d51a220aa.jpg" class="thickbox no_icon" rel="gallery-415" title=""><img
src="http://blog.netblue.jp/uploads/2011/02/aabfc08507f3d9f3f3c96f3d51a220aa.jpg" alt="" title="スクリーンショット（2011-02-25 13.56.58）" width="500" height="104" class="aligncenter size-full wp-image-419" /></a><br
/> 　他の部屋にも追加したい場合には、適宜RoomIDを変更したURLを追加していくことで対応可能なようです。</p><p>この設定を行う事で対象の Repository に変化があった場合には、召喚した github の bot が変更点を発言するようになります。</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/02/25/github-service-hooks-on-lingr/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/02/25/github-service-hooks-on-lingr/" /> </item> <item><title>share link added.</title><link>http://blog.netblue.jp/2011/02/21/share-link-added/</link> <comments>http://blog.netblue.jp/2011/02/21/share-link-added/#comments</comments> <pubDate>Mon, 21 Feb 2011 12:24:59 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[Uncategorized]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=413</guid> <description><![CDATA[ご多分にもれずというかやっとというか、Tweetするリンク、はてブするリンク、イイネするリンクを加えてみた。 若干見栄えが変かもしれないけれど、そこは追々頑張る方向でw 後他に何か書くことがあったと思ったんだけど、忘れた [...]]]></description> <content:encoded><![CDATA[<p>ご多分にもれずというかやっとというか、Tweetするリンク、はてブするリンク、イイネするリンクを加えてみた。<br
/> 若干見栄えが変かもしれないけれど、そこは追々頑張る方向でw</p><p>後他に何か書くことがあったと思ったんだけど、忘れたのでまたの機会に・・・</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/02/21/share-link-added/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/02/21/share-link-added/" /> </item> <item><title>PlayOnMac</title><link>http://blog.netblue.jp/2011/02/01/playonmac/</link> <comments>http://blog.netblue.jp/2011/02/01/playonmac/#comments</comments> <pubDate>Mon, 31 Jan 2011 20:29:05 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Wine]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=407</guid> <description><![CDATA[PlayOnMac という Windowsエミュレーターで遊んでたので、その記録。 以前、PlayOnMacの記事が、Macの手書き説明書でPlayOnMacの記事を見たときに使ってみたのだけど、ゲーム系が動かなかったの [...]]]></description> <content:encoded><![CDATA[<p>PlayOnMac という Windowsエミュレーターで遊んでたので、その記録。</p><p>以前、PlayOnMacの記事が、Macの手書き説明書で<a
href="http://veadardiary.blog29.fc2.com/blog-entry-3061.html">PlayOnMacの記事</a>を見たときに<a
href="http://plixi.com/p/60180684">使ってみた</a>のだけど、ゲーム系が動かなかったので諦めていた。<br
/> だけど、今回間違って起動したときに、バージョンアップしたのを機会に動かしてみて、ゲーム系が少し動くようになっていたので、記録しておく。</p><p>バージョンを上げると、PlayOnMacが2.4.4になっていたのと同時に、X11環境のXQuartzも上がっていて、2.6.0がインストールされた。<br
/> これは良いのだけど、以前はWineの環境設定のダイアログも、Macの手書き説明書の方法で日本語で表示できていた（はず）のが、今回のバージョンアップで表示されていなかったので、検索したところ。</p><pre class="brush: plain; title: ; notranslate">/Applications/PlayOnMac.app/Contents/Resources/playonlinux/bin/wine-1.2/share/wine/fonts</pre><p>に日本語フォントを入れる事で表示できるようになるようだ。</p><p>よって、今回は<a
href="http://ossipedia.ipa.go.jp/ipafont/index.html">IPAフォント</a>を↑のフォルダと</p><pre class="brush: plain; title: ; notranslate">~/Library/PlayOnMac/fonts</pre><p>の2箇所に入れた事になる。<br
/> 一応コレで日本語表示は問題無くなったが、一部のゲームでフラッシュ系表示が遅いカーテンのように表示されるので、そこをなんとかしたいところ。</p><p>参考：<br
/> <a
href="http://gcouan.sakura.ne.jp/2010/12/06/%E4%BA%BA%E6%9F%B1playonmac%E3%81%AE%E5%8B%95%E4%BD%9C%E5%A0%B1%E5%91%8A%E3%80%82/">[人柱]PlayOnMacの動作報告。</a></p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/02/01/playonmac/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/02/01/playonmac/" /> </item> <item><title>Macfusion for Snowleopard 64bit</title><link>http://blog.netblue.jp/2011/02/01/macfusion-for-snowleopard-64bit/</link> <comments>http://blog.netblue.jp/2011/02/01/macfusion-for-snowleopard-64bit/#comments</comments> <pubDate>Mon, 31 Jan 2011 20:03:34 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[MacFUSE]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=400</guid> <description><![CDATA[不安定っていう話題が多くて、敬遠していたMacfusion を試してみたので、その記録。 最初知らずに、http://code.google.com/p/macfuse/からダウンロードして、動かそうとしていたのだけど、 [...]]]></description> <content:encoded><![CDATA[<p>不安定っていう話題が多くて、敬遠していた<a
href="http://macfusionapp.org/">Macfusion</a> を試してみたので、その記録。</p><p>最初知らずに、<a
href="http://code.google.com/p/macfuse/">http://code.google.com/p/macfuse/</a>からダウンロードして、動かそうとしていたのだけど、何故か動かない。<br
/> 「fusefs.kext link error」とか言われる。<br
/> ぐぐってみると、現行の公開バージョンは64bitに対応してないらしい。</p><p>そこで、さらにぐぐった結果、<br
/> <a
href="http://caurea.org/2009/09/15/unofficial-macfuse-release-for-64bit-kernels/">Unofficial MacFUSE release for 64bit kernels</a>を見つけて、MacFUSE-2.1.7.dmgをダウンロード、インストールした。<br
/> （最新は2.1.9という数字を見つけるのだけど、ダウンロード出来る場所が見当たらない。2.1.7のこの非公式版は、50GB以上のような大きなサイズで、カーネルパニックを起こすようだが、そのサイズは扱う事はないので、ひとまずこのバージョンで利用することにした）<br
/> これでやっと、 Macfusion から <a
href="http://www.linode.com/">Linode</a> にある自鯖に sshfs で mount することが出来るようになった。<br
/> しかし、未だに64bit完全対応終わってないというのも、ちょっと不安。</p><p>実行イメージは↓の図のような感じ。<br
/><div
id="attachment_401" class="wp-caption aligncenter" style="width: 580px"><a
href="http://blog.netblue.jp/uploads/2011/02/95215ca3eb73a7f1d0ee510b2468d2c0.jpg" class="thickbox no_icon" rel="gallery-400" title="Macfusion"><img
src="http://blog.netblue.jp/uploads/2011/02/95215ca3eb73a7f1d0ee510b2468d2c0.jpg" alt="Macfusion" title="スクリーンショット（2011-02-01 4.48.30）" width="570" height="223" class="size-full wp-image-401" /></a><p
class="wp-caption-text">Macfusion</p></div></p><p>mount が成功すると Finder から通常のファイルと同様に扱う事が出来るようになるので、便利。<br
/> mount point は /Volumes 以下に作成されるが、Finder のサイドバーには自動で表示されないので、注意。<br
/> デバイス一覧の最上位 ( Cmd+Shift+G 押下後、 / を入力する事で表示される位置 ) に、表示される。</p><p>参考情報：<br
/> <a
href="http://macwiki.sourceforge.jp/wiki/index.php/MacFUSE">http://macwiki.sourceforge.jp/wiki/index.php/MacFUSE</a></p><p><strong>2011-02-19 UPDATE:</strong><br
/> タイミングが悪かったのか以前は見れなかったのだけど、Unofficial扱いの 2.1.9があった。<br
/> <a
href="http://www.offthehill.org/articles/2010/12/31/macfuse-for-64-bit-snow-leopard/">MacFUSE for 64-bit Snow Leopard</a></p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/02/01/macfusion-for-snowleopard-64bit/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/02/01/macfusion-for-snowleopard-64bit/" /> </item> <item><title>Lingr Hat app font-size customize</title><link>http://blog.netblue.jp/2011/01/28/lingr-hat-app-font-size-customize/</link> <comments>http://blog.netblue.jp/2011/01/28/lingr-hat-app-font-size-customize/#comments</comments> <pubDate>Thu, 27 Jan 2011 17:27:45 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[Lingr]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=396</guid> <description><![CDATA[LingrというWebチャットルームのアプリで、LingrHatというアプリの開発をdrikinさんが進めているのですが、フォントサイズが小さめなので、フォントサイズを修正するというとても簡単なライフハック。 Lingr [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://lingr.com">Lingr</a>というWebチャットルームのアプリで、LingrHatというアプリの開発を<a
href="http://blog.drikin.com/">drikin</a>さんが進めているのですが、フォントサイズが小さめなので、フォントサイズを修正するというとても簡単なライフハック。</p><p>LingrHatのダウンロードはこちらから：<br
/> <a
href="http://dl.dropbox.com/u/1025/lingrhat/Lingr%20Hat.zip">http://dl.dropbox.com/u/1025/lingrhat/Lingr%20Hat.zip</a> （2011/01/28現在）</p><p>ダウンロードが終わり一度実行した後、次のコードをコピーしてターミナルで実行してください。<br
/> <script src="https://gist.github.com/798776.js"></script><br
/> 実行中、LingrHatが起動していた場合には、再起動することで反映できるはずです。</p><p>中を見てもらえればす分かるとおもいますが、Webkitでcssを反映させてるだけなので、他の属性を追加修正することで、色々なカスタマイズが出来ると思います。</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2011/01/28/lingr-hat-app-font-size-customize/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2011/01/28/lingr-hat-app-font-size-customize/" /> </item> <item><title>unicorn on nginx</title><link>http://blog.netblue.jp/2010/12/14/unicorn-on-nginx/</link> <comments>http://blog.netblue.jp/2010/12/14/unicorn-on-nginx/#comments</comments> <pubDate>Mon, 13 Dec 2010 17:43:26 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[unicorn]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=387</guid> <description><![CDATA[少し前からSinatra用のWebサーバとしてthinを使ってたのだけど、logの吐き出し方や設定方法が面倒だと感じてきたので、unicornに移行してみた。 unicornの利点として以下があるようだ。 マルチプロセス [...]]]></description> <content:encoded><![CDATA[<p>少し前からSinatra用のWebサーバとしてthinを使ってたのだけど、logの吐き出し方や設定方法が面倒だと感じてきたので、unicornに移行してみた。</p><p>unicornの利点として以下があるようだ。</p><ul><li>マルチプロセスによるクラスターモデルではなく、Master-Slaveモデルのfork</li><li>利用メモリが少ない</li><li>デプロイが早い</li><li>thinと違って単一のログファイルに吐き出される</li></ul><p>個人的に最後のログファイルの件が一番ありがたい。</p><p>さてインストールから</p><pre class="brush: plain; title: ; notranslate"># gem install unicorn</pre><p>Rails用に unicorn_railsも一緒に入るが、今回はSinatra用なので使わない。<br
/> 設定ファイルは以下のような感じにした。after_forkで実効ユーザIDを設定しなおすようにしている。<br
/> Rails用はpre_fork,after_forkで追加が必要。詳しくは<a
href="http://unicorn.bogomips.org/examples/unicorn.conf.rb">ここ</a></p><p>次に設定ファイル unicorn.conf</p><pre class="brush: plain; title: ; notranslate">worker_processes 2
working_directory &quot;/var/www/default&quot;
timeout 30
listen &quot;/tmp/unicorn.socket&quot;, :backlog =&gt; 64
pid &quot;logs/unicorn.pid&quot;
stderr_path &quot;logs/unicorn.log&quot;
stdout_path &quot;logs/unicorn.log&quot;
after_fork do |server,worker|
    worker.user('www-data', 'www-data') if Process.euid == 0
end
</pre><p>このunicorn.confを使って、以下のように起動。</p><pre class="brush: plain; title: ; notranslate"># unicorn -c unicorn.conf -D</pre><p>これでMasterが起動し、設定ファイルに書いておいたサーバ数だけforkされる。</p><p>nginx.confの該当部分は以下のように書いた。</p><pre class="brush: plain; title: ; notranslate">server {
    listen   80;
    server_name  _;
    access_log  /var/log/nginx/access.log;
    root   /var/www/default/public;
    location / {
        try_files  $uri $uri/index.html @unicorn;
    }
    location @unicorn {
        proxy_pass http://unicorn;
    }
}
upstream unicorn {
    server unix:/tmp/unicorn.socket;
}</pre><p>サーバの再起動などは以下のように kill コマンドで行う。詳しくは<a
href="http://unicorn.bogomips.org/SIGNALS.html">ここ</a><br
/> 再起動 kill -HUP &#8216;masterのpid&#8217;<br
/> 停止 kill -KILL &#8216;masterのpid’</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2010/12/14/unicorn-on-nginx/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2010/12/14/unicorn-on-nginx/" /> </item> <item><title>linode vps vs sakura vps</title><link>http://blog.netblue.jp/2010/12/09/linode-vps-vs-sakura-vps/</link> <comments>http://blog.netblue.jp/2010/12/09/linode-vps-vs-sakura-vps/#comments</comments> <pubDate>Thu, 09 Dec 2010 14:26:11 +0000</pubDate> <dc:creator>d6rkaiz</dc:creator> <category><![CDATA[コンピュータ・IT]]></category> <category><![CDATA[linode]]></category> <category><![CDATA[sakura]]></category> <category><![CDATA[vps]]></category> <guid
isPermaLink="false">http://blog.netblue.jp/?p=373</guid> <description><![CDATA[はじめに さくらVPSを使ってしばらく経ったので、自分が使っているVPSの比較を行ってみた。 OpenVZ使ってる所や初期費用有りや半年料金前払いは問題外なので、比較はしたのはさくらとlinode。 さくらvpsが512 [...]]]></description> <content:encoded><![CDATA[<h3>はじめに</h3><p>さくらVPSを使ってしばらく経ったので、自分が使っているVPSの比較を行ってみた。<br
/> OpenVZ使ってる所や初期費用有りや半年料金前払いは問題外なので、比較はしたのはさくらとlinode。</p><p>さくらvpsが512Mしかないので、linodeでは同じメモリ512Mで提供されているLinode 512で比較。</p><h3>round 1　料金</h3><p>さくら　月額 980円<br
/> linode　月額 $19.95 = 85円換算で1695円</p><p>但し、さくらの方は2ヶ月分前払いで、3ヶ月目に1ヶ月目の申し込み日からの料金を日割りで精算する形。<br
/> Linodeは支払い時点で日払いで支払い（但し25日頃以降の場合は2ヶ月分）</p><p>例) 15日頃に申し込んだ場合<br
/> さくらは先に1960円を支払い、翌月月末までの請求が490円。<br
/> Linodeは$9.97を支払い、翌月1日に$19.95。</p><h3>round 2　サポートOS</h3><dl><dt>さくら</dt><dd>CentOS:5, Ubuntu:10.04LTSのみ, FreeBSD:8.1, Debian:5.0, Fedora:13</dd><dt>linode</dt><dd>CentOS:5, Ubuntu:8.04以降全て, ArchLinux, Debian:4.0,5.0, Fedora:13,14, Slackware:12.2,13.1, OpenSUSE:11.0, Gentoo</dd></dl><p>さくらは新規ではCentOS固定、Linodeでは新規時から選択可能。</p><h3>round 3　回線関係</h3><p>ping値<br
/> さくら 平均4ms<br
/> linode 平均122ms</p><p>月間転送量制限<br
/> さくら　無し（但し1時間辺りの転送量制限などはある模様）<br
/> linode 200GB</p><p>これはさくら圧勝ですね・・・</p><h3>round 4　リモートコンソール</h3><dl><dt>さくら</dt><dd>vnc/シリアルでアクセス可能。またブラウザからもアクセス可能</dd><dt>linode</dt><dd>LISH（linode shell)にて提供。Webベースでのコンソールも利用で、sshでのアクセスも可能</dd></dl><h3>round 5　RDNS</h3><dl><dt>さくら</dt><dd>提供無し（田中社長が提供予定とTwitterで発言）</dd><dt>linode</dt><dd>予めDNSで正引きを設定しておいてから、コンパネで設定。（正引きが設定されていない場合はエラーとなる）</dd></dl><h3>round 6　DNS管理</h3><dl><dt>さくら</dt><dd>提供有り（但し条件付き：他社からの移管では使えない場合あり、またゾーン数にも制限有り）</dd><dt>linode</dt><dd>無料提供（制限無し）</dd></dl><h3>round 7　コンパネのセキュリティ</h3><dl><dt>さくら</dt><dd>ID＆Passでの認証のみ</dd><dt>linode</dt><dd>ホワイトリストを設定することで、普段接続しているIP以外からのアクセスの場合には、メール認証が可能。linodeから送られてきたメールのURLをクリックして認証しない限りコンパネにアクセス出来ない。</dd></dl><h3>round 8　API</h3><dl><dt>さくら</dt><dd>提供無し</dd><dt>linode</dt><dd>DNS、サーバ再起動などへAPIにてアクセス可能（DNSサブドメイン作成や削除、ディスクサイズ変更、環境構築の自動化のためのスクリプトなど） <a
href="http://www.linode.com/api/">http://www.linode.com/api/</a> またiPhoneアプリが提供されていて、常時サーバのステータスを確認可能。</dd></dl><h3>round 9　OSインストール</h3><dl><dt>さくら</dt><dd>ブラウザでVNCコンソール起動により普通のインストーラが起動され、IPアドレス入力など質問に答えていくという普通のインストール。インストールが終了したらコンソールなどからアクセス。</dd><dt>Linode</dt><dd>sshのみがインストールされているOSイメージが提供されていて、それがコピーされる。コピーされた後はrootでアクセスし適宜設定していく。全OS共通。IPアドレスなどはDHCPが提供されているので、インストール時に入力する必要は無い。（後で自分で固定設定に変更すれば良い）</dd></dl><p>個人的にはシステム復旧等の際にも同じ質問を答えていく事になるので、linodeの形の方が望ましいと思う。ubuntuの場合は管理作業はsudoで行うという思想からかけ離れる事になるけれど。<br
/> VNCコンソールはJavaで提供されている点もあり起動が遅いという欠点もある。</p><h3>後余談として</h3><p>国内で提供されているVPSでは、最初に書いたような理由で事実上さくらしか選択肢がないので、頑張ってほしいのだが、さくらVPSは512Mしか提供されておらず、IPアドレスの追加、RAMの追加、Diskの追加を行う事もできない。二つ以上借りた場合にIPアドレスの交換も出来ないし、ローカルIPの提供も無いようだ。<br
/> 回線速度は国内最強の部類で、転送量制限も無い強みがあるが、料金を除けばそれ位しか無いとも言える。<br
/> またUbuntuの10．10の提供は無いそうで、サーバを構築しようとするときに、毎回毎回Grubの設定を変更してネットブートイメージをダウンロードして、Grubからインストーラ起動とかやってられない。Ubuntuをメインとして考えた場合に、開発用途として使えないので画像イメージの提供サーバ位しか利用用途が見いだせない。<br
/> 980円という価格は魅力的だが、使いにくいコンパネやDNSの逆引きなどへの対応の遅さなども考えると、提供したサービスの拡充にもう少し努めて欲しいと思う。</p><h3>まとめ</h3><p>さくらVPSはもっと頑張ってほしい。以上。</p> ]]></content:encoded> <wfw:commentRss>http://blog.netblue.jp/2010/12/09/linode-vps-vs-sakura-vps/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.netblue.jp/2010/12/09/linode-vps-vs-sakura-vps/" /> </item> </channel> </rss>
<!-- Dynamic page generated in 0.419 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-23 02:50:20 -->

