LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2015, 06:46 PM   #1
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Rep: Reputation: 26
My Kernel have all features from my Hardware?


Hi guys,

I always had doubts whether the config I use to compile my kernel is taking advantage of all my hardware. So I created this topic to see if you help me.

My setup:
i5 4670k @ 4.5GHz
Asus Z97-Pro
2x4GB Corsair DDR3-2100mhz @ 2.400mhz
Nvidia Gigabyte G1 970GTX
Logitech G700 Wireless

Screenshot using Screenfetch
http://i764.photobucket.com/albums/x...pstsbeikt8.png

Here my config kernel:
http://pastebin.com/wS5ca3yE

And here download config
https://www.dropbox.com/s/3iqjp82y9r862r4/.config?dl=0

So with this data you can help me improve my kernel configuration to better enjoy my hardware?

Last edited by Candelabrus; 05-01-2015 at 08:36 PM.
 
Old 05-01-2015, 09:29 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Set the processor type to 'Core 2/Newer Xeon'.

Unless this is a media server or low latency system, I recommend 'Voluntary Kernel Preemption'.

For better power saving and heat management, I recommend the 'ondemand' cpu frequency governor.

You are probably going to want the proprietary nvidia driver for that graphics card for maximum performance.

This CPU has turbo boost, you can check it with:
Code:
cat /sys/devices/system/cpu/cpufreq/boost
and turn it on with:
Code:
echo 1 > /sys/devices/system/cpu/cpufreq/boost
Some possibly useful info:
http://docs.slackware.com/howtos:sla...git_repository
http://docs.slackware.com/howtos:har...quency_scaling

P.S. You may also want to check the BIOS settings and if you want even more performance there may be an XMP profile for the RAM. Enable it and you will get faster RAM. Sometimes you have to plug in the frequencies and CL timings yourself, they should be written on the RAM sticks or the box they came in, but only put correct values or your system will not boot.

Last edited by metaschima; 05-01-2015 at 09:33 PM.
 
1 members found this post helpful.
Old 05-01-2015, 10:14 PM   #3
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by metaschima View Post
Set the processor type to 'Core 2/Newer Xeon'.
Thank you. That I did not know

Quote:
Unless this is a media server or low latency system, I recommend 'Voluntary Kernel Preemption'.
I felt my computer faster after i have put this option

Quote:
For better power saving and heat management, I recommend the 'ondemand' cpu frequency governor.

You are probably going to want the proprietary nvidia driver for that graphics card for maximum performance.

This CPU has turbo boost, you can check it with:
Code:
cat /sys/devices/system/cpu/cpufreq/boost
and turn it on with:
Code:
echo 1 > /sys/devices/system/cpu/cpufreq/boost
Here i do not have this patch /sys/devices/system/cpu/cpufreq/boost
Only /sys/devices/system/cpu/cpu0/cpufreq/

Code:
affected_cpus          scaling_cur_freq
cpuinfo_cur_freq             scaling_driver
cpuinfo_max_freq             scaling_governor
cpuinfo_min_freq             scaling_max_freq
cpuinfo_transition_latency   scaling_min_freq
related_cpus                 scaling_setspeed
scaling_available_governors
with Intel Pstate Controller i can not use the ondemand only if i switch to ACPI State Controller
Recommends you change? I chose this combination based on reading some articles of phoronix.com

Quote:
P.S. You may also want to check the BIOS settings and if you want even more performance there may be an XMP profile for the RAM. Enable it and you will get faster RAM. Sometimes you have to plug in the frequencies and CL timings yourself, they should be written on the RAM sticks or the box they came in, but only put correct values or your system will not boot.
That part is already well set up, I use overclocked a few years already.

Any tips for the part sensors? When I type sensors in the console appears only that. When I see my share of Windows by the sensors appears over and over temperature readings

Code:
eric@slackware ~ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8C  (crit = +105.0C)
temp2:        +29.8C  (crit = +105.0C)
Thanks for reply

Last edited by Candelabrus; 05-01-2015 at 10:16 PM.
 
Old 05-02-2015, 12:42 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You should use the 'ACPI Processor P-States driver' (CONFIG_X86_ACPI_CPUFREQ), as this has more features. This and the Core2/Newer Xeon should add the boost option.

In your config
Code:
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
enable it and you will be able to use ondemand.

Run:
Code:
sensors-detect
as root and it will detect more sensors if there are some. Then do what is says as to the commands you need to run such as modprobing drivers.

See the articles for other possible performance improvements.
 
Old 05-02-2015, 02:19 PM   #5
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Thanks again.

I understood now about /boost and ondemand i will try

About sensors

Code:
eric@slackware ~ su -
Senha : 
root@slackware:~# sensors-detect
# sensors-detect revision 6170 (2013-05-20 21:25:22 +0200)
# System: ASUS All Series
# Board: ASUSTeK COMPUTER INC. Z97-PRO

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
modprobe: FATAL: Module cpuid not found.
Failed to load module cpuid.
 
Old 05-02-2015, 03:03 PM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You need to enable '/dev/cpu/*/cpuid - CPU information support' in the Processor section 'CONFIG_X86_CPUID'.
 
1 members found this post helpful.
Old 05-02-2015, 05:27 PM   #7
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Ok, i enabled cpuid module and...

Code:
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): YES
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): YES
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found unknown chip with ID 0xc803
    (logical device B has address 0x290, could be sensors)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): YES
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): YES
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): YES
Found unknown SMBus adapter 8086:8ca2 at 0000:00:1f.3.
Sorry, no supported PCI bus adapters found.

Next adapter: NVIDIA i2c adapter 0 at 1:00.0 (i2c-0)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: NVIDIA i2c adapter 2 at 1:00.0 (i2c-1)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: NVIDIA i2c adapter 6 at 1:00.0 (i2c-2)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: NVIDIA i2c adapter 7 at 1:00.0 (i2c-3)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: NVIDIA i2c adapter 8 at 1:00.0 (i2c-4)
Do you want to scan it? (yes/NO/selectively): yes

Next adapter: NVIDIA i2c adapter 9 at 1:00.0 (i2c-5)
Do you want to scan it? (yes/NO/selectively): yes

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to generate /etc/sysconfig/lm_sensors? (yes/NO): yes
Copy prog/init/lm_sensors.init to /etc/init.d/lm_sensors
for initialization at boot time.
You should now start the lm_sensors service to load the required
kernel modules.

Unloading cpuid... OK

root@slackware eric sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8C  (crit = +105.0C)
temp2:        +29.8C  (crit = +105.0C)

root@slackware eric
 
Old 05-02-2015, 06:23 PM   #8
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Run
Code:
modprobe coretemp
as root. Check '/etc/init.d/lm_sensors' for any other modules that need to be loaded.

It will work if you have the 'SENSORS_CORETEMP' module enabled in the kernel, which I see that you do not, so enable it first. In fact I recommend enabling all the hardware monitoring modules there.
 
Old 05-02-2015, 07:43 PM   #9
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by metaschima View Post
Run
Code:
modprobe coretemp
as root. Check '/etc/init.d/lm_sensors' for any other modules that need to be loaded.

It will work if you have the 'SENSORS_CORETEMP' module enabled in the kernel, which I see that you do not, so enable it first. In fact I recommend enabling all the hardware monitoring modules there.
I needed to enable this option in the kernel before running. thank you

Code:
eric@slackware ~ sudo modprobe coretemp
eric@slackware ~ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8C  (crit = +105.0C)
temp2:        +29.8C  (crit = +105.0C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +28.0C  (high = +80.0C, crit = +100.0C)
Core 0:         +26.0C  (high = +80.0C, crit = +100.0C)
Core 1:         +23.0C  (high = +80.0C, crit = +100.0C)
Core 2:         +21.0C  (high = +80.0C, crit = +100.0C)
Core 3:         +25.0C  (high = +80.0C, crit = +100.0C)
How can I make this automatic?

And other temperatures as motherboard, memory, hard disk?
I installed HARDiNFO program but on the sensors shows nothing.

Edit:
Another thing, I did what you said, I moved to ACPI Processor P-States driver (X86_ACPI_CPUFREQ) and put Ondemand.

It happened what you said, appeared to boost option in / sys / devices / system / cpu / cpufreq / boost and was already 1 but monitoring the frequency I realized that is just 3.4GHz or the boost is not working. But using the Intel P States with powersave or performace frequency arrives at 4.5GHz as I determined by the motherboard.

Here one picture
http://i764.photobucket.com/albums/x...pscykrlcns.png

How to fix this?

Last edited by Candelabrus; 05-02-2015 at 07:56 PM.
 
Old 05-02-2015, 08:49 PM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
See the output of 'cpufreq-info'.

Also read about turbo boost:
https://en.wikipedia.org/wiki/Intel_Turbo_Boost

You can add
Code:
modprobe coretemp
and whatever other modules are in the file 'sensors-detect' generated to '/etc/rc.d/rc.local' and they will be loaded every boot.

The HDD usually has the temperature as part of the SMART system. Run 'smartctl -a /dev/sda'.

If you want more sensors, enable all the hardware monitoring modules and run 'sensors-detect' again. Say no when it says to 'generate /etc/sysconfig/lm_sensors', instead it will output the modules you need to modprobe to the terminal, add these to '/etc/rc.d/rc.local'.

The nvidia card usually has a sensor too, but sometimes it can only be accessed from within 'nvidia-settings' or other nvidia sensors program.
 
1 members found this post helpful.
Old 05-02-2015, 10:36 PM   #11
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Thanks again @metaschima i learned to much with you.

Dont have a program that shows all temperatures from my computer? Like HWMonitor?

Let me then make a summary of what could and missing
OK: I got the temperature of processors with sensors (I enabled in the kernel)
OK: I got the temperature of my vga with nvidia-settings
OK: I got the temperature of my HD's with smartctl -a /dev/sdx

OFF: Lack the temperature of my Memory RAM and my motherboard.
Code:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8C  (crit = +105.0C)
temp2:        +29.8C  (crit = +105.0C)
This temperature measuring is who?

Using Intel P States with Powersave

Code:
eric @ slackware ~ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
 driver: intel_pstate
 CPUs that run on the same hardware frequency: 0
 CPUs that need to have their frequency coordinated by software: 0
 longer transition latency: 0.97 ms.
 hardware limits: 800 MHz - 4:50 GHz
 cpufreq regulators available: performance, powersave
 current policy rate should be between 800 MHz and 4.50 GHz.
 The regulator "powersave" must decide which to use speed
 within that limit.
 current CPU frequency is 883 MHz.
*I'll just show the core1 to save text because they are equal to the rest

Here my list using Intel P State
Code:
eric@slackware cpufreq sudo cat scaling_available_governors 
performance powersave
Now i will change to ACPI P State and edit the topic

Ok, kernel updated with ACPI

Code:
eric@slackware ~ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 
acpi-cpufreq
Code:
eric@slackware ~ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
ondemand
Code:
eric@slackware ~ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
ondemand userspace
And cpufreq-info

Code:
eric @ slackware ~ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
 driver: acpi-cpufreq
 CPUs that run on the same hardware frequency: 0
 CPUs that need to have their frequency coordinated by software: 0
 most transition latency: 10.0 us.
 hardware limits: 800 MHz - 3.40GHz
 frequency levels available: 3.40GHz, 3.40GHz, 20.3 GHz, 3:00 GHz, 2.80 GHz, 2.70 GHz, 2:50 GHz, 2.30 GHz, 2.10 GHz, 1.90 GHz, 1.70 GHz, 1:50 GHz, 1:40 GHz, 1.20 GHz, 1000 MHz, 800 MHz
 cpufreq regulators available: ondemand, userspace
 current policy rate should be between 800 MHz and 3.40GHz.
 The governor "ondemand" must decide which to use speed
 within that limit.
 current CPU frequency is 3.40GHz.

Last edited by Candelabrus; 05-02-2015 at 10:54 PM.
 
Old 05-03-2015, 08:27 AM   #12
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Here is your processor info:
http://ark.intel.com/products/75048/...up-to-3_80-GHz
This means that acpi-cpufreq actually uses the correct frequency (3.4 Ghz), unless you are overclocking. With boost it will go to 3.8 GHz temporarily. Did you overclock it to 4.5 Ghz ?

Check the BIOS as it usually has a list of temperatures and what these temperatures are measuring. It is likely they are mobo temperatures.

You may be able to get voltages on the mobo if you enable the voltage monitoring modules, but I have not heard of RAM temperature monitoring.

Also try:
http://wpitchoune.net/blog/psensor/

Last edited by metaschima; 05-03-2015 at 08:31 AM.
 
Old 05-03-2015, 04:03 PM   #13
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by metaschima View Post
Here is your processor info:
http://ark.intel.com/products/75048/...up-to-3_80-GHz
This means that acpi-cpufreq actually uses the correct frequency (3.4 Ghz), unless you are overclocking. With boost it will go to 3.8 GHz temporarily. Did you overclock it to 4.5 Ghz ?

Check the BIOS as it usually has a list of temperatures and what these temperatures are measuring. It is likely they are mobo temperatures.

You may be able to get voltages on the mobo if you enable the voltage monitoring modules, but I have not heard of RAM temperature monitoring.

Also try:
http://wpitchoune.net/blog/psensor/
Yes. My stock frequency is 3.4ghz with boost 3.8ghz, but i use so for some time @ 4.5ghz i have one Corsair Hydro Series H110 to keep low temperatures

I will try to compile this program psensor
 
Old 05-03-2015, 04:09 PM   #14
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Oh, ok, I guess you have to use the the Intel P states driver if you are going to be overclocking.
 
Old 05-03-2015, 07:15 PM   #15
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
One more thing, you can to appear the sensors and voltage sensors in your Hardinfo panel?
Look an example.
Here not appear at all
http://www.ohbuntu.blogspot.com.br/2...tu-sensor.html

as the psensors, I managed to compile, install, appeared to his icon on the menu, but look at the message when you run it

Code:
eric@slackware ~ psensor 

(psensor:6830): GLib-GIO-ERROR **: Settings schema 'psensor' is not installed

Trace/breakpoint trap
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check for direct3d features supported by wine for my hardware 10110111 Linux - Software 1 07-29-2009 07:11 PM
LXer: Report: Linux Kernel Launches Hardware Management Features LXer Syndicated Linux News 0 05-07-2007 10:16 AM
What are the new Kernel 2.6 features? LinuxSeeker Linux - Software 1 02-27-2004 01:31 PM
Features Of Kernel 2.4.x WindozBytes Linux - General 6 11-11-2001 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration