<div>There was a long rolling thread a back around september 24th about VMS 4.7 and the idle, where I'd mentioned a smallish fix.. It does require rebuilding the source though.</div>
<div> </div>
<div>The fix had worked for me running BSD 4.3 RENO, and I'm assuming Gerry is running ok now on VMS 4.7 as I haven't heard anything.</div>
<div> </div>
<div>Basically you need to regress the settings in vax_cpu.c ...</div>
<div> </div>
<div>in version 3.7-1 (and friends) you'll find it was </div>
<div>uint32 cpu_idle_ipl_mask = 0x8;                         /* idle if on IPL 3 */<br>int32 cpu_idle_wait = 1000;                             /* for these cycles */</div>
<div> </div>
<div>to in 3.8<br>uint32 cpu_idle_ipl_mask = 0xB;                         /* idle if on IPL 3 */<br>int32 cpu_idle_wait = 200;                             /* for these cycles */</div>
<div> </div>
<div>So go ahead and change the 0xB to 0x8 & the 200 to 1000.</div>
<div>Lastly you need to alter the following table in vax_cpu.c from this:</div>
<div> </div>
<div>static struct os_idle os_tab[] = {<br>    { "VMS", 0x8 },<br>    { "NETBSD", 0x2 },<br>    { "ULTRIX", 0x2 },<br>    { "OPENBSD", 0x1 },<br>    { "32V", 0x1 },<br>    { NULL, 0 }<br>
    };</div>
<div> </div>
<div>to this:</div>
<div> </div>
<div>static struct os_idle os_tab[] = {<br>    { "VMS", 0xB },<br>    { "NETBSD", 0x2 },<br>    { "ULTRIX", 0x2 },<br>    { "OPENBSD", 0x1 },<br>    { "32V", 0x1 },<br>    { NULL, 0 }<br>
    };</div>
<div> </div>
<div>Then just run it set as 'VMS' and it'll be SIMILAR to how it was in the older versions.  I'm 99% sure of that is what I did, but currently the machine I'm on doesn't have usleep so I cannot verify 100%... I'll check later.</div>

<div> </div>
<div>Jason</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Thu, Dec 4, 2008 at 4:19 AM, roy hills <span dir="ltr"><<a href="mailto:royhills@hotmail.com">royhills@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I'm running 4.3BSD (Quasijarus) on SIMH VAX.  I also run 2.11BSD on SIMH PDP11.  I'm using the latest version of SIMH, v3.8.<br><br>On the 2.11BSD/PDP system I use "set throttle 4M", which gives a very responsive system (probably faster than a real PDP11) while using minimal host CPU.<br>
<br>I find I cannot use "set throttle" on the VAX: SIMH accepts the command, but it doesn't do anything.  I need to use "set cpu idle" instead, but this is OS-specific, and I cannot find a good setting for 4.3BSD.  The best seems to be 32V, which gives me 70% host CPU usage when the OS is idle.<br>
<br>I have two questions:<br><br>1. Is there any reason why "set throttle" cannot be implemented for VAX?  I notice that the SIMH documentation says "Throttling and idling are mutually exclusive" - does this mean that a given simulator can only implement one method, or that only one may be used at a time?<br>
<br>2.  Does anyone know the best idle option for 4.3BSD?  Is there any documentation on what the various idle types detect, so an unsupported OS can be examined to see which it matches best?<br><br><br><br><br>
<hr>
Great search results, great prizes. BigSnapSearch.com <a href="http://clk.atdmt.com/UKM/go/117442309/direct/01/" target="_blank">Search now</a></div><br>_______________________________________________<br>Simh mailing list<br>
<a href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a><br><a href="http://mailman.trailing-edge.com/mailman/listinfo/simh" target="_blank">http://mailman.trailing-edge.com/mailman/listinfo/simh</a><br></blockquote>
</div><br>