I want to squeeze more power from my FreeBSD desktop. Trivia like shortening boot time or using lightweight WM already done.
I've recompiled everything from scratch, setting march='my CPU model'
I've got nice partition layout, as described in man tuning.
I've followed a few guides on the net, which gave me:
sysctl.conf:
Code:
kern.maxfiles=49312 # I know what it does
kern.sched.preempt_thresh=224 # But what bigger preemption treshold really means? It won't kick apps to the end of a queue so often? Cause it's how I understand it...
kern.ipc.shm_allow_removed=1 # Only info I've found is that it's disabled by default for security reasons, but otherwise it's safe to use...
kern.ipc.shmmax=67108864 # Know what it does.
kern.ipc.shmall=32768 # But not really sure about values... I have heard that it's enough to boost X. And yeah, it feels a bit more responsive...
Any resources/explanations are very welcome
rc.conf:
Code:
ifconfig_em0="DHCP"
sshd_enable="NO"
ntpd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="in.pool.ntp.org"
powerd_enable="YES"
powerd_flags="-a hiadaptive"
hald_enable="YES"
dbus_enable="YES"
dumpdev="NO"
sendmail_enable="NONE"
sendmail_msp_queue_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
cupsd_enable="YES"
devfs_system_ruleset="system"
clear_tmp_enable="YES"
clean_tmp_X="YES"
I guess nothing interesting here, besides powerd settings maybe...
loader.conf:
Code:
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.maxproc=10000
tmpfs_load="YES"
hint.acpi_throttle.0.disabled="1" # This one I don't really get...
kern.timecounter.hardware=HPET # This one I don't really get...
kern.hz=1000 # Back on linux I had to choose that @ compilation time :) Maybe there is a parameter to set it, but I don't know about any...
vfs.read_max=32 # Rise it?
Hmm... What else can I do? And why should/will it work?
P.S.
FreeBSD tweakability is absolutely awesome!