<?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: SET PROCESS/SUSPEND - implications? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442026#M65887</link>
    <description>Willem,&lt;BR /&gt;&lt;BR /&gt;The updated record must be read and locked before updating. The lock remains active even if the process is suspended. You can try this:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT F$GETJPI("","PID")&lt;BR /&gt;yourpid&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE F somefile&lt;BR /&gt;$ READ F sym&lt;BR /&gt;&lt;BR /&gt;In an another process do:&lt;BR /&gt;&lt;BR /&gt;$ SET PROCESS/SUSPEND/ID=yourpid&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE F somefile&lt;BR /&gt;$ READ F sym&lt;BR /&gt;%RMS-E-RLK, target record currently locked by another stream&lt;BR /&gt;&lt;BR /&gt;So the record is locked and data integrity is safe. The issue can be for the remaining process which must wait for suspended processes to unlock data.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
    <pubDate>Mon, 13 Dec 2004 07:26:30 GMT</pubDate>
    <dc:creator>Bojan Nemec</dc:creator>
    <dc:date>2004-12-13T07:26:30Z</dc:date>
    <item>
      <title>SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442023#M65884</link>
      <description>Suppose you have a number of processes running on a cluster, running the same program, using the same (index sequential) files, though accessing different blocks of data, so in that respect, they do not interfere. Some data read is read, altered and written back.&lt;BR /&gt;What will happen if all, but one, of these processes are forced into SUSPEND state and resumed when the only running process has finished?&lt;BR /&gt;My major concern is data ingetrity:&lt;BR /&gt;If a record has been read for update, and the process enters SUSPEND state before the record has been written back, can it be assured that this record cannot be accessed for update, and will rewrite, after RESUME, access the right record?&lt;BR /&gt;&lt;BR /&gt;Are there other implications to reckon with?&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Mon, 13 Dec 2004 06:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442023#M65884</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-12-13T06:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442024#M65885</link>
      <description>I think you are safe as long as this is all synchronized by the lock manager (which it is by default).</description>
      <pubDate>Mon, 13 Dec 2004 07:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442024#M65885</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2004-12-13T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442025#M65886</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;At the risk of writing from my recollections, instead of directly checking the documentation, I will offer you the following:&lt;BR /&gt;&lt;BR /&gt;- I am presuming that you are using the standard mechanisms for reading/updating records in files (e.g., RMS)&lt;BR /&gt;- RMS Locks the record when you do a read with the possibility of update&lt;BR /&gt;- SUSPEND/RESUME does not affect the RMS locks, it is at the process level.&lt;BR /&gt;&lt;BR /&gt;Thus, I would suspect minimal effect. However, I would be careful of other affects. For example, if you cannot guarantee that the record streams processed are disjoint, you could lock on a record held by another (suspended) process.&lt;BR /&gt;&lt;BR /&gt;I suspect that a careful reading of the RMS manual and Lock Management manual would confirm the above.&lt;BR /&gt;&lt;BR /&gt;I am also making presumptions about the source codes actions, a careful check would be appropriate.&lt;BR /&gt;&lt;BR /&gt;I hope that the above has been helpful.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 13 Dec 2004 07:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442025#M65886</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2004-12-13T07:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442026#M65887</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;The updated record must be read and locked before updating. The lock remains active even if the process is suspended. You can try this:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT F$GETJPI("","PID")&lt;BR /&gt;yourpid&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE F somefile&lt;BR /&gt;$ READ F sym&lt;BR /&gt;&lt;BR /&gt;In an another process do:&lt;BR /&gt;&lt;BR /&gt;$ SET PROCESS/SUSPEND/ID=yourpid&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE F somefile&lt;BR /&gt;$ READ F sym&lt;BR /&gt;%RMS-E-RLK, target record currently locked by another stream&lt;BR /&gt;&lt;BR /&gt;So the record is locked and data integrity is safe. The issue can be for the remaining process which must wait for suspended processes to unlock data.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Mon, 13 Dec 2004 07:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442026#M65887</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-12-13T07:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442027#M65888</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;If you don't know the details of the application, I would not suspend a process of it.&lt;BR /&gt;&lt;BR /&gt;I've seen :&lt;BR /&gt;1) lock / process / unlock -&amp;gt; suspend may block other processes processing the same data&lt;BR /&gt;2) programs may test time intervals and consider the interval of the suspend as too long and thus abort&lt;BR /&gt;3) programs may assume that they get data of other programs within seconds and if you suspend the program it may behave strangely&lt;BR /&gt;etc ...&lt;BR /&gt;&lt;BR /&gt;Btw : this is also the case when you use sql databases. Oracle may give you "snapshot too old" because of it. It all depends of what the program is doing.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 13 Dec 2004 08:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442027#M65888</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-13T08:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442028#M65889</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;I have one other, more practical, concern.&lt;BR /&gt;We ARE talking RMS, yes?&lt;BR /&gt;&lt;BR /&gt;- if you lock a RECORD for update, then that record is not available for updating. Period.&lt;BR /&gt;But... physically, this record, as well as its secondary indexes, reside on disk PAGES, that are grouped to diskpageCLUSTERS.&lt;BR /&gt;And those clusters are the unit of update.&lt;BR /&gt;&lt;BR /&gt;Would your lock not imply that you have locked ALL records whose data or indexes coincide with the locked record?&lt;BR /&gt;&lt;BR /&gt;Or does RMS have special provisions for that case? I think such a scheme may be constructed, but I do see all kind of complications....&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  Nice question for Hein, I guess?&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>Mon, 13 Dec 2004 09:10:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442028#M65889</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-12-13T09:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442029#M65890</link>
      <description>Thanks to all.&lt;BR /&gt;It is plain RMS and so I can sleep well tonight (well, others will). Hopefully the processes do not interfere with the data involved. I'm not too familiar with the program but given what I heard on that, and teh parameters given to run, it _seems_ pretty unlikely. Well, if it does (and one or more instances seem to hang) it's now clear where to look and act accoringly.&lt;BR /&gt;&lt;BR /&gt;Willem&lt;BR /&gt;&lt;BR /&gt;PS. I keep the thread open for Hein (and others) to share his knowledge but consider the subject closed.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 09:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442029#M65890</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-12-13T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442030#M65891</link>
      <description>Apart from the possible blocking of access due to trying to update a record in the same bucket  or parhaps due to index structure locks then its sounds ok. Justa radom thought but if you did suspended the processes using SET PROC/SUSPEND=KERNEL then this may cause more problems as this would prevent the handing of kernal mode ASTs.</description>
      <pubDate>Mon, 13 Dec 2004 10:06:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442030#M65891</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-12-13T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442031#M65892</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;  A user mode SUSPEND will be transparent with respect to any locking or process synchronization. The only issue is timing. If a process happens to be suspended while holding a lock, from another process it will just appear that the suspended process is taking a long time to execute.&lt;BR /&gt;&lt;BR /&gt;  There should be no data integrity issues, but, depending on the action other processes take on encountering a locked record, you might have other effects. For example, if processes wait for locks, you may get a logjam. If they retry, you may trip a sanity counter.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 16:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442031#M65892</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-12-13T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442032#M65893</link>
      <description>Hi Willem,&lt;BR /&gt;I've already used set proc/susp while program locked indexed record by rms. The record is unavaiable for other processes which opened file for read and write.&lt;BR /&gt;However you have to remember:&lt;BR /&gt;- some other applications may stop waiting for record unlocking.&lt;BR /&gt;- programs that open with unlock can read locked record.&lt;BR /&gt;You can simply verify using two dcl procedures like follow.&lt;BR /&gt;--- 1.st ---&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE=WRITE MY MYFILE.ISM&lt;BR /&gt;$ READ MY MYFILE&lt;BR /&gt;$ INQUIRE DUMMY "Please, suspen me!"&lt;BR /&gt;$ CLOSE MY&lt;BR /&gt;--- 2.nd ---&lt;BR /&gt;$ OPEN/READ/SHARE=READ MY MYFILE.ISM&lt;BR /&gt;$ INQUIRE DUMMY "Hit return after suspend!"&lt;BR /&gt;$! I can read record&lt;BR /&gt;$ READ MY MYFILE&lt;BR /&gt;$ CLOSE MY&lt;BR /&gt;--- 2.nd ---&lt;BR /&gt;$ OPEN/READ/WRITE/SHARE=WRITE MY MYFILE.ISM&lt;BR /&gt;$ INQUIRE DUMMY "Hit return after suspend!"&lt;BR /&gt;$! Now I can't read record&lt;BR /&gt;$ READ MY MYFILE&lt;BR /&gt;$ CLOSE MY&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 03:20:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442032#M65893</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-12-14T03:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET PROCESS/SUSPEND - implications?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442033#M65894</link>
      <description>You may also get some deadlock searches happening. These may get reported by some monitoring tools as a problem.&lt;BR /&gt;&lt;BR /&gt;   Tim</description>
      <pubDate>Tue, 14 Dec 2004 19:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/set-process-suspend-implications/m-p/3442033#M65894</guid>
      <dc:creator>Tim Hughes_3</dc:creator>
      <dc:date>2004-12-14T19:04:36Z</dc:date>
    </item>
  </channel>
</rss>

