[torqueusers] OS X x86 workaround for torque

Glen Beane glen.beane at gmail.com
Sat Dec 9 09:25:58 MST 2006


  OS X on x86:

Apple is phasing out /dev/mem and /dev/kmem support in their kernel.
The kernel for OS X "Tiger" on x86 is the first kernel to be shipped
with support for /dev/mem and /dev/kmem to be disabled. Since pbs_mom
uses libkvm (kvm_open, kvm_read) on Darwin, and libkvm depends on
/dev/kmem, pbs_mom will not run on any Intel based Macs.

There is a temporary work around for this.  Even though /dev/mem and
/dev/kmem are not enabled by default on x86 Macs,  the kernel still
supports these devices. In order to re-enable /dev/kmem, and therefore
allow current versions of TORQUE to work, you must set the "kmem=1"
boot argument. This argument will tell the kernel to enable the
/dev/mem and /dev/kmem devices. You can enable this boot argument by
adding kmem=1 to the boot-args nvram variable.

First check to see if there are already boot arguments by typing
"nvram -p | grep boot-args".  If there are already boot arguments, you
should copy these arguments when you set the new value.  If there are
no boot args, then just run nvram boot-args="kmem=1" as root.

Reboot the system, and check to see if /dev/mem and /dev/kmem exist.
If they do then you are ready to run TORQUE on your Intel Macintosh
computer.

This is only a temporary fix, as it is expected this support will be
completely removed from future kernel releases. Any functionality
obtained through libkvm will have to be re-implemented using other
kernel interfaces available. This work is currently in progress.

I have tested this, and it seems to be a vaild work around while we
work to remove the dependency on libkvm.


More information about the torqueusers mailing list