Skip to content

Instantly share code, notes, and snippets.

View KristianLyng's full-sized avatar

Kristian Lyngstøl KristianLyng

  • Amedia
  • Oslo
View GitHub Profile
$ traceroute 195.88.54.16
traceroute to 195.88.54.16 (195.88.54.16), 30 hops max, 60 byte packets
1 stardust.varnish-software.com (87.238.43.225) 0.140 ms 0.108 ms 0.097 ms
2 vlan309.cr0.v1.no.linpro.net (87.238.33.145) 0.890 ms 0.882 ms 0.973 ms
3 87.238.32.69 (87.238.32.69) 0.706 ms 0.818 ms 0.808 ms
4 vlan62.sw0.hmg9.no.linpro.net (87.238.32.19) 0.917 ms 0.907 ms 0.973 ms
5 www.vg.no (195.88.54.16) 0.588 ms 0.590 ms 0.567 ms
kristian@sunrider:~$ traceroute 195.88.55.16
traceroute to 195.88.55.16 (195.88.55.16), 30 hops max, 60 byte packets
1 stardust.varnish-software.com (87.238.43.225) 0.230 ms 0.196 ms 0.218 ms
top - 23:26:55 up 1 day, 3:35, 2 users, load average: 2.05, 2.07, 2.00
Tasks: 345 total, 2 running, 343 sleeping, 0 stopped, 0 zombie
Cpu0 : 0.0%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu1 : 0.7%us, 0.0%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 17.3%us, 1.0%sy, 0.0%ni, 3.0%id, 78.7%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.3%us, 1.0%sy, 0.0%ni, 98.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 27.7%us, 0.0%sy, 0.0%ni, 72.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 0.3%us, 0.3%sy, 0.0%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 1.6%us, 0.3%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
My traceroute [v0.75]
shoggoth (0.0.0.0) Fri Sep 10 23:16:15 2010
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. graveyard-int.varnish-software.com 0.0% 12 0.7 0.7 0.6 0.9 0.1
2. 87.238.33.149 0.0% 12 1.7 2.2 1.7 4.4 1.0
3. xe-1-1-0-62.cr2.hmg9.no.linpro.net 0.0% 11 1.3 1.4 1.0 2.7 0.5
4. te1-7.ccr01.osl01.atlas.cogentco.com 0.0% 11 1.5 1.8 1.3 4.5 0.9
5. te0-0-0-5.ccr22.ham01.atlas.cogentco.com 0.0% 11 17.5 17.4 17.1 17.7 0.2
backend kreia_ext {
.host = "<%= @kreia_ip %>";
.port = "80";
}
$ echo 490475,490495p | ed foo.txt
123591599
46 TxHeader c X-Varnish: 982031300 981391321
46 TxHeader c Age: 53
46 TxHeader c Via: 1.1 varnish
46 TxHeader c Connection: keep-alive
46 Length c 894
46 ReqEnd c 982031300 1285603883.609092474 1285603883.609306097 0.000386238 0.000096321 0.000117302
637534215 Debug - "#%00%00%00deliver%00%08%00%00%19#%00%00%00HTTP/1.1%03%00%00%17#%00%00%00200:%02%00%00%16#%00%00%00OKsh%14%00%00%1a#%00%00%00Server: nginx/0.7.65%18%00%00%1a#%00%00%00Content-Type: text/plain,%00%00%1a#%00%00%00Last-Modified: Wed, 23 Jun 2010 15:07:37 GMT%13%00%00%1a#%00%00%00Content-Length: 894%00#%00%00%1a#%00%00%00Date: Mon, 27 Sep 2010 16:11:32 GMT %1e%00%00%1a#%00%00%00X-Varnish: 982139410 981411474:0%07%00%00%1a#%00%00%00Age: 59%00%10%00%00%1a#%00%00%00Via: 1.1 varnish%16%00%00%1a#%00%00%00Connection: keep-alive%00%00%03%00%00%0d#%00%00%00894%00W%00%00%04#%00%00%00982139410 1285603892.659395218 1285603892.659511805 0.000050306 0.000049829 0.0
~$ awk '{ if (length($0) > 200) { system("echo " FNR-10 "," FNR+10 "p | ed foo.txt"); exit; }}' < foo.txt
123591599
46 TxHeader c Last-Modified: Wed, 23 Jun 2010 15:07:37 GMT
46 TxHeader c Content-Length: 894
46 TxHeader c Date: Mon, 27 Sep 2010 16:11:23 GMT
46 TxHeader c X-Varnish: 982031300 981391321
46 TxHeader c Age: 53
46 TxHeader c Via: 1.1 varnish
46 TxHeader c Connection: keep-alive
46 Length c 894
kristian@luke:~$ df -lhT --total -x tmpfs -x devtmpfs --portability | gawk -f awkdf
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 ext4 29G 15G 13G 53% /
/dev/md_d0 ext4 3.6T 1.8T 1.9T 49% /mnt/r
/dev/sdd1 btrfs 1.9T 219G 1.7T 12% /mnt/k
/dev/mapper/misc-source btrfs 40G 1.5G 39G 4% /mnt/source
total - 5.5T 2.0T 3.5T 37%
kristian@luke:~/Source/tv-random$ gprof pathfinder; echo ==========================; cat main.c.gcov
Flat profile:
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
0.00 0.00 0.00 490 0.00 0.00 checkfield
0.00 0.00 0.00 490 0.00 0.00 push
kristian@luke:~$ dpkg -l | grep font
ii console-setup 1.34ubuntu15 console font and keymap setup program
ii console-terminus 4.30-2 Fixed-width fonts for fast reading on the Linux console
ii defoma 0.11.11ubuntu1 Debian Font Manager -- automatic font configuration framework
ii fontconfig 2.8.0-2ubuntu1 generic font configuration library - support binaries
ii fontconfig-config 2.8.0-2ubuntu1 generic font configuration library - configuration
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2ubuntu1 Fonts for the Ghostscript interpreter(s)
ii gsfonts-x11 0.21 Make Ghostscript fonts available to X11
ii gucharmap
Oct 21 07:46:39 lb02 varnishd[20223]: Child (26247) Panic message: Assert error in WS_Release(), cache_ws.c line 193:
Condition(bytes <= ws->e - ws->f) not true.
thread = (cache-worker)
ident = Linux,2.6.32-3-amd64,x86_64,-smalloc,-hcritbit,epoll
Backtrace:
0x424608: /usr/sbin/varnishd() [0x424608]
0x42f855: /usr/sbin/varnishd(WS_Release+0x105) [0x42f855]
0x429c31: /usr/sbin/varnishd() [0x429c31]
0x42e218: /usr/sbin/varnishd(VRT_SetHdr+0xf8) [0x42e218]
0x7f04d9afaa5a: ./vcl.1P9zoqAU.so(+0x3a5a) [0x7f04d9afaa5a]