[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-23 Thread Colin Ian King
OK, so lets close this and perhaps can you file a bug against powertop instead? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manag

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-23 Thread John Lenton
Yes. Sorry to have you reading the manuals on the weekend! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manage notifications about

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-22 Thread Colin Ian King
OK, so the bug seems to be bogus reporting by powertop rather than powerstat. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manage

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread John Lenton
perhaps relevantly, here is the strace of powertop trying to read the msr. 24773 write(1, "RAPL device for cpu 0\n", 22) = 22 24773 access("/dev/cpu/0/msr", R_OK)= 0 24773 open("/dev/cpu/0/msr", O_RDONLY) = 4 24773 pread(4, 0x7ffd966dbb08, 8, 1553) = -1 EIO (Input/output error) 24773 close(4)

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread John Lenton
john@fogey:~$ sudo rdmsr 0x611 rdmsr: CPU 0 cannot read MSR 0x0611 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manage notific

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
And the MSR 0x611 MSR_PKG_ENERGY_STATUS was only introduced in Sandybridge according to "Table 35-12. MSRs Supported by Intel® Processors based on Intel® microarchitecture code name Sandy Bridge" of the Intel® 64 and IA-32 Architectures Software Developer’s Manual. I therefore believe powertop may

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
What does the following do: sudo modprobe msr sudo rdmsr 0x611 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manage notifications

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
RAPL was introduced on Sandybridge, so Arrandale does not support this, so perhaps powertop is incorrect. Powertop just reads MSR 0x611using: ret = read_msr(first_cpu, MSR_PKG_ENERY_STATUS, &value); if (ret > 0) { rapl_domains |= PKG_DOMAIN_PRESENT;

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread John Lenton
I'm using 3.19.0-22-generic. I don't have a /sys/devices/virtual/powercap/. /sys/class/powercap exists but is empty. $ grep CPU /proc/cpuinfo model name : Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz model name : Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz model name : Intel

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
It seems that the RAPL kernel driver only supports the following CPUs: RAPL_CPU(0x2a, rapl_defaults_core),/* Sandy Bridge */ RAPL_CPU(0x2d, rapl_defaults_core),/* Sandy Bridge EP */ RAPL_CPU(0x37, rapl_defaults_atom),/* Valleyview */ RAPL_CPU(0x3a, rapl_defaults_cor

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
Just to clarify, I currently believe this is a bug in the kernel driver, so I think once you CPU is enabled in the driver it will show up in powerstat. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/146

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
** Changed in: powerstat (Ubuntu) Status: In Progress => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1467014 Title: powertat -R erroneously reports no RAPL domains To manage not

[Bug 1467014] Re: powertat -R erroneously reports no RAPL domains

2015-06-20 Thread Colin Ian King
Which kernel are you using? Can you tar up the following: tar cvf - /sys/devices/virtual/powercap/ > powercap.tar and let me know if /sys/class/powercap exists on your machine. Finally, which CPU do you have? cat /proc/cpuinfo | grep CPU Thanks! ** Changed in: powerstat (Ubuntu) Importanc