On DigitalOcean, as you go up the plan, you get higher per-core price as well.
https://www.digitalocean.com/pricing
$5 1 core - $5/core
$10 1 core - $10/core
| E, [2013-04-22T15:04:52.652797 #8734] ERROR -- : listen loop error: closed stream (IOError) | |
| E, [2013-04-22T15:04:52.652852 #8734] ERROR -- : /usr/local/rvm/gems/ruby-2.0.0-p0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:652:in `select' | |
| E, [2013-04-22T15:04:52.652886 #8734] ERROR -- : /usr/local/rvm/gems/ruby-2.0.0-p0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:652:in `worker_loop' | |
| E, [2013-04-22T15:04:52.652918 #8734] ERROR -- : /usr/local/rvm/gems/ruby-2.0.0-p0/gems/newrelic_rpm-3.6.0.83/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `call' | |
| E, [2013-04-22T15:04:52.652950 #8734] ERROR -- : /usr/local/rvm/gems/ruby-2.0.0-p0/gems/newrelic_rpm-3.6.0.83/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb:22:in `block (4 levels) in <top (required)>' | |
| E, [2013-04-22T15:04:52.652981 #8734] ERROR -- : /usr/local/rvm/gems/ruby-2.0.0-p0/gems/unicorn-4.6.2/lib/unicorn/http_server.rb:500:in `spawn_missing_workers' | |
| E, [2013-04-22T15:04:52.653013 #8734] ERROR -- : /usr/local/rvm/gems/ruby |
On DigitalOcean, as you go up the plan, you get higher per-core price as well.
https://www.digitalocean.com/pricing
$5 1 core - $5/core
$10 1 core - $10/core
| # hdparm -tf /dev/xvda | |
| /dev/xvda: | |
| Timing buffered disk reads: 714 MB in 3.01 seconds = 237.55 MB/sec | |
| # bonnie++ -b -u root | |
| Version 1.96 ------Sequential Output------ --Sequential Input- --Random- | |
| Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- | |
| Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP |
| # hdparm -tf /dev/xvda | |
| /dev/xvda: | |
| Timing buffered disk reads: 638 MB in 3.03 seconds = 210.52 MB/sec | |
| # bonnie++ -b -u root | |
| Version 1.96 ------Sequential Output------ --Sequential Input- --Random- | |
| Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- | |
| Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP |
Here's a preliminary experiment to see how much memory is saved with the new copy-on-write friendly (bitmap marking) GC.
Calculated by memstats.rb https://gist.github.com/kenn/5105061 on Debian x86_64.
# ./memstats.rb 20547
| #!/usr/bin/env ruby | |
| #------------------------------------------------------------------------------ | |
| # Aggregate Print useful information from /proc/[pid]/smaps | |
| # | |
| # pss - Roughly the amount of memory that is "really" being used by the pid | |
| # swap - Amount of swap this process is currently using | |
| # | |
| # Reference: | |
| # http://www.mjmwired.net/kernel/Documentation/filesystems/proc.txt#361 |
| # hdparm -tf /dev/vda | |
| /dev/vda: | |
| Timing buffered disk reads: 2102 MB in 3.00 seconds = 700.08 MB/sec | |
| # bonnie++ -b -u root | |
| Version 1.96 ------Sequential Output------ --Sequential Input- --Random- | |
| Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- | |
| Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP |
| # hdparm -tf /dev/sda | |
| /dev/sda: | |
| Timing buffered disk reads: 1208 MB in 3.01 seconds = 401.59 MB/sec | |
| # bonnie++ -b -u root | |
| Version 1.96 ------Sequential Output------ --Sequential Input- --Random- | |
| Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- | |
| Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP |
| require 'securerandom' | |
| module Syllable | |
| CONSONANT = %w(b c d f g h j k l m n p qu r s t v w x z ch cr fr nd ng nk nt ph pr rd sh sl sp st th tr lt) | |
| VOWEL = %w(a e i o u y) | |
| def generate(size=2) | |
| "".tap do |result| | |
| (size * 2).times do |i| | |
| result << (i.even? ? CONSONANT[SecureRandom.random_number * CONSONANT.size] : VOWEL[SecureRandom.random_number * VOWEL.size]) |
| ======================================================================== | |
| BYTE UNIX Benchmarks (Version 5.1.2) | |
| System: konami-slot: GNU/Linux | |
| OS: GNU/Linux -- 2.6.32-5-amd64 -- #1 SMP Sun May 6 04:00:17 UTC 2012 | |
| Machine: x86_64 (unknown) | |
| Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") | |
| CPU 0: QEMU Virtual CPU version 1.0 (4000.0 bogomips) | |
| x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization | |
| CPU 1: QEMU Virtual CPU version 1.0 (4000.0 bogomips) |