Index: trunk/udpprofile/debian/changelog |
— | — | @@ -1,3 +1,10 @@ |
| 2 | +udpprofile (1.6) lucid-wikimedia; urgency=low |
| 3 | + |
| 4 | + * Domas "set in-RAM cache size to 256M instead of 256k - cuts CPU usage in half on busy systems" |
| 5 | + * Replaced 99.9th percentile calculation with 90th |
| 6 | + |
| 7 | + -- Asher Feldman <afeldman@wikimedia.org> Thu, 6 Mar 2012 00:43:00 +0000 |
| 8 | + |
2 | 9 | udpprofile (1.5) lucid-wikimedia; urgency=low |
3 | 10 | |
4 | 11 | * profiler-to-carbon skips non-ascii event keys |
Index: trunk/udpprofile/profiler-to-carbon |
— | — | @@ -80,9 +80,9 @@ |
81 | 81 | message = "%s.count %d %d\n" % ( key, count, now ) |
82 | 82 | logging.debug("sending: %s", message) |
83 | 83 | graph.send(message) |
84 | | - |
| 84 | + |
85 | 85 | if (db.startswith('stats')): continue |
86 | | - |
| 86 | + |
87 | 87 | real = current[key]['real'] - prior[db][key]['real'] |
88 | 88 | message = "%s.tavg %.3f %d\n" % ( key, real/count, now ) |
89 | 89 | logging.debug("sending: %s", message) |
— | — | @@ -90,18 +90,18 @@ |
91 | 91 | |
92 | 92 | current[key]['samples'].sort() |
93 | 93 | tp50 = int(round(len(current[key]['samples']) * 0.5))-1 |
| 94 | + tp90 = int(round(len(current[key]['samples']) * 0.9))-1 |
94 | 95 | tp99 = int(round(len(current[key]['samples']) * 0.99))-1 |
95 | | - tp999 = int(round(len(current[key]['samples']) * 0.999))-1 |
96 | 96 | |
97 | 97 | message = "%s.tp50 %.3f %d\n" % ( key, float(current[key]['samples'][tp50])*1000, now ) |
98 | 98 | logging.debug("sending: %s", message) |
99 | 99 | graph.send(message) |
100 | 100 | |
101 | | - message = "%s.tp99 %.3f %d\n" % ( key, float(current[key]['samples'][tp99])*1000, now ) |
| 101 | + message = "%s.tp90 %.3f %d\n" % ( key, float(current[key]['samples'][tp90])*1000, now ) |
102 | 102 | logging.debug("sending: %s", message) |
103 | 103 | graph.send(message) |
104 | 104 | |
105 | | - message = "%s.tp999 %.3f %d\n" % ( key, float(current[key]['samples'][tp999])*1000, now ) |
| 105 | + message = "%s.tp99 %.3f %d\n" % ( key, float(current[key]['samples'][tp99])*1000, now ) |
106 | 106 | logging.debug("sending: %s", message) |
107 | 107 | graph.send(message) |
108 | 108 | |