Skip to content

Instantly share code, notes, and snippets.

View ipl31's full-sized avatar
🎯
Focusing

Ken Caruso ipl31

🎯
Focusing
View GitHub Profile
[21842.711624] INFO: task kvm:8138 blocked for more than 120 seconds.
[21842.719878] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[21842.730157] kvm D ffff8818361e4de0 0 8138 1 0x00000080
[21842.730163] ffff880baa3e1c18 0000000000000086 000000000000001b ffff88187fc93ec0
[21842.730169] ffff880baa3e1fd8 ffff880baa3e1fd8 ffff880baa3e1fd8 0000000000013ec0
[21842.730173] ffff880c3d5aae80 ffff880b6e2a8000 ffff880baa3e1c08 ffff881829d8c918
[21842.730178] Call Trace:
[21842.730191] [<ffffffff816f41c9>] schedule+0x29/0x70
[21842.730238] [<ffffffffa01dca77>] xlog_wait+0x67/0x90 [xfs]
[21842.730245] [<ffffffff81092050>] ? try_to_wake_up+0x200/0x200
BUG: soft lockup - CPU#1 stuck for 30s! [wget:2220]
[39108.799286] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat isofs ip_tables x_tables pcnet32 8139cp ne2k_pci 8390 e1000 acpiphp
[39108.799286] CPU 1
[39108.799286] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat isofs ip_tables x_tables pcnet32 8139cp ne2k_pci 8390 e1000 acpiphp
[39108.799286]
[39108.799286] Pid: 2220, comm: wget Not tainted 3.2.0-37-virtual #58-Ubuntu OpenStack Foundation OpenStack Nova
[39108.799286] RIP: 0010:[<ffffffff816562d9>] [<ffffffff816562d9>] _raw_spin_unlock_irqrestore+0x19/0x30
[39108.799286] RSP: 0018:ffff88000a803cf0 EFLAGS: 00000286
[39108.799286] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
[39108.799286] RDX: 0000000000000004 RSI: 0000000000000286 RDI: 0000000000000286
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-60-generic (buildd@toyol) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 (Ubuntu 3.2.0-60.91-generic 3.2.55)
[ 0.000000] Command line: reimage=192.168.100.5:25155/factory hosttype=CONTROLLER console=ttyS0,38400n8 console=tty0 elevator=deadline image_name=controller.img.gz root=/dev/sda1 syslog=192.168.100.5
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 0000000000099800 (usable)
@ipl31
ipl31 / gist:153730
Created July 23, 2009 23:28
maven2 settings.xml file to override "central" repo url
<settings>
<mirrors>
<mirror>
<id>Local raven mirror or proxy</id>
<name>corp</name>
<url>http://maven:8081/artifactory/repo</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
@ipl31
ipl31 / gist:153727
Created July 23, 2009 23:27
Maven2 settings.xml to override url for ALL repos
<settings>
<mirrors>
<mirror>
<id>Local raven mirror or proxy</id>
<name>corp</name>
<url>http://maven:8081/artifactory/repo</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
@ipl31
ipl31 / Gmetric_count_dir_listings
Created November 20, 2010 17:19
Ruby Gmetric example that counts dir listings and sends them to a ganglia cluster
#Simple ganglia gmetric plugin using the gmetric gem.
#Counts entries in a dir and reports them to the ganglia cluster using
#the gmetric ruby gem
require 'rubygems'
require 'gmetric'
#Tmax indicates freshness, if TN(seconds since metric was updated) exceeds tmax then ganglia will expect a new value
#Dmax indicates how long an old metric should be retained
#decsripitions taken from http://monami.sourceforge.net/tutorial/ar01s06.html
tmax = 60
@ipl31
ipl31 / yql.rb
Created January 23, 2011 19:45
quick and dirty ysql query function, returns json
def yql_query_json(query)
api_query = CGI.escape(query)
url = "http://query.yahooapis.com/v1/public/yql?q=#{api_query}&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env"
json_results = open(url) {|f| f.read}
results = JSON.parse(json_results)
end
@ipl31
ipl31 / gunicorn
Created December 5, 2011 07:57 — forked from suda/gunicorn
Gunicorn init.d script (debian/ubuntu)
#!/bin/sh
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon
@ipl31
ipl31 / supervisord.sh
Created December 5, 2011 08:01 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@ipl31
ipl31 / post.php
Created February 6, 2012 06:10
Simple php script to write http posts to a file for debugging
<?php $stamp = time();
$filename = '/tmp/post-'.$stamp.'.txt';
file_put_contents($filename, file_get_contents('php://input'));
?>