9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Blake McBride <blake@mcbride.name>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 9front pegs CPU on VMware
Date: Sun, 15 Dec 2013 20:35:23 -0600	[thread overview]
Message-ID: <CABwHSOstQ8nust+=GxvCy8c-uOJuaa09SLdvhg_7vHRarZ0QnQ@mail.gmail.com> (raw)
In-Reply-To: <0378c6bfc1794b3322e00aac6821392c@coraid.com>

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

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 <quanstro@labs.coraid.com>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
>
>

[-- Attachment #2: Type: text/html, Size: 2965 bytes --]

  reply	other threads:[~2013-12-16  2:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-16  1:49 Blake McBride
2013-12-16  1:52 ` erik quanstrom
2013-12-16  2:35   ` Blake McBride [this message]
2013-12-16  2:58     ` andrey mirtchovski
2013-12-16  3:05       ` Blake McBride
2013-12-16 10:17     ` cinap_lenrek
2013-12-16 14:57       ` Blake McBride
2013-12-16 15:34         ` erik quanstrom
2013-12-16 16:25           ` Matthew Veety
2013-12-16 16:59             ` erik quanstrom
2013-12-17 11:00           ` cinap_lenrek
2013-12-17 13:38             ` erik quanstrom
2013-12-17 14:14               ` erik quanstrom
2013-12-19  9:01             ` Gorka Guardiola Muzquiz
2013-12-19 14:16               ` Gorka Guardiola
2013-12-19 15:19               ` erik quanstrom
2013-12-19 15:57                 ` Gorka Guardiola
2013-12-19 16:15                   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABwHSOstQ8nust+=GxvCy8c-uOJuaa09SLdvhg_7vHRarZ0QnQ@mail.gmail.com' \
    --to=blake@mcbride.name \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).