Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] CoreFreq

Featured Replies

3 hours ago, Pillendreher said:

Quick question: What do the colours concerning the CPU's features at the bottom of the screen signify? E.g. @kdwg's screen shows "CPPC" as "green", yet mine shows it as "blue". What gives? Is "blue" better than "green"?

Indeed blue means capable, and green, enabled.

 

In your case CPPC is capable but not in function.

You can enable it in window "Performance Monitoring", item "Collaborative Processor Performance Control"

 

Remarks:

CPPC appears to be a firmware implementation, I can't tell what BIOS is going to do when enablement bit is set.

  • Replies 331
  • Views 74.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Ctrl + p To screenshot current screen. The output file corefreq-xxxxxx can then be read with command less -R   Alt + p To record everything as an ascii-cinema. Video duration can b

  • sittingmongoose
    sittingmongoose

    I didnt realize I had to start the plugin, it must have been autostart before.  I got it working, thank you!

  • corefreq.cfg has been made for the UI purpose only. Mainly that file will save the windows disposal.   Features involving Processor are not saved at any time.   After tuning p

Posted Images

Thanks for clearing that up. Curious since I enabled it in my mainboard's BIOS (or at least I think I did) a week ago...I'll go and recheck.

  • 3 weeks later...

Hi, I spend over 5 days trying to properly configure and run CoreFreq and now I've decided to ask for some help.

Issue:  After the installation of plugin there is no data in CoreFreq and almost always there is no way to register any driver.

 

I wonder if this is caused by CPU inconpatibility or BIOS config maybe?

 

CPU: i5 12500

MOBO: MAG B66M MORTAT WIFI DDR 4

 

I've used in CLI:

modprobe corefreqk Register_ClockSource=1 Register_CPU_Freq=1 Register_Governor=1 Register_CPU_Idle=1

 

echo "corefreq" > /sys/devices/system/clocksource/clocksource0/current_clocksource

 

syslinux.cfg:

default menu.c32
menu title Lime Technology, Inc.
prompt 0
timeout 50
label Unraid OS
  menu default
  kernel /bzimage 
  append initrd=/bzroot nmi_watchdog=0 modprobe.blacklist=i5500_temp,coretemp,intel_idle,intel_cstate,intel_uncore,acpi_cpufreq,pcc_cpufreq,intel_powerclamp,i7core_edac,intel_rapl_msr,intel_rapl_common,intel_pmc_bxt idle=halt intel_pstate=disable intel_idle.max_cstate=0 cpufreq.off=0 tsc=unstable nowatchdog make MSR_CORE_PERF_UCC=MSR_IA32_APERF MSR_CORE_PERF_URC=MSR_IA32_MPERF device=/dev/dri:/dev/dri
label Unraid OS GUI Mode
  kernel /bzimage 
  append initrd=/bzroot,/bzroot-gui nmi_watchdog=0 modprobe.blacklist=i5500_temp,coretemp,intel_idle,intel_cstate,intel_uncore,acpi_cpufreq,pcc_cpufreq,intel_powerclamp,i7core_edac,intel_rapl_msr,intel_rapl_common,intel_pmc_bxt idle=halt intel_pstate=disable intel_idle.max_cstate=0 cpufreq.off=0 tsc=unstable nowatchdog make MSR_CORE_PERF_UCC=MSR_IA32_APERF MSR_CORE_PERF_URC=MSR_IA32_MPERF device=/dev/dri:/dev/dri
label Unraid OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Unraid OS GUI Safe Mode (no plugins)
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui unraidsafemode
label Memtest86+
  kernel /memtest

 

tower-diagnostics-20220824-1736.zip

  • Author
2 hours ago, chchiyan said:
make MSR_CORE_PERF_UCC=MSR_IA32_APERF MSR_CORE_PERF_URC=MSR_IA32_MPERF device=/dev/dri:/dev/dri

What is this?

This shouldn't be there!

 

It should be however be possible to pass commands in the syslinux.conf through like this:

corefreqk.Register_ClockSource=1

 

Or even better you create a corefreqk.conf in the directory /boot/config/modprobe.d and enter the things that you want to add to the module from above there like:

Register_ClockSource=1 Register_CPU_Freq=1 Register_Governor=1 Register_CPU_Idle=1

 

However it is also necessary that you've upgrade to unRAID 6.11.0-rc4 to get this working because with this release the plugin packages are installed really early in the boot process which was in the previous releases not the case and with this CoreFreq should be now able to register as clock source.

 

@CyrIng I hope I've explained nothing wrong here.

Quote

What is this?

This shouldn't be there!

Removed

 

Quote

Or even better you create a corefreqk.conf in the directory /boot/config/modprobe.d and enter the things that you want to add to the module from above there like:

Done, but corefreqk.conf caused error during reboot. I've renamed it to corefreqk.cfg and now there is no error.

File and its content

STbUcVY.jpeg

 

Register_ClockSource=1 Register_CPU_Freq=1 Register_Governor=1 Register_CPU_Idle=1 nmi_watchdog=0 modprobe.blacklist=i5500_temp,coretemp,intel_idle,intel_cstate,intel_uncore,acpi_cpufreq,pcc_cpufreq,intel_powerclamp,i7core_edac,intel_rapl_msr,intel_rapl_common,intel_pmc_bxt idle=halt intel_pstate=disable intel_idle.max_cstate=0 cpufreq.off=0 tsc=unstable nowatchdog

 

Quote

However it is also necessary that you've upgrade to unRAID 6.11.0-rc4

Done

 

Unfortunately still nothing changed regarding CoreFreq.

Still no data monitored: peNw9Mg.jpeg

 

Also, when I'm trying to register Clock Source another error appears (same as before):

wRiFfOs.jpeg

 

Could you give me some clues what else can i do?

tower-diagnostics-20220824-2122.zip

  • Author
9 minutes ago, chchiyan said:

corefreqk.cfg

corefreq.conf not .cfg

 

If this also doesn't change it, please wait for @CyrIng.

  • Author
Just now, chchiyan said:

OK, the error below

How did you create that file? Through Windows?

I think I've forgot to write the options in front of the line it should look like this:

options Register_ClockSource=1 Register_CPU_Freq=1 Register_Governor=1 Register_CPU_Idle=1

 

Please wait for an answer from @CyrIng.

OK now there is no error but still no data in CoreFreq.

At first I've created file through windows but it is deleted and now done it via CLI

 

Quote

Please wait for an answer from

Thank you anyway :)

15 hours ago, chchiyan said:

Removed

 

Done, but corefreqk.conf caused error during reboot. I've renamed it to corefreqk.cfg and now there is no error.

File and its content

STbUcVY.jpeg

 

Register_ClockSource=1 Register_CPU_Freq=1 Register_Governor=1 Register_CPU_Idle=1 nmi_watchdog=0 modprobe.blacklist=i5500_temp,coretemp,intel_idle,intel_cstate,intel_uncore,acpi_cpufreq,pcc_cpufreq,intel_powerclamp,i7core_edac,intel_rapl_msr,intel_rapl_common,intel_pmc_bxt idle=halt intel_pstate=disable intel_idle.max_cstate=0 cpufreq.off=0 tsc=unstable nowatchdog

 

Done

 

Unfortunately still nothing changed regarding CoreFreq.

Still no data monitored: peNw9Mg.jpeg

 

Also, when I'm trying to register Clock Source another error appears (same as before):

wRiFfOs.jpeg

 

Could you give me some clues what else can i do?

tower-diagnostics-20220824-2122.zip 73.91 kB · 0 downloads

 

Hello,

 

I have checked your logs/syslog.txt for a possible driver crash, but don't find any.

 

Do you mind to try my ISO ?

https://github.com/cyring/CoreFreq/wiki/Live-CD

I've tried ISO and there are many errors during boot time.

Both in regular version and Bare-Metal.

 

Flash disk made in Rufus

IMG_20220825_160719.jpg

Edited by chchiyan

22 minutes ago, chchiyan said:

I've tried ISO flash and there are many errors during boot time.

Both in regular version and Bare-Metal

IMG_20220825_160719.jpg

Messages seems linked to file system errors : is the USB key of good quality ? Or the downloaded image corrupted ? 

 

You can also boot any other Linux with kernel development kit and build/try CoreFreq from it. 

 

I have preliminary reports of Alder lake, most "k" models have been tested/enhanced. 

See CPU Support page within the CoreFreq Github repo. 

OK, after reformat USB drive is working fine.

Anyway CoreFreq is behaving the same as in Unraid - no data 

IMG_20220825_190638.jpg

 

#EDIT

Tried reset BIOS config to defaults but still nothing

Edited by chchiyan

4 minutes ago, chchiyan said:

OK, after reformat USB drive is working fine.

Anyway CoreFreq is behaving the same as in Unraid - no data 

IMG_20220825_190638.jpg

Please exit CLI to go back to shell then check for any driver crash using "dmesg" 

 

CoreFreq is in directory /opt

You can "make" and just "insmod corefreq.ko" from it. 

Then read "dmesg" immediately for any crash. 

28 minutes ago, chchiyan said:

OK, after reformat USB drive is working fine.

Anyway CoreFreq is behaving the same as in Unraid - no data 

IMG_20220825_190638.jpg

Please exit CLI to go back to shell then check for any driver crash using "dmesg" 

 

CoreFreq is in directory /opt

You can "make" and just "insmod corefreq.ko" from it. 

Then read "dmesg" immediately for any crash. 

@chchiyan

What's new for CoreFreq is that i5-12500 has no E-core

I think the early CPU topology built by driver is messed up. 

You may a chance to start driver by binding the Service Processor to a P-core. 

 

Let's try to bind to first CPU :

 

"insmod corefreq.ko ServiceProcessor=0"

 

Then starts Daemon and CLI. 

@CyrIng

Probably i'm doing something wrong

 

EDIT

Also i can't scroll up after "dmesg" - shift + up / page up, ctrl + shift up / page up doesn't work 🙃

 

 

IMG_20220825_204425.jpg

Edited by chchiyan

5 hours ago, chchiyan said:

@CyrIng

Probably i'm doing something wrong

 

EDIT

Also i can't scroll up after "dmesg" - shift + up / page up, ctrl + shift up / page up doesn't work 🙃

 

 

IMG_20220825_204425.jpg

 

Check syntax of driver name. Try again with:
 

insmod corefreqk.ko ServiceProcessor=0

 

Next starts Daemon in background mode:

 

./corefreqd -q &

 

And dump Processor information using CLI:

 

./corefreq-cli -s -n -m

 

EDIT:

Before entering the above commands, it would be easier to boot from a plain shell. This will avoid the messed terminal you have encountered.

While the ISO is loading, when you are asked to abort, press [Ctrl]+[c] to go straight to the shell.

Change then to /opt/CoreFreq and do a "make"

And continue with CoreFreq starts commands

Edited by CyrIng

Done, dump in attachment.

I can't show you more because of scroll up issue

IMG_20220826_000539.jpg

2 hours ago, chchiyan said:

Done, dump in attachment.

I can't show you more because of scroll up issue

IMG_20220826_000539.jpg

Good! we have data but is the monitoring loop working ?

 

Can you now enter "corefreq-cli -c 3"

Seems to be stuck, just pointer is blinking

16614656676987911572270437668780.jpg

@chchiyan

At any time, you can paginate a single output with "less" like:

 

corefreq-cli -s | less

You mean in the place where I'm now?

 

16614660761094948790722293289590.jpg

nano corefreqk.c

## go to function Start_Alderlake at lines 16751
## in the switch statement you will find 3 case which starts Pcore monitoring
## you will add a default condition below these cases, like:

    case Hybrid_Core:
    case Hybrid_RSVD1:
    case Hybrid_RSVD2:
    default:
	    SMT_Counters_Alderlake_Pcore(Core, 0);

## You will do the same in function InitTimer_Alderlake at lines 16737
    case Hybrid_Core:
    case Hybrid_RSVD1:
    case Hybrid_RSVD2:
    default:
	    smp_call_function_single(cpu, InitTimer, Cycle_Alderlake_Pcore, 1);

 

Save changes pressing [F3] and exit nano with [2]

 

Then you rebuild CoreFreq

make clean all

 

Stop the Daemon if it's still running with "kill %1" and unload driver with "rmmod corefreqk.ko"

 

Now you start CoreFreq from this fresh build.

2 hours ago, chchiyan said:

You mean in the place where I'm now?

 

16614660761094948790722293289590.jpg

Now CoreFreq is stuck

Please reboot from USB key; abort auto compilation

Go to /opt/CoreFreq

And apply the source code changes in corefreqk.c (see above)

Make and Run

Damn it works :)

@CyrIng I really appreciate yours and @ich777 help and patience for dumb questions 

16614687440166699094632986185395.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.