From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0378c6bfc1794b3322e00aac6821392c@coraid.com> References: <0378c6bfc1794b3322e00aac6821392c@coraid.com> Date: Sun, 15 Dec 2013 20:35:23 -0600 Message-ID: From: Blake McBride To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a1135fb34edc8e804ed9da974 Subject: Re: [9fans] 9front pegs CPU on VMware Topicbox-Message-UUID: 9e072892-ead8-11e9-9d60-3106f5b1d025 --001a1135fb34edc8e804ed9da974 Content-Type: text/plain; charset=ISO-8859-1 Thanks. That fixed the problem. For the faint at heart, here is what I did: cd /sys/src/9/pc acme main.c At the bottom of the file there is a function named idlehands(void). Change that function to do nothing but call halt(). Then, from that same directory, build the kernel with: mk 'CONF=pcf' Then install the kernel with: 9fs 9fat cp 9pcf /n/9fat Halt the system with: fshalt Reboot the machine. On Sun, Dec 15, 2013 at 7:52 PM, erik quanstrom wrote: > > I am running 9plan on VMware Fusion successfully, however, the CPU is > > pegged. I've seen this before with DOS. Basically the OS has its own > idle > > loop so VMware sees it as always using CPU. There is a patch to fix this > > issue with a DOS guest. Any ideas with 9front? > > change idlehands in /sys/src/9/pc to call halt unconditionally instead of > whatever it's doing now. > > - erik > > --001a1135fb34edc8e804ed9da974 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks. =A0That fixed the problem. =A0For the faint at hea= rt, here is what I did:

=A0 =A0=A0cd=A0/sys= /src/9/pc
=A0 =A0=A0acme main.c

At the bottom of the file there is a function named idlehands(void). =A0Change that function to do nothing but call halt<= span id=3D"595c99c7-4ab2-4d21-884b-3b0b51e8275c" class=3D"GINGER_SOFTWARE_m= ark">().

Then, from that same directory, build the kernel with:<= /div>

=A0 =A0=A0m= k 'CONF=3Dpcf'

Then install the kernel with:

=A0 =A0 9fs 9fat
=A0 =A0 cp=A09pcf /n/9fa= t

<= font color=3D"#000000">Halt the system with:

= =A0 =A0 fshalt

Reboot the machine.




<= /div>


On Sun, Dec 15, 2013 at 7:52 PM, erik quanstrom <quanstro@labs.cora= id.com> wrote:
> I am running 9plan on VMware Fusion successfully, ho= wever, the CPU is
> pegged. =A0I've seen this before with DOS. =A0Basically the OS has= its own idle
> loop so VMware sees it as always using CPU. =A0There is a patch to fix= this
> issue with a DOS guest. =A0Any ideas with 9front?

change idlehands in /sys/src/9/pc to call halt unconditionally instea= d of
whatever it's doing now.

- erik


--001a1135fb34edc8e804ed9da974--