Jump to content
XPEnology Community
  • 0

cpufreq and powernow-k8 modules


neverstopdreaming

Question

Recommended Posts

  • 0

Hi everyone, i updated to latest xpenology and wanted to use cpufreq. But when i want to use cpufreq-info i only get:

 

DiskStation> cpufreq-info
-ash: cpufreq-info: not found

 

What am i doing wrong?

 

My CPU is a:

CPU0: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz stepping 0d

Link to comment
Share on other sites

  • 0
holybabel said:
Hi everyone, i updated to latest xpenology and wanted to use cpufreq. But when i want to use cpufreq-info i only get:

 


DiskStation> cpufreq-info
-ash: cpufreq-info: not found
 

 

What am i doing wrong?

 

My CPU is a:


CPU0: Intel(R) Core(TM)2 Duo CPU     E4500  @ 2.20GHz stepping 0d
 

 

You have to install/enable ipkg https://xpenology.com/forum/topic/1342-install-ipkg-on-dsm-50 and then install the package "cpufrequtils":

ipkg install cpufrequtils
 
Link to comment
Share on other sites

  • 0
Balrog said:

You have to install/enable ipkg https://xpenology.com/forum/topic/1342-install-ipkg-on-dsm-50 and then install the package "cpufrequtils":


ipkg install cpufrequtils
 

 

Thanks, now cpufreq-info works. But the insmod command doens't work:

 

DiskStation> insmod /lib/modules/acpi-cpufreq.ko
insmod: can't insert '/lib/modules/acpi-cpufreq.ko': Input/output error
 

 

Will try to solve this problem.

Link to comment
Share on other sites

  • 0
Tankowiec> cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
 driver: powernow-k8
 CPUs which run at the same hardware frequency: 0
 CPUs which need to have their frequency coordinated by software: 0
 maximum transition latency: 8.0 us.
 hardware limits: 800 MHz - 2.20 GHz
 available frequency steps: 2.20 GHz, 1.90 GHz, 1.60 GHz, 1.30 GHz, 800 MHz
 available cpufreq governors: conservative, powersave, performance, ondemand, userspace
 current policy: frequency should be within 800 MHz and 2.20 GHz.
                 The governor "conservative" may decide which speed to use
                 within this range.
 current CPU frequency is 800 MHz (asserted by call to hardware).
 cpufreq stats: 2.20 GHz:0.29%, 1.90 GHz:0.59%, 1.60 GHz:1.68%, 1.30 GHz:2.56%, 800 MHz:94.88%  (317669)
analyzing CPU 1:
 driver: powernow-k8
 CPUs which run at the same hardware frequency: 1
 CPUs which need to have their frequency coordinated by software: 1
 maximum transition latency: 8.0 us.
 hardware limits: 800 MHz - 2.20 GHz
 available frequency steps: 2.20 GHz, 1.90 GHz, 1.60 GHz, 1.30 GHz, 800 MHz
 available cpufreq governors: conservative, powersave, performance, ondemand, userspace
 current policy: frequency should be within 800 MHz and 2.20 GHz.
                 The governor "conservative" may decide which speed to use
                 within this range.
 current CPU frequency is 800 MHz (asserted by call to hardware).
 cpufreq stats: 2.20 GHz:0.06%, 1.90 GHz:0.07%, 1.60 GHz:0.08%, 1.30 GHz:0.16%, 800 MHz:99.63%  (13669)
Tankowiec>

 

As you see, my cpus are sitting at lowest frequency for most of time. Even if governors were revert to performance, for max 10 minutes they will back to conservative. I noticed that wake disks from hibernation changes governor to performance.

Thanks for sharing your observations. Certain processes are changing the cpufreq governor for sure. Haven't got optware installed to check but I've since dropped the interval to 10 min and it's quite acceptable now.

Link to comment
Share on other sites

  • 0

Hello, tried this on Gen8 Microserver with G2020T.

 

Gen8_NAS> /usr/local/etc/rc.d/S99PowersavingINTEL.sh
grep: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory
/usr/local/etc/rc.d/S99PowersavingINTEL.sh: line 7: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: nonexistent directory
grep: /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: No such file or directory
/usr/local/etc/rc.d/S99PowersavingINTEL.sh: line 7: can't create /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor: nonexistent directory

 

Gen8_NAS> insmod /lib/modules/powernow-k8.ko
insmod: can't insert '/lib/modules/powernow-k8.ko': No such device

 

What i need to do? :smile:

Link to comment
Share on other sites

  • 0

Chill, i did..

 

u seen my first quote?

 

Gen8_NAS> echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-ash: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: nonexistent directory

 

Gen8_NAS> cd /usr/local/etc/rc.d/
Gen8_NAS> ls
S99PowersavingINTEL.sh

 

I dont have the /sys/devices/system/cpu/cpu0/cpufreq/ dirrectory..

 

 

Gen8_NAS> cd /sys/devices/system/cpu/cpu0
Gen8_NAS> ls
cache             cpuidle           crash_notes       thermal_throttle  topology
Gen8_NAS>

Link to comment
Share on other sites

  • 0

Hi all,

 

I can't create any file/folder under the cpu0 folder, could anyone shed me some light on it, please?

 

DiskStation> pwd
/sys/devices/system/cpu/cpu0
DiskStation> ls
cache        crash_notes  topology
DiskStation> mkdir /sys/devices/system/cpu/cpu0/cpufreq
mkdir: can't create directory '/sys/devices/system/cpu/cpu0/cpufreq': No such file or directory
DiskStation> /usr/local/etc/rc.d/S99PowersavingINTEL.sh
mkdir: can't create directory '/sys/devices/system/cpu/cpu0/cpufreq': No such file or directory
grep: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory
/usr/local/etc/rc.d/S99PowersavingINTEL.sh: line 10: can't create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: nonexistent directory

Link to comment
Share on other sites

  • 0

> dmesg|grep cpufreq

[   38.085916] Modules linked in: usbhid hid usblp usb_storage ip6t_LOG nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables xt_limit xt_state xt_tcpudp xt_multiport ipt_LOG nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_filter ip_tables x_tables bromolow_synobios(P) adt7475 i2c_i801 btrfs synoacl_vfs(P) zlib_deflate hfsplus md4 hmac tn40xx(O) i2c_algo_bit fuse vfat fat chainiv cpufreq_conservative cpufreq_powersave cpufreq_performance cpufreq_ondemand mperf processor cpufreq_stats freq_table dm_snapshot crc_itu_t quota_v2 quota_tree psnap p8022 llc sit tunnel4 zram(C) etxhci_hcd xhci_hcd ehci_hcd uhci_hcd ohci_hcd usbcore usb_common 3w_sas 3w_9xxx mvsas arcmsr megaraid_sas megaraid_mbox megaraid_mm mpt2sas mptsas mptspi mptscsih mptbase scsi_transport_spi scsi_wait_scan sg ata_piix sata_uli sata_svw sata_qstor sata_sis pata_sis stex sata_sx4 sata_promise sata_nv sata_via sata_sil pdc_adma iscsi_tcp libiscsi_tcp libiscsi enic qlge qlcnic qla3xxx netxen_nic mlx4_en mlx4_core cnic ipv6 bnx2x bna be2net sis900 sis190 atl1e(O) atl1c atl2(O) atl1(O) alx(O) sky2 skge via_velocity crc_ccitt via_rhine r8101 r8168 r8169 8139too 8139cp tg3 broadcom libphy bnx2 ssb(O) uio forcedeth ixgbe ixgb igb ioatdma e1000e e1000 e100 dca pcnet32 amd8111e mdio mii container thermal_sys compat(O) cryptd ecryptfs sha512_generic sha256_generic sha1_generic ecb aes_x86_64 authenc des_generic libcrc32c crc32c eseqiv krng ansi_cprng cts rng aes_generic md5 cbc cryptomgr pcompress aead crypto_hash crypto_blkcipher crypto_wq crypto_algapi [last unloaded: i2c_i801]

 

> cpufreq-info

-ash: cpufreq-info: not found

 

> grep "MHz" /proc/cpuinfo

cpu MHz         : 1666.848
cpu MHz         : 1666.848
cpu MHz         : 1666.848
cpu MHz         : 1666.848

 

> lsmod

Module                  Size  Used by    Tainted: P
ip6t_LOG                7518  0
nf_conntrack_ipv6       4984  0
nf_defrag_ipv6          6101  1 nf_conntrack_ipv6
ip6table_filter         1123  1
ip6_tables             16803  2 ip6t_LOG,ip6table_filter
xt_limit                1785  5
ipt_LOG                 7226  0
tun                    14009  2
snd_pcm_oss            35089  0
snd_mixer_oss          13941  1 snd_pcm_oss
snd_usb_audio          92379  0
snd_pcm                65442  2 snd_pcm_oss,snd_usb_audio
snd_timer              17622  1 snd_pcm
snd_hwdep               5916  1 snd_usb_audio
snd_usbmidi_lib        17957  1 snd_usb_audio
snd_rawmidi            17737  1 snd_usbmidi_lib
snd_seq_device          4852  1 snd_rawmidi
snd                    48530  9 snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_pcm,snd_timer,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq_device
snd_page_alloc          6769  1 snd_pcm
soundcore               4738  1 snd
xfrm6_mode_transport     1282  0
xfrm4_mode_transport     1218  0
xfrm6_mode_tunnel       1640  0
xfrm4_mode_tunnel       1768  0
xfrm6_mode_beet         1730  0
xfrm4_mode_beet         1827  0
deflate                 1855  0
authencesn              7355  0
ipcomp6                 1932  0
ipcomp                  1868  0
xfrm6_tunnel            2937  1 ipcomp6
xfrm4_tunnel            1665  0
tunnel6                 1992  1 xfrm6_tunnel
esp6                    5681  0
esp4                    6093  0
ah6                     5187  0
ah4                     5042  0
xfrm_ipcomp             3604  2 ipcomp6,ipcomp
af_key                 25899  0
xfrm_user              22896  2
ipt_MASQUERADE          1610  2
ipt_REDIRECT            1071  0
iptable_nat             3595  1
nf_nat                 13286  3 ipt_MASQUERADE,ipt_REDIRECT,iptable_nat
ppp_deflate             3802  0
bsd_comp                5058  0
ppp_mppe                6211  0
arc4                    1282  0
ppp_async               6930  0
ppp_generic            17554  4 ppp_deflate,bsd_comp,ppp_mppe,ppp_async
slhc                    4842  1 ppp_generic
iscsi_target_mod      223479  8
target_core_mod       336306 13 iscsi_target_mod
iscsi_rodsp            13569  0
iscsi_extent_pool     123915  1
configfs               22582  4 iscsi_target_mod,target_core_mod,iscsi_extent_pool
cifs                  238853  4
udf                    78123  0
isofs                  32700  0
loop                   16944  0
usbhid                 25115  0
hid                    51570  1 usbhid
usblp                  10507  0
usb_storage            47138  1
xt_state                1135  0
xt_tcpudp               2343  8
xt_multiport            1630  0
nf_conntrack_ipv4       9820  3 iptable_nat,nf_nat
nf_defrag_ipv4          1147  1 nf_conntrack_ipv4
nf_conntrack           46805  6 nf_conntrack_ipv6,ipt_MASQUERADE,iptable_nat,nf_nat,xt_state,nf_conntrack_ipv4
iptable_filter          1152  1
ip_tables              15451  2 iptable_nat,iptable_filter
x_tables               15491 13 ip6t_LOG,ip6table_filter,ip6_tables,xt_limit,ipt_LOG,ipt_MASQUERADE,ipt_REDIRECT,iptable_nat,xt_state,xt_tcpudp,xt_multiport,iptable_filter,ip_tables
bromolow_synobios      39871  0
adt7475                28755  0
i2c_i801                7860  0
btrfs                 769689  0
synoacl_vfs            16467  2
zlib_deflate           20308  3 deflate,ppp_deflate,btrfs
hfsplus                92466  0
md4                     3369  0
hmac                    2697  2
tn40xx                 25147  0
i2c_algo_bit            5103  0
fuse                   79264  0
vfat                    9881  1
fat                    49327  1 vfat
chainiv                 3019  0
cpufreq_conservative     4817  0
cpufreq_powersave        862  0
cpufreq_performance      898  0
cpufreq_ondemand        5844  0
mperf                   1083  0
processor              24576  0
cpufreq_stats           2921  0
freq_table              2346  2 cpufreq_ondemand,cpufreq_stats
dm_snapshot            27424  0
crc_itu_t               1235  1 udf
quota_v2                3639  4
quota_tree              7897  1 quota_v2
psnap                   1749  0
p8022                    979  0
llc                     3409  2 psnap,p8022
sit                    10265  0
tunnel4                 2125  2 xfrm4_tunnel,sit
zram                    8127  2
etxhci_hcd             84208  0
xhci_hcd               80459  0
ehci_hcd               39920  0
uhci_hcd               22372  0
ohci_hcd               21016  0
usbcore               160156 11 snd_usb_audio,snd_usbmidi_lib,usbhid,usblp,usb_storage,etxhci_hcd,xhci_hcd,ehci_hcd,uhci_hcd,ohci_hcd
usb_common               826  1 usbcore
3w_sas                 21561  0
3w_9xxx                33841  0
mvsas                  52335  0
arcmsr                 28497  0
megaraid_sas           73884  0
megaraid_mbox          27377  0
megaraid_mm             7816  1 megaraid_mbox
mpt2sas               140145  0
mptsas                 38833  0
mptspi                 13015  0
mptscsih               19233  2 mptsas,mptspi
mptbase                62560  3 mptsas,mptspi,mptscsih
scsi_transport_spi     19519  1 mptspi
scsi_wait_scan           671  0
sg                     23838  0
ata_piix               22040  0
sata_uli                2961  0
sata_svw                4506  0
sata_qstor              5601  0
sata_sis                3841  0
pata_sis               10687  1 sata_sis
stex                   14517  0
sata_sx4                9401  0
sata_promise           10820  0
sata_nv                20460  0
sata_via                7888  0
sata_sil                8029  0
pdc_adma                5953  0
iscsi_tcp               8833  0
libiscsi_tcp           12772  1 iscsi_tcp
libiscsi               35035  2 iscsi_tcp,libiscsi_tcp
enic                   54827  0
qlge                   80919  0
qlcnic                115143  0
qla3xxx                36811  0
netxen_nic             89031  0
mlx4_en                49321  0
mlx4_core              88390  1 mlx4_en
cnic                   50798  0
ipv6                  279797 68 nf_conntrack_ipv6,nf_defrag_ipv6,xfrm6_mode_tunnel,xfrm6_mode_beet,ipcomp6,xfrm6_tunnel,tunnel6,esp6,ah6,sit,cnic
bnx2x                 454159  0
bna                   111909  0
be2net                 67577  0
sis900                 18623  0
sis190                 16887  0
atl1e                  28423  0
atl1c                  31808  0
atl2                   23089  0
atl1                   29960  0
alx                    28185  0
sky2                   46644  0
skge                   38135  0
via_velocity           29687  0
crc_ccitt               1235  2 ppp_async,via_velocity
via_rhine              21252  0
r8101                 102030  0
r8168                 255279  0
r8169                  46722  0
8139too                17806  0
8139cp                 19088  0
tg3                   134090  0
broadcom                6950  0
libphy                 15808  2 tg3,broadcom
bnx2                   72430  0
ssb                    37439  0
uio                     7552  1 cnic
forcedeth              51189  0
ixgbe                 135089  0
ixgb                   38545  0
igb                   157117  0
ioatdma                36910  0
e1000e                193427  0
e1000                  96910  0
e100                   29098  0
dca                     4856  3 ixgbe,igb,ioatdma
pcnet32                30583  0
amd8111e               16274  0
mdio                    3365  3 bnx2x,alx,ixgbe
mii                     3771 10 sis900,sis190,atl1,via_rhine,r8169,8139too,8139cp,e100,pcnet32,amd8111e
container               2269  0
thermal_sys            13906  1 processor
compat                 16747  5 atl1e,atl2,atl1,alx,ssb
cryptd                  7392  0
ecryptfs               90626  0
sha512_generic          5193  0
sha256_generic          9973  0
sha1_generic            2206  0
ecb                     1945  0
aes_x86_64              7363  0
authenc                 6504  0
des_generic            15979  0
libcrc32c                906  1 bnx2x
crc32c                  2664  2
eseqiv                  2694  0
krng                    1065  1
ansi_cprng              3509  0
cts                     3808  0
rng                     1837  4 chainiv,eseqiv,krng,ansi_cprng
aes_generic            25946  1 aes_x86_64
md5                     2153  4
cbc                     2576  0
cryptomgr               2488  0
pcompress               1429  0
aead                    5635  6 authencesn,esp6,esp4,cryptd,authenc,cryptomgr
crypto_hash            11436 15 authencesn,ah6,ah4,cifs,btrfs,md4,hmac,cryptd,sha512_generic,sha256_generic,sha1_generic,authenc,libcrc32c,crc32c,md5
crypto_blkcipher       12503  9 authencesn,chainiv,cryptd,ecryptfs,ecb,authenc,eseqiv,cts,cbc
crypto_wq                743  2 chainiv,cryptd
crypto_algapi          11749 21 deflate,authencesn,arc4,hmac,chainiv,cryptd,ecb,aes_x86_64,authenc,des_generic,eseqiv,krng,ansi_cprng,cts,aes_generic,cbc,cryptomgr,pcompress,aead,crypto_hash,crypto_blkcipher

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...