OpenBSD: Patch apmd for SMP architectures


APMD does not scale the cpu frequency very well. A patch has been provided in a mail list and can be downloaded from:

http://junkpile.org/apmd.diff

or right from here: apmd.diff (remember to remove .doc extension)

src.tar.gz is needed to compile apmd. For OpenBSD 5.1 amd64 could be obtained from:

http://ftp.spline.de/pub/OpenBSD/5.1/

I modified the patch to point to my apmd.c (/usr/src/usr.sbin/apmd/apmd.c). So in the patch I replace this line:

RCS file: /cvs/src/usr.sbin/apmd/apmd.c,v

by this one:

RCS file: /usr/src/usr.sbin/apmd/apmd.c,v

Then I applied the patch:

patch < apmd.diff

And then I recompile apmd:

cd /usr/src/usr.sbin/apmd

make

make install

Now apmd scales pretty well. Performance is much much better now.

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in BSD, OpenBSD. Bookmark the permalink.

One Response to OpenBSD: Patch apmd for SMP architectures

  1. Pingback: OpenBSD: Laptop cpu temperature control with APM | nix/bsd

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s