Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 16
Posts: 16   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3437 times and has 15 replies Next Thread
wolfman1360
Senior Cruncher
Canada
Joined: Jan 17, 2016
Post Count: 176
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
New to linux. How to get realtime CPU frequency?

So, I just made the jump and installed linux on a laptop with a core i7-3610QM.
I had a few (very) frustrating tries at it. The drives were plugged into the wrong connections on the motherboard - the 500 gb data drive using sda and the SSD using sdb. Regardless of me choosing SDB, grub kept trying to install itself to sda.
Eventually I figured out the partition layout and did it manually - and this being my first linux install I still probably didn't do things perfect but it is working for now. I ended up using Ubuntu 16.04, got things going perfectly here. I ended up using boinc remotely to check project and task status and so far so good. It is incredible that it went from over 2.5 hours to 1.6 to finish a Zika WU although NVDA which is the screen reader I use on windows can be a resource hog for no reason at all. In all fairness, I did have other things like dropbox and resilio sync running in windows - but even disabling them made little difference.
However I am having one problem. Not that it's a big one, but I want to make sure this machine is performing at its max.
I'm noticing the CPU fan isn't staying at 100% - not that that is a bad thing at all, but it never went below max on windows, unless Linux works that much differently? It seems to be going from 100% down 2 or so speeds and slowly climbing back up. This is a Clevo p170em.

Less important to me at this moment though curious. I'm running an Nvidia Geforce 670M. Do I need to do anything special in these later versions of Ubuntu to enable cuda or should it come default with the newest Nvidia driver?

As for the CPU question, I used 2 methods and both are giving me different pieces of info though no less accurate. Just not what I'm looking for.

cat /proc/cpuinfo
I get this. PS: DO I need to update anything to deal with the CPU bugs listed or are they simply there for reference sake?

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
stepping : 9
microcode : 0x12
cpu MHz : 2294.747
cache size : 6144 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs : cpu_meltdown spectre_v1 spectre_v2
bogomips : 4589.49
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
It gives me that for each core. I know that's the base clock of this processor but surely it must be using some form of turbo boost? In theory, it should clock up to 3.1 ghz when all cores are active, which they are now as I have boinc always set to run.


The second command I've tried is lscpu. I get this:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
Stepping: 9
CPU MHz: 2294.747
CPU max MHz: 3300.0000
CPU min MHz: 1200.0000
BogoMIPS: 4589.49
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts

Sorry if that second output was a little too verbose.

Is there a way to find the current CPU frequency, similar to CPUZ on windows?
With that all being said, so far the speed difference is pretty amazing. Next linux project (and hopefully easier to install) will be the fx8350. Just want to make sure this one is performing as it should.

Being a fully blind user, linux is very different. It required a lot of experimenting with alternative methods because there was a lot of different information out there as far as screen readers and linux distros went.

Ubuntu 17.10 had no Orca at install - or at least no speech coming through my speakers. Likewise it does like to crash quite often and terminal is required to get it back. Luckily all I plan on using these machines for is Boinc and WCG, so it isn't too big of a deal but as far as the screen reader is concerned I couldn't rely on this as a full time operating system. Being able to control so much from a terminal is so freeing, though.

Any help is very much appreciated.
PS: Does anyone have any other tips for me?
----------------------------------------
Crunching for the betterment of human kind and the canines who will always be our best friends.
AWOU!
[Feb 20, 2018 5:15:00 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Anarki
Cruncher
Joined: Jan 25, 2007
Post Count: 34
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Try this command which will give you a real-time output of your current CPU(s) speed refreshed every .1 of a second:

watch -n.1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""

If that doesn't work you may need to change the -n.1 to n1 which will display it every 1 second:

watch -n1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""

I don't personally use Ubuntu so I don't know if the CUDA drivers are installed automatically, however currently there are no projects in WCG that utilize GPU's.
[Feb 20, 2018 10:07:44 AM]   Link   Report threatening or abusive post: please login first  Go to top 
wolfman1360
Senior Cruncher
Canada
Joined: Jan 17, 2016
Post Count: 176
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Hi,
I did that.
I'm getting the current mhz as 2294.747 unchanging.
Is there a way to enable some sort of high performance mode under linux? This doesn't seem to be utilizing turbo boost, at all.
thanks
----------------------------------------
Crunching for the betterment of human kind and the canines who will always be our best friends.
AWOU!
[Feb 20, 2018 4:49:28 PM]   Link   Report threatening or abusive post: please login first  Go to top 
OldChap
Veteran Cruncher
UK
Joined: Jun 5, 2009
Post Count: 978
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Ask a silly question......

Is turbo turned on in bios?
----------------------------------------

[Feb 20, 2018 7:51:03 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Anarki
Cruncher
Joined: Jan 25, 2007
Post Count: 34
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Hi,

If you are concerned that Linux isn't utilizing turbo boost you could try setting your preferences (on this website) for that machine to only use 1 CPU and then run this command in Linux so it picks up the changes set in the preferences:

boinccmd --project www.worldcommunitygrid.org update

This will then only allow one work unit to run leaving the remaining cores idle, from which you could run the command I posted earlier to see if it's turboed to the 3.3GHz.

I fully understand this isn't the solution you want but I don't think you'll get 8 threads crunching away at 3.3GHz but at least you can see if turbo boost is doing its job.

At the end of the day the 3610qm is a laptop chip with a 45W tdp and with 8 threads being used 100% I don't think it'll ever go above it's base clock.

Edited to add I've searched online and can see that the 3610QM has the potential to turbo upto 3.1GHz when all 4 cores are active, again as long as the CPU isn't getting to its thermal limit.

It maybe worth you installing lm-sensors to check how hot its getting. You can google how to install and use it, its pretty straight forward and may give you an indication if your CPU is being thermally throttled.
----------------------------------------
[Edit 1 times, last edit by Anarki at Feb 20, 2018 8:26:42 PM]
[Feb 20, 2018 7:57:28 PM]   Link   Report threatening or abusive post: please login first  Go to top 
wolfman1360
Senior Cruncher
Canada
Joined: Jan 17, 2016
Post Count: 176
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Hi,

If you are concerned that Linux isn't utilizing turbo boost you could try setting your preferences (on this website) for that machine to only use 1 CPU and then run this command in Linux so it picks up the changes set in the preferences:

boinccmd --project www.worldcommunitygrid.org update

This will then only allow one work unit to run leaving the remaining cores idle, from which you could run the command I posted earlier to see if it's turboed to the 3.3GHz.

I fully understand this isn't the solution you want but I don't think you'll get 8 threads crunching away at 3.3GHz but at least you can see if turbo boost is doing its job.

At the end of the day the 3610qm is a laptop chip with a 45W tdp and with 8 threads being used 100% I don't think it'll ever go above it's base clock.

Edited to add I've searched online and can see that the 3610QM has the potential to turbo upto 3.1GHz when all 4 cores are active, again as long as the CPU isn't getting to its thermal limit.

It maybe worth you installing lm-sensors to check how hot its getting. You can google how to install and use it, its pretty straight forward and may give you an indication if your CPU is being thermally throttled.


Sorry, I should have clarified.
Under windows, it ran steady with 8 threads used at 3.1 ghz and 36 w at around 85-89 C. Now it's sitting around 70-75 according to lm-sensors.
I haven't changed anything in bios, either.
I was just wondering if linux needed something to be installed to utilize turbo boost. It was worth a shot.

I'll try limiting the CPU to see how that works and report back.
Thanks

edit: CPU frequency is remaining steady at 2294.747 mhz even with 1 CPU thread active. Disabling the work doesn't make it go down to 1200 like it should, either. Turbo boost is active in the bios.
----------------------------------------
Crunching for the betterment of human kind and the canines who will always be our best friends.
AWOU!
----------------------------------------
[Edit 1 times, last edit by wolfman1360 at Feb 20, 2018 10:54:22 PM]
[Feb 20, 2018 10:47:12 PM]   Link   Report threatening or abusive post: please login first  Go to top 
mmonnin
Advanced Cruncher
Joined: Jul 20, 2016
Post Count: 148
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

https://askubuntu.com/questions/800797/how-to-enable-turbo-boost

Seems like it should work on any OS since its hardware controlled.
----------------------------------------

[Feb 21, 2018 3:01:41 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1672
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

Since Linux is usually more efficient than Windows, I am not particularly surprised that the CPU temperature is a little bit lower with Linux than with Windows; especially because the memory management unit is surely less demanded.
I agree with mmonnin, since Turbo boost in on CPU hardware level, Linux can equally take advantage of it.
Welcome in the Linux world,
Yves
----------------------------------------
[Feb 21, 2018 9:36:10 PM]   Link   Report threatening or abusive post: please login first  Go to top 
mmonnin
Advanced Cruncher
Joined: Jul 20, 2016
Post Count: 148
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

The lower temps might be attributed due to turbo not working. Clock for clock I would expect temps to be higher too.

Even GPU overclocks sometimes need to be reduced in Linux since they are typically utilized better.
----------------------------------------

[Feb 22, 2018 3:36:40 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1672
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: New to linux. How to get realtime CPU frequency?

However, as soon as all cores are at 100% load, the turbo boost will probably not be activated since, initially, turbo boost was planed for improving the performance when the CPU is not fully loaded.
Yves
----------------------------------------
[Feb 22, 2018 3:41:54 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 16   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread