News: This forum is now permanently frozen.
Pages: [1]
Topic: change underlying bsd sceduler  (Read 780 times)
« on: January 29, 2013, 15:38:49 »
xuedi *
Posts: 1

Hello,

i run monowall inside virtualbox on my server, it connects the internal virtual network with the outside net. It works like charm, but when the system is completely idle monowall eats up lots of cpu cycles. I know this from the Linux world when the kernel scheduler is on set on 1000HZ it will even in idlemode bother its host. In the Linux kernel you can change this setting quite easly.

Can you change this in the BSD kernel as well, and how complex with be the self build of the monowall system with such modification?

Cheers
xuedi
« Reply #1 on: January 29, 2013, 16:11:42 »
Јаневски ***
Posts: 153

I used to decompress and hex edit the image and change it from 1000HZ to 100HZ, when runing on overpowered virtualized environment.

As far as I can see, there are sysctl variables I believe have something to do with it:
kern.clockrate: hz; tick; profhz; stathz;
kern.timecounter.choice
kern.sched.quantum

I think i tampered kern.clockrate.hz, I can't quite remember.

I know that it dramatically decreased CPU usage in my scenario while functioning still without serious performance degradation. I packed multiple m0n0s on PIIIs and PIVs.
« Last Edit: January 29, 2013, 16:18:23 by Јаневски »

 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines