You are not logged in.

#1 2016-11-04 12:16:47

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

install turbostat[solved]

i have installed turbostat,but when you do,I get this error:

me ~ $ sudo /dev/cpu/*/msr
[sudo] password di me: 
sudo: /dev/cpu/0/msr: comando non trovato
me ~ $ sudo ./turbostat
sudo: ./turbostat: comando non trovato
me ~ $ 

whi?

Last edited by newbie1962 (2016-11-04 15:08:03)


hp-envy dv7

Offline

#2 2016-11-04 13:27:26

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: install turbostat[solved]

You don't run /dev/cpu/*/msr or /dev/cpu/0/msr, those are not programs. You also don't run ./turbostat, you run turbostat.

Not a Laptop Issue, moving to NC.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-11-04 13:59:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,705
Website

Re: install turbostat[solved]

I believe there is a module needed to run trubostat... also isn't it available in the repo or AUR?  Why build it the old chocolate way?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2016-11-04 15:05:47

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: install turbostat[solved]

if I read the Turbostat manual says this:

Periodic Example

Without any parameters, Turbostat displays statistics ever 5 seconds. Periodic output goes to stdout, by default, the unless --out is used to specify an output file. The 5-second interval can be changed with th "-i sec" option. Or a command may be specified as in "Fork Example" below.

[Root @ hsw] # ./turbostat

same thing for these commands:

Notes

turbostat must be run as root. Alternatively, non-root users can be enabled to run turbostat this way:

# setcap cap_sys_rawio=ep ./turbostat

# chmod +r /dev/cpu/*/msr

sorry if I ask explanations, however returning to the topic the command:
sudo turbostat
it works, but if anyone wants to explain, always happy to learn.
edit
I added the msr module mkincipio.conf, pack and given:
sudo modprobe msr

Last edited by newbie1962 (2016-11-04 15:10:53)


hp-envy dv7

Offline

#5 2016-11-04 15:21:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: install turbostat[solved]

If sudo turbostat works but turbostat didn't work, the problem wasn't a missing command. Note, if a command is not in your $PATH then the shell will output an error which says something like "command not found".

The manual seems to be describing how to run turbostat without installing it through a package manager. ./turbostat means to run it from the current working directory rather than a directory in your $PATH.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB