Skip to content

Instantly share code, notes, and snippets.

# PipeTest - speed test for Elixir's basic binary processing
#
# Starts N clients connected by sockets. Each client reads from
# socket, computes checksum, and sends bytes to next client.
#
# Result: Elixir's binary matching is the bottleneck
#
# binary matching: slowest, 67Mb/s
# Enum reduce over bin_to_list: slow: 121Mb/sa
# crc32 bif: fastest 884Mb/s
# PipeTest - speed test for Elixir's basic binary processing
#
# Starts N clients connected by sockets. Each client reads from
# socket, computes checksum, and sends bytes to next client.
#
# Result: Elixir's binary matching is the bottleneck
#
# binary matching: slowest, 67Mb/sa
# Enum reduce over bin_to_list: slow: 121Mb/sa
# crc32 bif: fastest 884Mb/s
@noelbk
noelbk / gist:f6147e195ac62c735ee6
Created November 8, 2014 00:18
cobalt live-image test script
tenant_id=$(keystone tenant-get admin | awk '$2 == "id" { print $4 }')
nova quota-show --tenant $tenant_id
nova quota-update --instances 100 --force $tenant_id
nova quota-update --cores 400 --force $tenant_id
nova quota-update --ram 102400 --force $tenant_id
glance image-create --name=ubuntu --disk-format qcow2 --copy-from http://smurf.i.pistoncloud.com/vm-images/Demo-Image-Ubuntu-12.04.img
# test #1
image="Demo Image CirrOS 0.3.1 9"
in /usr/lib64/python2.7/site-packages/MySQLdb/connections.py, line 17:
def defaulterrorhandler(connection, cursor, errorclass, errorvalue):
"""
If cursor is not None, (errorclass, errorvalue) is appended to
cursor.messages; otherwise it is appended to
connection.messages. Then errorclass is raised with errorvalue as
the value.
CLUSTER=27
eval $(sed -n \
-e 's/^auth_uri\s*=\s*/OS_AUTH_URL=/p' \
-e 's/^identity_uri\s*=\s*/IDENTITY_URI=/p' \
-e 's/^admin_password\s*=\s*/OS_PASSWORD=/p' \
-e 's/^admin_tenant_name\s*=\s*/OS_TENANT_NAME=/p' \
-e 's/^admin_user\s*=\s*/OS_USERNAME=/p' \
/etc/neutron/neutron.conf)
export OS_TENANT_NAME OS_USERNAME OS_PASSWORD OS_AUTH_URL
/var/log/cmessages:2014-10-08 16:13:42.164 7958 TRACE neutron.service Traceback (most recent call last):
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 105, in serve_wsgi
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service service.start()
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 74, in start
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service self.wsgi_app = _run_wsgi(self.app_name)
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 173, in _run_wsgi
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service app = config.load_paste_app(app_name)
/var/log/cmessages-2014-10-08 16:13:42.164 7958 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/common/config.
Oct 6 17:20:37.459161 10.27.0.10 2014-10-06 17:20:37.457 5369 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-10-06 17:20:37.457 5369 TRACE neutron.service Traceback (most recent call last):
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 105, in serve_wsgi
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 74, in start
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 173, in _run_wsgi
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/common/config.py", line 170, in load_paste_app
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-10-06 17:20:37.457 5369 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/pas
Oct 6 16:39:27.305986 10.27.0.11 2014-10-06 16:39:27.305 8339 DEBUG neutron.api.extensions [-] Ext name: Loadbalancer Agent Scheduler _check_extension /usr/lib64/python2.7/site-packages/neutron/api/extensions.py:511
Oct 6 16:39:27.292619 10.27.0.9 2014-10-06 16:39:27.291 7615 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-10-06 16:39:27.291 7615 TRACE neutron.service Traceback (most recent call last):
2014-10-06 16:39:27.291 7615 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 105, in serve_wsgi
2014-10-06 16:39:27.291 7615 TRACE neutron.service service.start()
2014-10-06 16:39:27.291 7615 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 74, in start
2014-10-06 16:39:27.291 7615 TRACE neutron.service self.wsgi_app = _run_wsgi(self.app_name)
2014-10-06 16:39:27.291 7615 TRACE neutron.service File "/usr/lib64/python2.7/site-packages/neutron/service.py", line 173, in _run_wsgi
2014-
ip link add lxcveth0 type veth peer name lxcveth1
ip link set lxcveth0 up
ip addr add 10.27.6.101/32 peer 10.27.6.102/32 dev lxcveth0
tee /etc/lxc/u1.conf <<EOF
lxc.network.type = phys
lxc.network.link = lxcveth1
lxc.network.name = eth0
lxc.hook.start = /eth0-up
EOF
root@noel-m4800 / # emerge --ask --autounmask-write lxc
!!! CONFIG_PROTECT is empty
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
* Last emerge --sync was 60d 13h 2m 4s ago.
These are the packages that would be merged, in order: