Disable moused on a FreeBSD Xen guest
SoftwareI run FreeBSD instances on a cloud running Xen. Compared to the Linux instances, it performs better with less memory and has a better mascot, surprising nobody.
Looking through memory usage though, I saw this:
653 root 1 20 0 16628K 1940K select 0:00 0.00% moused
I have a mouse, on a cloud instance? Sure enough, grepping dmesg:
ums0 <Endpoint1 Interrupt Pipe> on usbus0 ums0: 3 buttons and [Z] coordinates ID=0
From what I can tell, the hypervisor this instance is running on provides the default Xen USB mouse. This makes sense, after all you can run Windows instances or X11. FreeBSD detected this, and loaded moused.
Interestingly, adding the following to /etc/rc.conf
had no effect:
echo moused_enable="NO"
This post on geektivities had the answer, by specifying the interface:
moused_ums0_enable="NO"
Now the mouse doesn't load and use memory, however small that may have been. If you don't need it, may as well not load it.