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

<div>&nbsp;</div>
<div>Jason</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div class="gmail_quote">On Thu, Dec 4, 2008 at 4:19 AM, roy hills <span dir="ltr">&lt;<a href="mailto:royhills@hotmail.com">royhills@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I&#39;m running 4.3BSD (Quasijarus) on SIMH VAX.&nbsp; I also run 2.11BSD on SIMH PDP11.&nbsp; I&#39;m using the latest version of SIMH, v3.8.<br><br>On the 2.11BSD/PDP system I use &quot;set throttle 4M&quot;, which gives a very responsive system (probably faster than a real PDP11) while using minimal host CPU.<br>
<br>I find I cannot use &quot;set throttle&quot; on the VAX: SIMH accepts the command, but it doesn&#39;t do anything.&nbsp; I need to use &quot;set cpu idle&quot; instead, but this is OS-specific, and I cannot find a good setting for 4.3BSD.&nbsp; 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 &quot;set throttle&quot; cannot be implemented for VAX?&nbsp; I notice that the SIMH documentation says &quot;Throttling and idling are mutually exclusive&quot; - 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.&nbsp; Does anyone know the best idle option for 4.3BSD?&nbsp; 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>