Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

First reading always comes with null data and wrong timestamp #48

Open
bahadiri opened this issue Dec 14, 2017 · 2 comments
Open

First reading always comes with null data and wrong timestamp #48

bahadiri opened this issue Dec 14, 2017 · 2 comments

Comments

@bahadiri
Copy link

Snap daemon version (use snapteld -v): snapteld version 2.0.0

Environment:

  • Cloud provider or hardware configuration: System 76 Gazelle
  • OS (e.g. from /etc/os-release): Ubuntu 16.04.3 LTS
  • Kernel (e.g. uname -a): 4.10.0-42-generic
  • Relevant tools (e.g. plugins used with Snap): Intel PCM
  • Others (e.g. deploying with Ansible): N/A

What happened:

  1. First reading always come with a weird timestamp. and null data.

[{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Pack_C-States/Proc_Energy_Joules","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Pack_C-States/C2res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Pack_C-States/C3res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Pack_C-States/C6res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Pack_C-States/C7res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L3MPI","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/READ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/AFREQ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L2MISS","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L2HIT","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L3MISS","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L3HIT","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/L2MPI","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/WRITE","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/TEMP","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/EXEC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/IPC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Socket0/FREQ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Core_C-State/C1res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Core_C-State/C3res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Core_C-State/C6res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Core_C-State/C7res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Core_C-State/C0res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Package_C-State/C2res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Package_C-State/C3res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Package_C-State/C6res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/SKT0_Package_C-State/C7res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/Proc_Energy_Joules/SKT0","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/EXEC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L3MISS","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L3HIT","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L3MPI","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/INST","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/IPC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L2HIT","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/PhysIPC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/PhysIPC%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/AFREQ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L2MPI","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/WRITE","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/INSTnom","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/INSTnom%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/FREQ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/L2MISS","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/READ","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/ACYC","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System/TIME_ticks","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Core_C-States/C0res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Core_C-States/C1res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Core_C-States/C3res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Core_C-States/C6res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11},{"timestamp":"0000-12-31T15:47:32-08:12","namespace":"/intel/pcm/System_Core_C-States/C7res%","data":null,"unit":"","tags":{"plugin_running_on":"bahadir"},"version":11}]

What you expected to happen:
Normal data and timestamp

Steps to reproduce it (as minimally and precisely as possible):

  1. Start Snap
  2. Load pcm plugin as described
  3. Start a task to collect data

Anything else do we need to know (e.g. issue happens only occasionally):

@PatrykMatyjasek
Copy link
Contributor

It is caused by pcm tool. Initialization take 2-3 seconds, and resets counters. It results that first data collection is corrupted.

@bahadiri
Copy link
Author

Ok we’re cleaning it from the file. But maybe plugin can drop it for accuracy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants