<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dedicating processor to record locking in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562173#M69248</link>
    <description>Randy,&lt;BR /&gt;&lt;BR /&gt;apart from the previous advises (especially read and re-read Hein on the KIND of lockings and the NEED of locking!) I think the single most useful advise I can give you:&lt;BR /&gt;Please, upgrade to V7.3-2!! (and that, to patch UPGRADE-0400).&lt;BR /&gt;Some issues, involving SPINWAIT during heavy locking have been resolved.&lt;BR /&gt;CPU max out with locking sounds unpleasant as well. Caching has improved A LOT from 7.2-x to 7.3, but there were some issues with vanilla 7.3. Besides: 7.2(-x), 7.3, and 7.3-1 are no longer supported.&lt;BR /&gt;&lt;BR /&gt;How do you intend to move from ES40 to ES47?&lt;BR /&gt;I am a great proponent of (even temporarily) a cluster, and gradual move over.&lt;BR /&gt;(btw, are you ADDING the ES47, or is there a trade-in? Even in the latter case, a temporary cluster license is a mighty good&lt;BR /&gt;idea!&lt;BR /&gt;&lt;BR /&gt;Aside: is your CONNX behaving well?  I HAVE met the situation where each new query involved generating the whole data description again, so double-checking can be worthwhile!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Jun 2005 14:37:28 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2005-06-14T14:37:28Z</dc:date>
    <item>
      <title>Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562167#M69242</link>
      <description>We are installing a new 4 processor ES47 which will essentially replace a 4 year old ES40.  We have been told by a consultant that our software does an inordinately high amount of record locking and that we may benefit by dedicating one of the processors solely to that function.&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;&lt;BR /&gt;Is this really possible?&lt;BR /&gt;If so, how?&lt;BR /&gt;Lastly, is it a wise move?&lt;BR /&gt;&lt;BR /&gt;Thanks for your input...</description>
      <pubDate>Fri, 10 Jun 2005 15:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562167#M69242</guid>
      <dc:creator>Randy Hancock</dc:creator>
      <dc:date>2005-06-10T15:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562168#M69243</link>
      <description>Hi Randy,&lt;BR /&gt;&lt;BR /&gt;a) Yes, sure, they told no lies, it is possible.&lt;BR /&gt;b) You have to set the sysgen paramater LCKMGR_MODE to the value of the CPUs which shall be available as long as 1 CPU shall be reserved for the new LCKMGR_SERVER process.&lt;BR /&gt;c) The question of wisdom: the Dedicated CPU Lock Manager might be senseful for you to reduce too much MP_SYNCH overhead but the advantages/disadvantages depend on your applications behaviour.&lt;BR /&gt;&lt;BR /&gt;In your case: if you set the sysgen parameter LCKMGR_MODE to 4 then the Dedicated CPU Lock Manager is active as long as there are 4 available/running/active CPUs. Then it consumes 1 CPU for its own (because running on priority 63) and you have only 3 for the rest of all.&lt;BR /&gt;In general I would activate it only having more than 6 CPUs  (but as already told it depends mainly from your applications and system workload).&lt;BR /&gt;&lt;BR /&gt;Depending on your system/cluster configuration it might also be worthy to think about the settings of the LOCKDIRWT sysgen parameter.&lt;BR /&gt;&lt;BR /&gt;Have a look at &lt;A href="http://h71000.www7.hp.com/doc/73final/6491/6491pro_015.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6491/6491pro_015.html&lt;/A&gt;  (or the corresponding documentation of the latest VMS versions).&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;EW&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2005 19:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562168#M69243</guid>
      <dc:creator>Eberhard Wacker</dc:creator>
      <dc:date>2005-06-10T19:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562169#M69244</link>
      <description>The good news is you can turn it on or off dynamically.  It may well help you. That cpu must not have any fast path devices attached to it.&lt;BR /&gt;&lt;BR /&gt;The rule of thumb is 5 or more cpus. However, I have recommended it to 4 cpu heavy locking systems, and it has helped.&lt;BR /&gt;An ES47 can be altered to support an additional CPU, and that would make much more sense.  Even with 4 cpus it might be very viable, but I would plan on adding another cpu for that dedicated purpose.&lt;BR /&gt;&lt;BR /&gt;BTW, what are your locking numbers during say a 15 minute peak period of time.&lt;BR /&gt;&lt;BR /&gt;In sys$examples there is a file called spl.com that lets you see where the spin locks are being held.   &lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2005 20:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562169#M69244</guid>
      <dc:creator>comarow</dc:creator>
      <dc:date>2005-06-10T20:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562170#M69245</link>
      <description>&lt;BR /&gt;Yes it is possible to dedicate a cpu to the lock manager by the steps outlines earlier, but it is probably NOT a wise move.&lt;BR /&gt;&lt;BR /&gt;The dedicated lock manager is extra useful in (clustered) high contention environment with CPU's to spare and with the lock manager already spending at least 1/2 a cpu in kernel/interupt/mpsync time.&lt;BR /&gt;I suspect you do not meet a single one of those requirements, but will happiliy be proven wrong.&lt;BR /&gt;&lt;BR /&gt;Why don't we step back a little.&lt;BR /&gt;First... which exact VMS version?&lt;BR /&gt;What is 'inordinate'? a million/second?&lt;BR /&gt;&lt;BR /&gt;and WHAT PROBLEM ARE YOU REALLY TRYING TO SOLVE?&lt;BR /&gt;&lt;BR /&gt;Do you have a reason to believe those records locks are bad? Could they not simply be a reflection of a lot of work bing done?&lt;BR /&gt;&lt;BR /&gt;Does that inorinate rate roughly match your expectation based on the work rate? For example, if the application is processing N items/second, is teh lock rate 2*N (probably great) or 10*N (which coudl be fine) or is it 1000*N indicating a serious application issue. In the latter case, why waste time optimizing locks, but focus on not doing locks instead!&lt;BR /&gt;&lt;BR /&gt;Next You talk about 'record locking' is that per chance a reference to RMS record locking?&lt;BR /&gt;Or are we talking RDB or some other DB/record manager?&lt;BR /&gt;&lt;BR /&gt;What is the application doing when it generates that high amount of lock traffic?&lt;BR /&gt;&lt;BR /&gt;If it is RMS, are we sure we are talking RECORD locks, or could we be talking bucket lock?&lt;BR /&gt;&lt;BR /&gt;If it is and application reading through and rms (indexed?) file, maybe you need to investigate using the (relatively recent) rms NO-QUERY-LOCK option?!&lt;BR /&gt;&lt;BR /&gt;Looking forward to read a more pertinent problem description!&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Jun 2005 13:19:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562170#M69245</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-06-11T13:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562171#M69246</link>
      <description>Thanks for all your responses.  I am primarily a programmer/developer with about 17 years of VMS experience (Basic and Dibol), but try to dabble in some of the systems management things when the occasion arises.&lt;BR /&gt;&lt;BR /&gt;Our systems manager primarily handles all of the numerous Windows based servers, so between us and two other programmer/developers we are attempting to learn as much as we can to configure this new system to our needs.&lt;BR /&gt;&lt;BR /&gt;Our current platform is an ES40 with 3 cpus running OpenVMS 7.2-1.  Problems we have experienced over the last year are maxed out CPUs (at or near 300% for several hours at a time), 3 or 4 crashes resulting from spin waits, and increased usage by heavy I/O processes (iCARaS, CONNx).&lt;BR /&gt;&lt;BR /&gt;HP consultant was the one who recommended dedicating a process to locks.&lt;BR /&gt;&lt;BR /&gt;I do not have numbers to post here at this time...will have to do that at a later date.  Locks are RMS (through Dibol), and for the most part, when I have examined or modified the code, locks are being used quite judiciously.  They are generally placed only when the intent is to modify the record.&lt;BR /&gt;&lt;BR /&gt;New system will be running 7.3&lt;BR /&gt;&lt;BR /&gt;And what is the NO-QUERY-LOCK option?&lt;BR /&gt;&lt;BR /&gt;Again, thanks to all for your help...it has started us in the right direction to make our decision.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 11:06:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562171#M69246</guid>
      <dc:creator>Randy Hancock</dc:creator>
      <dc:date>2005-06-14T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562172#M69247</link>
      <description>RAB$V_NQL&lt;BR /&gt;&lt;BR /&gt;It is a methos to not get a record lock at all, versus the NLK option which just tells RMS not to keep a record lock, but will aquire and release a record lock every time.&lt;BR /&gt;&lt;BR /&gt;This is just a WAG. There is no clear indication that you have a record locking problem, but maybe, just maybe....&lt;BR /&gt;&lt;BR /&gt;RMS Ref Man:&lt;BR /&gt;&lt;BR /&gt;See RAB$L_ROP_2&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/4523/4523pro_012.html#rop_2" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/4523/4523pro_012.html#rop_2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;VMS Guide to file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;File Sharing and Buffering&lt;BR /&gt;7.2 Record Locking&lt;BR /&gt;Table 7â  5 Methods Available for Specifying No Query Record Locking&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So when you say 300% CPU... was that all KERNEL? Lots of MPSYNC? EXEC mode?&lt;BR /&gt;How many IO/sec? Did MONI RMS give useful usage rates? How about my RMS_STATS (freeware) ?&lt;BR /&gt;&lt;BR /&gt;Did you ever try my RMS_TUNE_CHECK on some critical files? Duplicate key chains can easily cause excessive IOs (hits is XFC cache) and excessive buckt lock rates.&lt;BR /&gt;Again... no reason to believe this is the problem but you should everify that it is not the problem just in case.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;Hei</description>
      <pubDate>Tue, 14 Jun 2005 13:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562172#M69247</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-06-14T13:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562173#M69248</link>
      <description>Randy,&lt;BR /&gt;&lt;BR /&gt;apart from the previous advises (especially read and re-read Hein on the KIND of lockings and the NEED of locking!) I think the single most useful advise I can give you:&lt;BR /&gt;Please, upgrade to V7.3-2!! (and that, to patch UPGRADE-0400).&lt;BR /&gt;Some issues, involving SPINWAIT during heavy locking have been resolved.&lt;BR /&gt;CPU max out with locking sounds unpleasant as well. Caching has improved A LOT from 7.2-x to 7.3, but there were some issues with vanilla 7.3. Besides: 7.2(-x), 7.3, and 7.3-1 are no longer supported.&lt;BR /&gt;&lt;BR /&gt;How do you intend to move from ES40 to ES47?&lt;BR /&gt;I am a great proponent of (even temporarily) a cluster, and gradual move over.&lt;BR /&gt;(btw, are you ADDING the ES47, or is there a trade-in? Even in the latter case, a temporary cluster license is a mighty good&lt;BR /&gt;idea!&lt;BR /&gt;&lt;BR /&gt;Aside: is your CONNX behaving well?  I HAVE met the situation where each new query involved generating the whole data description again, so double-checking can be worthwhile!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2005 14:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562173#M69248</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-06-14T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicating processor to record locking</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562174#M69249</link>
      <description>Thanks again for your help.  Yes, we are clustering the ES47 and ES40...will be keeping both.  ES47 is already at v7.3-2, will have to check on patch upgrade 0400.&lt;BR /&gt;&lt;BR /&gt;As for CONNX, will have to look into your suggestions.</description>
      <pubDate>Fri, 24 Jun 2005 14:48:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dedicating-processor-to-record-locking/m-p/3562174#M69249</guid>
      <dc:creator>Randy Hancock</dc:creator>
      <dc:date>2005-06-24T14:48:53Z</dc:date>
    </item>
  </channel>
</rss>

