Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone. I am trying to figure out how to get current cpu/core frequency. I know that i can use system monitor for that, but i want non-gui program. And i know that in /proc/cpuinfo stored NOT the current CPU frequency. And i need to now my CPU max frequency also. Can anyone help me with that??
P.S. I lately i have found out that not all my computers have /sys/devices/system/cpu*/cpufreq, so looking there is not an option.
Its not prefect (it gives me 3200MHz as max sped, really its 3100MHz).
'Size' is the current speed (800MHz in this case)
Quote:
Originally Posted by catkin
Seems to be on my system (2.6.38.7 kernel). Here's a excerpt from /proc/cpuinfo:
Code:
model name : Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
stepping : 7
cpu MHz : 1600.000
Same here-
Quote:
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 4
model name : AMD Phenom(tm) II X2 550 Processor
stepping : 3
microcode : 0x10000af
cpu MHz : 800.000
Have you tried conky? It also can show cpu usage and many other things.
Regards
Yeah conky is good thing, but unfortunately i can't use it in my case. I need something that i can detect cpu freq of remote computer. I know its kinda difficulte but thats what i want.
... I know that i can use system monitor for that, but i want non-gui program...
and
Quote:
I need something that i can detect cpu freq of remote computer.
If
by system monitor you mean the kde system monitor (also known as kde system guard)
and
by remote system you mean a computer that is connected to a LAN and there is data transmission between the LAN and the monitoring computer (ie, not blocked by, eg, a firewall or one of the computers having no network connectivity)
That does not necessarily exclude kde system guard. You can run in a client/server kind of mode, where one computer just runs the display part, and the other computer runs the relatively small monitoring part. Whether this really is a sensible solution for your problem, or better than whatever else you might come up with, I really don't know, but I just wanted to mention that it might still be a possibility.
Anyway, cpufreq-info should do what you want. -f gives you just the frequency, rather than giving you several lines, which include the frequency on one of them, and c allows you to specify a core; you may have to specify, eg, core 0 and core 1 alternately, because I can't see a way of specifying *, or something, for 'give me all the cores that you've got'. (Maybe, that's only 1, which would render that point moot.) This will give you a file, and then you'll have to do something with it.
I thought that maybe collectl would do it, because that can be fairly neat, but I can't see from the man page any reference to current cpu clock.
by system monitor you mean the kde system monitor (also known as kde system guard)
and
by remote system you mean a computer that is connected to a LAN and there is data transmission between the LAN and the monitoring computer (ie, not blocked by, eg, a firewall or one of the computers having no network connectivity)
That does not necessarily exclude kde system guard. You can run in a client/server kind of mode, where one computer just runs the display part, and the other computer runs the relatively small monitoring part. Whether this really is a sensible solution for your problem, or better than whatever else you might come up with, I really don't know, but I just wanted to mention that it might still be a possibility.
Anyway, cpufreq-info should do what you want. -f gives you just the frequency, rather than giving you several lines, which include the frequency on one of them, and c allows you to specify a core; you may have to specify, eg, core 0 and core 1 alternately, because I can't see a way of specifying *, or something, for 'give me all the cores that you've got'. (Maybe, that's only 1, which would render that point moot.) This will give you a file, and then you'll have to do something with it.
I thought that maybe collectl would do it, because that can be fairly neat, but I can't see from the man page any reference to current cpu clock.
by system monitor you mean the kde system monitor (also known as kde system guard)
and
by remote system you mean a computer that is connected to a LAN and there is data transmission between the LAN and the monitoring computer (ie, not blocked by, eg, a firewall or one of the computers having no network connectivity)
That does not necessarily exclude kde system guard. You can run in a client/server kind of mode, where one computer just runs the display part, and the other computer runs the relatively small monitoring part. Whether this really is a sensible solution for your problem, or better than whatever else you might come up with, I really don't know, but I just wanted to mention that it might still be a possibility.
Anyway, cpufreq-info should do what you want. -f gives you just the frequency, rather than giving you several lines, which include the frequency on one of them, and c allows you to specify a core; you may have to specify, eg, core 0 and core 1 alternately, because I can't see a way of specifying *, or something, for 'give me all the cores that you've got'. (Maybe, that's only 1, which would render that point moot.) This will give you a file, and then you'll have to do something with it.
I thought that maybe collectl would do it, because that can be fairly neat, but I can't see from the man page any reference to current cpu clock.
I've tried cpufreq but it says that no or unkown cpufreq driver is active on this CPU. What am i gonna do now, do i need to install proper drivers for my CPU, or i must configure them somehow?
SOLVED !!!!! Now i can find my max and current speed. If anyone is interested: sudo dmidecode -t 4 | grep Max\ Speed this for max cpu speed and for current: sudo dmidecode -t 4 | grep Current\ Speed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.