Subject: Re: 2 cpu's on gkrellm?
To: Paul (NCC/CS) <pts@bom.gov.au>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 01/31/2004 22:48:35
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-1911424883-1075610915=:345
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 1 Feb 2004, Paul (NCC/CS) wrote:

> I've just started running dual cpu's with the multiprocessor kernel.
> Both CPU's are running no problem.
>
> However gkrellm, doesn't show 2 cpu's though?
> (it does on a dual cpu box at work running linux)
>
> Is gkrellm supposed to show 2 cpu's with netbsd?
> any ideas or help appreciated,

Not gkrellm-1.2.13 -- that's hopeless -- but here's a patch for
gkrellm-2.1.24. (Latest is actually 2.1.25; the patch should apply
cleanly to that, too.) gkrellm-2 builds mostly out-of-the-box.
To build against gtk2 from pkgsrc, I had to move
"/usr/X11R6/lib/libfontconfig.so.1" out of the way, then "gmake
netbsd2 && gmake install_netbsd", then move "libfontconfig.so.1"
back... else you won't even be able to launch an xterm!

gkrellm-2 is client/server, which is really cool if you have a
bunch of hosts but only one Xserver. Works with IPv6, too.

Frederick
--0-1911424883-1075610915=:345
Content-Type: TEXT/plain; charset=US-ASCII; name="gkrellm-netbsd.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.58.0401312248350.345@seduction.immanent.net>
Content-Description: 
Content-Disposition: attachment; filename="gkrellm-netbsd.diff"

ZGlmZiAtdXIgZ2tyZWxsbS0yLjEuMjQuYmFrL3NyYy9zeXNkZXBzL25ldGJz
ZC5jIGdrcmVsbG0tMi4xLjI0L3NyYy9zeXNkZXBzL25ldGJzZC5jDQotLS0g
Z2tyZWxsbS0yLjEuMjQuYmFrL3NyYy9zeXNkZXBzL25ldGJzZC5jCTIwMDMt
MTAtMDggMTA6NTE6NTEuMDAwMDAwMDAwIC0wNTAwDQorKysgZ2tyZWxsbS0y
LjEuM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