Skip to content

Instantly share code, notes, and snippets.

View bitbonsai's full-sized avatar

Mauricio Wolff bitbonsai

View GitHub Profile
while (true); do
echo "$graphite_name_space.$(hostname|sed -e 's/\./_/g').dentry $(sudo slabtop -o | egrep 'dentry'|awk '{print $1}') $(date '+%s')"| nc 127.0.0.1 3002;
sleep 0.9;
done
me at node1 in ~
strace -fc -e trace=access curl 'https://foobar.booking.com/' > /dev/null
Process 2390 attached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00 0.003180 0 6647 6643 access
------ ----------- ----------- --------- --------- ----------------
100.00 0.003180 6647 6643 total
MEM | tot 94.3G | free 9.2G | cache 5.4G | dirty 18.1M | buff 15.1M | slab 75.7G | slrec 75.5G | shmem 4.1G | shrss 0.0M | shswp 0.0M |
Active / Total Objects (% used) : 388963608 / 415847504 (93.5%)
Active / Total Slabs (% used) : 19781213 / 19781213 (100.0%)
Active / Total Caches (% used) : 69 / 101 (68.3%)
Active / Total Size (% used) : 73098890.88K / 78163097.48K (93.5%)
Minimum / Average / Maximum Object : 0.01K / 0.19K / 15.88K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
414578178 387795876 0% 0.19K 19741818 21 78967272K dentry
244998 244998 100% 0.10K 6282 39 25128K buffer_head
12:41:21 PM UID PID minflt/s majflt/s VSZ RSS %MEM Command
12:41:22 PM 0 5206 0.00 0.00 46340 1824 0.00 hapee-lb-system
12:41:22 PM 498 28849 0.00 0.00 177540 85296 0.09 hapee-lb
12:41:22 PM 498 28892 284.00 0.00 213356 121660 0.12 hapee-lb
12:41:22 PM 498 28894 231.00 0.00 217144 124900 0.13 hapee-lb
12:41:22 PM 498 28895 231.00 0.00 213936 122992 0.12 hapee-lb
12:41:22 PM 498 28896 8.00 0.00 211840 122544 0.12 hapee-lb
12:41:22 PM 498 28897 223.00 0.00 210380 122132 0.12 hapee-lb
12:41:22 PM 498 28899 311.00 0.00 212492 118752 0.12 hapee-lb
12:41:22 PM 498 28901 223.00 0.00 212460 120640 0.12 hapee-lb
12:41:20 PM UID PID minflt/s majflt/s VSZ RSS %MEM Command
12:41:21 PM 0 5206 0.00 0.00 46340 1824 0.00 hapee-lb-system
12:41:21 PM 498 28849 0.00 0.00 177540 85296 0.09 hapee-lb
12:41:21 PM 498 28892 102.00 0.00 213204 121164 0.12 hapee-lb
12:41:21 PM 498 28894 179.00 0.00 216592 124324 0.13 hapee-lb
12:41:21 PM 498 28895 116.00 0.00 213360 122676 0.12 hapee-lb
12:41:21 PM 498 28896 153.00 0.00 211840 122544 0.12 hapee-lb
12:41:21 PM 498 28897 106.00 0.00 210236 121816 0.12 hapee-lb
12:41:21 PM 498 28899 55.00 0.00 210196 118000 0.12 hapee-lb
12:41:21 PM 498 28901 140.00 0.00 212192 120288 0.12 hapee-lb
12:41:21 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s Command
12:41:22 PM 498 28849 0.00 0.00 0.00 hapee-lb
12:41:22 PM 498 28892 0.00 5964.00 0.00 hapee-lb
12:41:22 PM 498 28894 0.00 0.00 0.00 hapee-lb
12:41:22 PM 498 28895 0.00 0.00 0.00 hapee-lb
12:41:22 PM 498 28896 0.00 0.00 0.00 hapee-lb
12:41:22 PM 498 28897 0.00 6276.00 0.00 hapee-lb
12:41:22 PM 498 28899 0.00 20.00 0.00 hapee-lb
12:41:22 PM 498 28901 0.00 0.00 0.00 hapee-lb
12:41:22 PM 498 28902 0.00 0.00 0.00 hapee-lb
12:39:40 PM pswpin/s pswpout/s
12:39:43 PM 0.00 0.00
12:39:44 PM 0.00 78.22
12:39:45 PM 0.00 75.00
12:39:46 PM 0.00 0.00
(...)
12:41:20 PM 0.00 9.00
12:41:21 PM 0.00 43.00
12:41:22 PM 0.00 84.00
12:41:23 PM 0.00 70.00
12:38:00 PM CPU %user %nice %system %iowait %steal %idle
12:41:20 PM 0 11.22 0.00 8.16 0.00 0.00 80.61
12:41:20 PM 1 14.29 0.00 6.12 0.00 0.00 79.59
12:41:20 PM 2 18.00 0.00 11.00 0.00 0.00 71.00
12:41:20 PM 3 16.00 0.00 12.00 0.00 0.00 72.00
12:41:20 PM 4 30.61 0.00 15.31 0.00 0.00 54.08
12:41:20 PM 5 11.34 0.00 3.09 0.00 0.00 85.57
12:41:20 PM 6 28.57 0.00 9.18 0.00 0.00 62.24
12:41:20 PM 7 16.16 0.00 12.12 0.00 0.00 71.72
12:41:20 PM 8 20.83 0.00 6.25 0.00 0.00 72.92
12:38:00 PM kbmemfree kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty
12:41:13 PM 7417424 91456184 92.50 238480 60751344 9223012 9.23 34595324 28501704 72000
12:41:14 PM 7409968 91463640 92.51 238488 60752448 9223012 9.23 34595720 28501756 72956
12:41:15 PM 7382684 91490924 92.53 238488 60762264 9236604 9.24 34620324 28501852 82740
12:41:16 PM 7360992 91512616 92.56 238488 60759248 9255500 9.26 34638704 28501984 79724
12:41:17 PM 7353856 91519752 92.56 238492 60765264 9255500 9.26 34640664 28502168 85748
12:41:18 PM 7346384 91527224 92.57 238496 60766612 9252824 9.26 34642028 28502248 72148
12:41:19 PM 7341944 91531664 92.57 238504 60768276 9254356 9.26 34644128 28502328 73528
12:41:20 PM 7407176 91466432 92.51 238396 60726744 9252828 9.26 34593160 28509368 79052
12:41:21 PM 77