backend systems:
- c3.2xlarge - EBS optimized and Enhanced Networking enabled
- DRBD backing volume: 80 GB SSD (ec2 ephemeral storage /dev/xvdb)
- RHEL 6.6 HVM official image with updates as of 12/15/2014
- DRBD 8.4.5-2 from elrepo
pgbenchin
[root@ip-rh-backend1 ~]# uname -a
Linux ip-rh-backend1.rhel.aws 2.6.32-504.1.3.el6.x86_64 #1 SMP Fri Oct 31 11:37:10 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@ip-rh-backend1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
[root@ip-rh-backend1 ~]# ethtool eth0
Settings for eth0:
Supported ports: [ ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10000Mb/s
Duplex: Full
Port: Other
PHYAD: 0
Transceiver: Unknown!
Auto-negotiation: off
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
[root@ip-rh-backend1 ~]# ethtool -i eth0
driver: ixgbevf
version: 2.12.1-k
firmware-version:
bus-info: 0000:00:03.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
eth0 Link encap:Ethernet HWaddr 0A:CB:7A:AB:D0:A7
inet addr:33.33.33.223 Bcast:33.33.33.255 Mask:255.255.255.0
inet6 addr: fe80::8cb:7aff:feab:d0a7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1
RX packets:93657727 errors:0 dropped:0 overruns:0 frame:0
TX packets:94473196 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23860467235 (22.2 GiB)
[root@ip-rh-backend1 ~]# sudo -u opscode-pgsql /opt/opscode/embedded/bin/pgbench -c4 -C -s 100 -t 10000
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 4
number of threads: 1
number of transactions per client: 10000
number of transactions actually processed: 40000/40000
tps = 270.641451 (including connections establishing)
tps = 510.023661 (excluding connections establishing)
change to deadline:
[root@ip-rh-backend1 ~]# sudo -u opscode-pgsql /opt/opscode/embedded/bin/pgbench -c4 -C -s 100 -t 10000
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 4
number of threads: 1
number of transactions per client: 10000
number of transactions actually processed: 40000/40000
tps = 271.118580 (including connections establishing)
tps = 512.504639 (excluding connections establishing)
drbd tuning settings:
in: /var/opt/opscode/drbd/etc/pc0.res
net {
max-buffers 8000;
max-epoch-size 8000;
sndbuf-size 512k;
}
disk {
disk-barrier no;
disk-flushes no;
al-extents 3389;
}
then:
[root@ip-rh-backend1 ~]# sudo -u opscode-pgsql /opt/opscode/embedded/bin/pgbench -c4 -C -s 100 -t 10000
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 4
number of threads: 1
number of transactions per client: 10000
number of transactions actually processed: 40000/40000
tps = 268.101503 (including connections establishing)
tps = 505.494709 (excluding connections establishing)
[root@ip-rh-backend1 data]# dd if=/dev/zero of=testfile bs=1M count=10240
10240+0 records in
10240+0 records out
10737418240 bytes (11 GB) copied, 94.9498 s, 113 MB/s
disabling hugepages
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
[root@ip-rh-backend1 ~]# sudo -u opscode-pgsql /opt/opscode/embedded/bin/pgbench -c4 -C -s 100 -t 10000
Scale option ignored, using pgbench_branches table count = 1
starting vacuum...end.
transaction type: TPC-B (sort of)
scaling factor: 1
query mode: simple
number of clients: 4
number of threads: 1
number of transactions per client: 10000
number of transactions actually processed: 40000/40000
tps = 269.929699 (including connections establishing)
tps = 511.336915 (excluding connections establishing)
bonnie
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
ip-rh-backen 29872M 667 98 94273 8 67016 8 3818 99 346505 19 3910 141
Latency 13003us 326ms 556ms 3005us 27354us 3267us
Version 1.96 ------Sequential Create------ --------Random Create--------
ip-rh-backend1.rhel -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 14497 59 +++++ +++ +++++ +++ 19990 82 +++++ +++ +++++ +++
Latency 113us 365us 412us 142us 27us 36us
1.96,1.96,ip-rh-backend1.rhel.aws,1,1419000518,29872M,,667,98,94273,8,67016,8,3818,99,346505,19,3910,141,16,,,,,14497,59,+++++,+++,+++++,+++,19990,82,+++++,+++,+++++,+++,13003us,326ms,556ms,3005us,27354us,3267us,113us,365us,412us,142us,27us,36us