Skip to content

Instantly share code, notes, and snippets.

View snajpa's full-sized avatar

Pavel Snajdr snajpa

  • vpsFree.cz
  • Brno, Czech Republic
View GitHub Profile
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================================================
Installing:
ceph-libs-compat x86_64 1:0.80.5-8.fc20 updates 12 k
replacing ceph-libs.x86_64 0.67.3-2.fc20
Sep 16 13:10:26 node5 kernel: [29355.892378] [<ffffffff811bd751>] ? __link_path_walk+0x1a1/0x1090
Sep 16 13:10:26 node5 kernel: [29355.892384] [<ffffffff8153124e>] __mutex_lock_slowpath+0x13e/0x180
Sep 16 13:10:26 node5 kernel: [29355.892389] [<ffffffff815310eb>] mutex_lock+0x2b/0x50
Sep 16 13:10:26 node5 kernel: [29355.892394] [<ffffffff811c017a>] do_filp_open+0x2da/0xc50
Sep 16 13:10:26 node5 kernel: [29355.892399] [<ffffffff811b2b04>] ? cp_new_stat+0xe4/0x100
Sep 16 13:10:26 node5 kernel: [29355.892404] [<ffffffff8129aeea>] ? strncpy_from_user+0x4a/0x90
Sep 16 13:10:26 node5 kernel: [29355.892408] [<ffffffff811bb295>] ? getname_flags+0x155/0x260
Sep 16 13:10:26 node5 kernel: [29355.892413] [<ffffffff811cdb22>] ? alloc_fd+0x92/0x160
Sep 16 13:10:26 node5 kernel: [29355.892418] [<ffffffff811a9329>] do_sys_open+0x69/0x140
Sep 16 13:10:26 node5 kernel: [29355.892422] [<ffffffff811a9440>] sys_open+0x20/0x30
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
41.42 277.044183 6388 43367 11941 futex
30.37 203.172326 594 341816 349 read
18.33 122.603303 564 217227 lseek
2.39 15.982118 580 27549 pread
2.08 13.934880 605864 23 select
1.52 10.164313 41487 245 poll
1.11 7.424989 573 12955 clock_gettime
0.77 5.180478 571 9069 setsockopt
~ # ./poorman.sh
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff0028a000
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
Unhandled dwarf expression opcode 0xf3
histogram-occurences-from-unsorted-list() { # cat unsorted-list-of-items | histogram
sort|uniq -c|sort -rn|head -20|awk '!max{max=$1;}{r="";i=s=60*$1/max;while(i-->0)r=r"#";printf "%15s %5d %s %s",$2,$1,r,"\n";}'
}
is_ip() {
IP="$1"
python - "${IP}" <<EOF
import socket
import sys
# Check IPv6
if socket.has_ipv6:
try:
socket.inet_pton(socket.AF_INET6, sys.argv[1])
sys.exit(0)
root@nas:~# zpool status storage
pool: storage
state: ONLINE
scan: scrub repaired 0 in 2h43m with 0 errors on Tue Nov 19 17:53:04 2013
config:
NAME STATE READ WRITE CKSUM
storage ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
c3t50014EE60326B4F9d0 ONLINE 0 0 0
This file has been truncated, but you can view the full file.
1:
/sbin/init
[<ffffffff811c4cc9>] poll_schedule_timeout+0x39/0x60
[<ffffffff811c5d8c>] do_select+0x57c/0x6c0
[<ffffffff811c605a>] core_sys_select+0x18a/0x2d0
[<ffffffff811c63f7>] sys_select+0x47/0x110
[<ffffffff8100b102>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
===
10:
1:
/sbin/init
[<ffffffff811c4cc9>] poll_schedule_timeout+0x39/0x60
[<ffffffff811c5d8c>] do_select+0x57c/0x6c0
[<ffffffff811c605a>] core_sys_select+0x18a/0x2d0
[<ffffffff811c63f7>] sys_select+0x47/0x110
[<ffffffff8100b102>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
===
10:
This file has been truncated, but you can view the full file.
1:
/sbin/init
[<ffffffff811c4cc9>] poll_schedule_timeout+0x39/0x60
[<ffffffff811c5d8c>] do_select+0x57c/0x6c0
[<ffffffff811c605a>] core_sys_select+0x18a/0x2d0
[<ffffffff811c63f7>] sys_select+0x47/0x110
[<ffffffff8100b102>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
===
10: