wiki:TipAndDoc/service/sakura/vps

Spec

Bench on 2010/12/16

  • 使用開始から3ヶ月
  • Ubuntu 10.04.1 x64
  • uname -a
    Linux wwwXXXXu 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 10:14:11 UTC 2010 x86_64 GNU/Linux
    
  • uptime
     15:25:38 up 14 days, 18:32,  2 users,  load average: 0.15, 0.12, 0.09
    
  • free -tm
                 total       used       free     shared    buffers     cached
    Mem:           493        451         42          0          0         29
    -/+ buffers/cache:        422         71
    Swap:          895        184        711
    Total:        1389        636        753
    
  • df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              20G  5.5G   14G  29% /
    none                  243M  164K  243M   1% /dev
    none                  247M     0  247M   0% /dev/shm
    none                  247M   44K  247M   1% /var/run
    none                  247M     0  247M   0% /var/lock
    none                  247M     0  247M   0% /lib/init/rw
    
  • sudo hdparm -tT /dev/sda
    /dev/sda:
     Timing cached reads:   12276 MB in  2.00 seconds = 6143.08 MB/sec
     Timing buffered disk reads:  262 MB in  3.01 seconds =  87.14 MB/sec
    
  • wget http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu-releases/lucid/ubuntu-10.04.1-server-amd64.iso -O /dev/null
    --2010-12-16 15:33:37--  http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu-releases/lucid/ubuntu-10.04.1-server-amd64.iso
    Resolving ftp.tsukuba.wide.ad.jp... 203.178.132.77, 203.178.132.78, 203.178.132.79, ...
    Connecting to ftp.tsukuba.wide.ad.jp|203.178.132.77|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 715644928 (682M) [application/octet-stream]
    Saving to: `/dev/null'
    
    100%[======================================>] 715,644,928 15.5M/s   in 42s
    
    2010-12-16 15:34:19 (16.2 MB/s) - `/dev/null' saved [715644928/715644928]
    
  • wget http://ftp.riken.jp/Linux/ubuntu-iso/CDs/lucid/ubuntu-10.04.1-server-amd64.iso -O /dev/null
    --2010-12-16 15:35:49--  http://ftp.riken.jp/Linux/ubuntu-iso/CDs/lucid/ubuntu-10.04.1-server-amd64.iso
    Resolving ftp.riken.jp... 134.160.38.1
    Connecting to ftp.riken.jp|134.160.38.1|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 715644928 (682M) [application/octet-stream]
    Saving to: `/dev/null'
    
    100%[======================================>] 715,644,928 6.06M/s   in 1m 54s
    
    2010-12-16 15:37:43 (5.98 MB/s) - `/dev/null' saved [715644928/715644928]
    
  • wget http://ftp.iij.ad.jp/pub/linux/ubuntu/releases/lucid/ubuntu-10.04.1-server-amd64.iso -O /dev/null
    --2010-12-16 15:38:00--  http://ftp.iij.ad.jp/pub/linux/ubuntu/releases/lucid/ubuntu-10.04.1-server-amd64.iso
    Resolving ftp.iij.ad.jp... 202.232.140.141, 202.232.140.135, 202.232.140.136, ...
    Connecting to ftp.iij.ad.jp|202.232.140.141|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 715644928 (682M) [application/octet-stream]
    Saving to: `/dev/null'
    
    100%[======================================>] 715,644,928 51.8M/s   in 18s
    
    2010-12-16 15:38:18 (36.9 MB/s) - `/dev/null' saved [715644928/715644928]
    

Ubuntu lucid

hardware

  • $ lspci
    00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
    00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
    00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
    00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
    00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
    00:02.0 VGA compatible controller: Technical Corp. Device 1111
    00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
    
  • $ cat /proc/cpuinfo
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 15
    model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
    stepping        : 11
    cpu MHz         : 2660.040
    cache size      : 4096 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 10
    wp              : yes
    flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc rep_good pni ssse3 hypervisor lahf_lm
    bogomips        : 5320.08
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management:
    
    processor       : 1
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 15
    model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
    stepping        : 11
    cpu MHz         : 2660.040
    cache size      : 4096 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 10
    wp              : yes
    flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc rep_good pni ssse3 hypervisor lahf_lm
    bogomips        : 5320.08
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management:
    
  • $ grep Total /proc/meminfo
    MemTotal:         505748 kB
    SwapTotal:        917496 kB
    VmallocTotal:   34359738367 kB
    HugePages_Total:       0
    
  • $ grep ata1 /var/log/dmesg
    [    0.219177] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
    [    0.383066] ata1.01: NODEV after polling detection
    [    0.383422] ata1.00: ATA-7: QEMU HARDDISK, 0.12.3, max UDMA/100
    [    0.383425] ata1.00: 41943040 sectors, multi 16: LBA48
    [    0.383940] ata1.00: configured for MWDMA2
    
  • $ sudo ethtool eth0
    Settings for eth0:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: Yes
            Link partner advertised link modes:  Not reported
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: No
            Speed: 1000Mb/s
            Duplex: Full
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: internal
            Auto-negotiation: on
            MDI-X: Unknown
            Supports Wake-on: umbg
            Wake-on: d
            Current message level: 0x00000007 (7)
            Link detected: yes
    

df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              20G  647M   19G   4% /
none                  243M  160K  243M   1% /dev
none                  247M     0  247M   0% /dev/shm
none                  247M   32K  247M   1% /var/run
none                  247M     0  247M   0% /var/lock
none                  247M     0  247M   0% /lib/init/rw

sudo fdisk -lu /dev/sda

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000eff6a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    40105983    20051968   83  Linux
/dev/sda2        40105984    41940991      917504   82  Linux swap / Solaris

sudo hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   14280 MB in  2.00 seconds = 7147.01 MB/sec
 Timing buffered disk reads:  276 MB in  3.02 seconds =  91.41 MB/sec

CentOS 5.5

  • サービスイン直後

# lspci

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Technical Corp. Unknown device 1111
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)

# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 52:54:XX:XX:XX:XX
          inet addr:59.106.180.xyz  Bcast:59.106.181.255  Mask:255.255.254.0
          inet6 addr: fe80::5054:XX:XX:XX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:88422 (86.3 KiB)  TX bytes:12096 (11.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
59.106.180.0    *               255.255.254.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         59.106.180.1    0.0.0.0         UG    0      0        0 eth0

# cat /etc/resolv.conf

nameserver 210.188.224.10
nameserver 210.188.224.11
search sakura.ne.jp

# hostname

www5XYZu.sakura.ne.jp

# df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              18G  1.5G   15G  10% /
/dev/hda1              99M   12M   82M  13% /boot
tmpfs                 250M     0  250M   0% /dev/shm

# fdisk -lu /dev/hda

Disk /dev/hda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63      208844      104391   83  Linux
/dev/hda2          208845    37833074    18812115   83  Linux
/dev/hda3        37833075    41929649     2048287+  82  Linux swap / Solaris

# cat /proc/cpuinfo

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping        : 11
cpu MHz         : 2660.040
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips        : 5320.08
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping        : 11
cpu MHz         : 2660.040
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips        : 5280.22
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   20580 MB in  2.00 seconds = 10297.90 MB/sec
 Timing buffered disk reads:  266 MB in  3.02 seconds =  88.20 MB/sec

GRUB

CentOS 5.5

  • # cat /boot/grub/grub.conf
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /boot/, eg.
    #          root (hd0,0)
    #          kernel /vmlinuz-version ro root=/dev/vda2
    #          initrd /initrd-version.img
    #boot=/dev/vda
    default=0
    timeout=5
    #splashimage=(hd0,0)/grub/splash.xpm.gz
    serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
    terminal --timeout=10 serial console
    hiddenmenu
    title CentOS (2.6.18-194.8.1.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=/ console=tty0 console=ttyS0,115200n8r
            initrd /initrd-2.6.18-194.8.1.el5.img
    

2nd VPS (OSAKA location)

# lspci

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Technical Corp. Unknown device 1111
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)

# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 52:54:XX:XX:XX:XX
          inet addr:49.212.22.xyz  Bcast:49.212.23.255  Mask:255.255.254.0
          inet6 addr: fe80::5054:ff:fe02:7070/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:318 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24983 (24.3 KiB)  TX bytes:9557 (9.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
49.212.22.0     *               255.255.254.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         49.212.22.1     0.0.0.0         UG    0      0        0 eth0

# cat /etc/resolv.conf

nameserver 210.224.163.4
nameserver 210.224.163.3
search sakura.ne.jp

# hostname

www2xyz0u.sakura.ne.jp

# df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              17G  1.5G   15G  10% /
/dev/hda1              99M   12M   82M  13% /boot
tmpfs                 250M     0  250M   0% /dev/shm

# fdisk -lu /dev/hda

Disk /dev/hda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63      208844      104391   83  Linux
/dev/hda2          208845    37833074    18812115   83  Linux
/dev/hda3        37833075    41929649     2048287+  82  Linux swap / Solaris

# cat /proc/cpuinfo

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping        : 11
cpu MHz         : 2659.654
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips        : 5319.30
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping        : 11
cpu MHz         : 2659.654
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips        : 5316.71
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

# cat /proc/meminfo

MemTotal:       510532 kB
MemFree:        344024 kB
Buffers:         23240 kB
Cached:         116740 kB
SwapCached:          0 kB
Active:          20332 kB
Inactive:       126876 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       510532 kB
LowFree:        344024 kB
SwapTotal:     2048276 kB
SwapFree:      2048276 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:        7260 kB
Mapped:           6148 kB
Slab:            10232 kB
PageTables:       1080 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   2303540 kB
Committed_AS:    17440 kB
VmallocTotal: 34359738367 kB
VmallocUsed:      1292 kB
VmallocChunk: 34359736971 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   13512 MB in  2.00 seconds = 6762.77 MB/sec
 Timing buffered disk reads:  266 MB in  3.02 seconds =  88.20 MB/sec

tcp-segmentation-offload

  • プロトコル(http/ssh)に関係なく、特定の回線からさくらVPSへのアクセスが極端に低速になる
    • 少なくとも自宅のOCN回線からはまれに低速化した
  • D:\>wget http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    --2012-09-10 10:17:15--  http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    Resolving lab.mitty.jp... 59.106.180.123
    Connecting to lab.mitty.jp|59.106.180.123|:80... connected.
    HTTP request sent, awaiting response... 200 Ok
    Length: 34139 (33K) [text/html]
    Saving to: `memtest'
    
    15% [====>                                  ] 5,202       --.-K/s  eta 5m 1s   ^
    C
    
  • D:\>wget http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    --2012-09-10 10:18:56--  http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    Resolving lab.mitty.jp... 59.106.180.123
    Connecting to lab.mitty.jp|59.106.180.123|:80... connected.
    HTTP request sent, awaiting response... 200 Ok
    Length: 34139 (33K) [text/html]
    Saving to: `memtest'
    
     6% [=>                                     ] 2,374        725B/s  eta 96s     ^
    C
    

tcp-segmentation-offload: off

  • $ sudo ethtool -k eth0
    Offload parameters for eth0:
    rx-checksumming: on
    tx-checksumming: on
    scatter-gather: on
    tcp-segmentation-offload: on
    udp-fragmentation-offload: off
    generic-segmentation-offload: on
    generic-receive-offload: off
    large-receive-offload: off
    
  • $ sudo ethtool -K eth0 tso off
  • $ sudo ethtool -k eth0
    Offload parameters for eth0:
    rx-checksumming: on
    tx-checksumming: on
    scatter-gather: on
    tcp-segmentation-offload: off
    udp-fragmentation-offload: off
    generic-segmentation-offload: on
    generic-receive-offload: off
    large-receive-offload: off
    
  • D:\>wget http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    --2012-09-10 10:23:16--  http://lab.mitty.jp/trac/lab/wiki/TipAndDoc/Hardware/memtest
    Resolving lab.mitty.jp... 59.106.180.123
    Connecting to lab.mitty.jp|59.106.180.123|:80... connected.
    HTTP request sent, awaiting response... 200 Ok
    Length: 34139 (33K) [text/html]
    Saving to: `memtest'
    
    100%[======================================>] 34,139      --.-K/s   in 0.07s
    
    2012-09-10 10:23:16 (511 KB/s) - `memtest' saved [34139/34139]
    
Last modified 12 years ago Last modified on Sep 10, 2012 10:35:24 AM