News: This forum is now permanently frozen.
Pages: [1]
Topic: Possible for power managemnet  (Read 1718 times)
« on: February 20, 2013, 04:46:50 »
zcache *
Posts: 1


I almost familiar with pfsense. and with new beta edition of them, I also like the feature of cpu power management. so possible monowall will be include that function in new next edition release.

I use on Alix 2d13 not so impressive with pfsense. but every well on monowall. just hot case after working over 24h

please be consider.
« Reply #1 on: March 01, 2013, 17:20:45 »
iridris ***
Posts: 145

I would also find this feature rather useful (I'm running m0n0wall on an old Dell PC).

From what I can tell by a few google searches, to get CPU power scaling and powersaving, 'powerd' needs to be installed. For that to be installed, 'sysctl' needs to be installed. I'll try and see what it would take to add that to the image (though I've never made an image before, so I may not be able to find the answer).

I know the goal of m0n0wall is to stay small and light, but 'sysctl' would allow so many other features that it'd really be nice to have it in the image.
« Reply #2 on: March 01, 2013, 19:48:35 »
iridris ***
Posts: 145

So after doing a bit of digging, it turns out 'sysctl' is actually included in m0n0wall. Using that, I was able to manually adjust my CPU speed. I do have a kill-a-watt to measure the energy usage, but I'm not at the m0n0wall's location right now to check it.

The commands I used (on exec.php):
This will list the various CPU speed options.
$ sysctl dev.cpu.0.freq_levels
dev.cpu.0.freq_levels: 2392/-1 2093/-1 1794/-1 1495/-1 1196/-1 897/-1 598/-1

And this will set it to a speed:
$ sysctl dev.cpu.0.freq=897
dev.cpu.0.freq: 897 -> 897

Before setting this, the CPU was running at 2392Mhz. When maxing out my internet connection, CPU usage was less than 5%. Now that I dropped the CPU down to 897Mhz, CPU usage at full internet speed is around 55%. I could probably drop it down one more level and still be fine.
Pages: [1]
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines