| To: | Nathan Scott <nathans@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [pcp] RFC: allowing longer metric and instance names in MMV(5) format |
| From: | Suyash <dextrous93@xxxxxxxxx> |
| Date: | Thu, 30 Jun 2016 07:32:13 +0530 |
| Cc: | Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, Paul Smith <psmith@xxxxxxxxxx>, Ryan Doyle <rdoyle@xxxxxxxxxx>, Lukas Berk <lberk@xxxxxxxxxx>, pcp developers <pcp@xxxxxxxxxxx> |
| Delivered-to: | pcp@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4LMYYsVUy0abmxqgvmkI7MNTNcclUTqWxQJ93T0lHSo=; b=o/CjdmnvxRV4oen8bzUoumYip47VX2Vh8xSHnTHcZwCv44x35VyIWSlV2SAkWhJywv I79rNrUFQfM3C+RzgQfL7sAxk787CNNWm1IIYxAyn45L1EpUVMl+lU3Vgp70lbnypask 6N2fMWNNgjHrqqA+54jD7r41ftkC1Hon66d0PrbtnwSqBSL9oDKO+GKolbu9MnLhKNSQ 4Zow1iBYFSCCXY2IeCd28Qcd/8yCv9e01qafPeWg9b/p+I9BkUfYQfYCc17ALeey2wo9 dXDqGo6RY73HXjw1NVT4+pmrcIWZO3Fw/IahhzosEesnBUJFZ6qan5+kouEDwW3vLDOi 0Xvg== |
| In-reply-to: | <1707944027.3111801.1467244100148.JavaMail.zimbra@xxxxxxxxxx> |
| References: | <236242739.2883373.1467174433044.JavaMail.zimbra@xxxxxxxxxx> <354261953.2889296.1467178515176.JavaMail.zimbra@xxxxxxxxxx> <012901d1d249$5be820c0$13b86240$@internode.on.net> <1707944027.3111801.1467244100148.JavaMail.zimbra@xxxxxxxxxx> |
|
Hi everyone,
Suyash from speed here Sorry for the late response. I have implemented the strings block for speed yesterday, and updated the simple example in the repo to reflect that. Currently the written mmv file is not visible to pmdammv, but will hopefully get that done by this week's end. I completely agree with the idea of backwards compatibility, and from speed's standpoint, it is only about turning the metric name to `*PCPString` type instead of a normal `string` type and caching the address where it is written. The address can be calculated dynamically, at the time of registering a metric. We can check the length and if it is more than 63, we can add it to the string block, otherwise use the v1 method. The address is of 8 bytes, and we have 63 to work with, so we can add a flag (lets say zero padding) for the first 8 bytes, to tell pmdammv that the name for this metric is in the strings block, and the next 8 bytes have the offset. Writing can be modified by detecting the offset at the time of writing the metric desc. We can do a similar scheme for instances and instance domains also. The only concern is we will still use 64 bytes for metric name for each metric, despite needing only need 8, but we use 64 bytes anyway, no matter what the length of the actual name (https://github.com/performancecopilot/speed/blob/master/writer.go#L302). - Suyash |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] RFC: allowing longer metric and instance names in MMV(5) format, Nathan Scott |
|---|---|
| Next by Date: | Re: [pcp] RFC: allowing longer metric and instance names in MMV(5) format, Nathan Scott |
| Previous by Thread: | Re: [pcp] RFC: allowing longer metric and instance names in MMV(5) format, Nathan Scott |
| Next by Thread: | Re: [pcp] RFC: allowing longer metric and instance names in MMV(5) format, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |