<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:25:20 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[INSTRM-468] Check MCS data timings.</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-468</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;We long ago, at ASIAA, confirmed that we could stuff MCS centroids into the database and retrieve them from FPS fast enough (and faster than going through a FITS file). I don&apos;t think we are doing as well at Subaru. In any case this should be checked.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12802">INSTRM-468</key>
            <summary>Check MCS data timings.</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="chihyi">chihyi</assignee>
                                    <reporter username="cloomis">cloomis</reporter>
                        <labels>
                            <label>MCS</label>
                    </labels>
                <created>Fri, 31 Aug 2018 18:34:40 +0000</created>
                <updated>Sun, 21 Oct 2018 21:20:00 +0000</updated>
                            <resolved>Sun, 21 Oct 2018 21:19:59 +0000</resolved>
                                                                    <component>ics_fpsActor</component>
                    <component>ics_mcsActor</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                            <comment id="14005" author="chihyi" created="Mon, 3 Sep 2018 06:17:12 +0000"  >&lt;p&gt;We will try to run the following test: inject ~2400 data into a database table from one MHS actor, update the status keyword, then read data from another actor. Is there any comment?&lt;/p&gt;</comment>
                            <comment id="14009" author="cloomis" created="Tue, 4 Sep 2018 05:18:59 +0000"  >&lt;p&gt;That&apos;s exactly what we want to confirm. Specifically, injecting using from the existing code in &lt;tt&gt;mcsActor&lt;/tt&gt;, and reading it in the &lt;tt&gt;fpsActor&lt;/tt&gt;. &lt;/p&gt;

&lt;p&gt;The problem with the VM ethernet interfaces was not on the &lt;tt&gt;db&lt;/tt&gt; VM, so that&apos;s not likely to be the problem, unfortunately. That would have been easy. But if the problem is from running postgres on one VM, writing to a database stored on NFS mounted from a second VM, I am not so worried: that architecture is temporary.&lt;/p&gt;</comment>
                            <comment id="14100" author="cloomis" created="Mon, 1 Oct 2018 17:06:48 +0000"  >&lt;p&gt;We also need to test writes to and and reads from &lt;tt&gt;/data&lt;/tt&gt;, and in general the complete throughput of the system. We might need to change how files are being written.&lt;/p&gt;</comment>
                            <comment id="14120" author="chyan" created="Wed, 3 Oct 2018 07:26:57 +0000"  >&lt;p&gt;Here are information from my log.&lt;/p&gt;

&lt;p&gt;-------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;Image Acquisition 0.82 second per frame&lt;br/&gt;
 Image Saving&#160; &#160; &#160; &#160;0.2 second per frame&lt;br/&gt;
 Image co-adding&#160; &#160; &amp;gt;0.1 second&lt;/p&gt;

&lt;p&gt;For a 1000ms exposure time, there will be three readouts, one&#160;stacking, four file write.&lt;br/&gt;
 The time is&#160;0.82x3 + 0.2x4 + 0.1 = 3.36 seconds.&lt;/p&gt;

&lt;p&gt;Since we only save one stacked frame in the end, the timing should be&#160;&#160;0.82x3 + 0.2 + 0.1 = 2.76 seconds.&lt;/p&gt;

&lt;p&gt;Regarding the database IO, I insert 2394 fiber positions and measured&#160;FWHM, RMS and repeat for 100 times.&#160; The averaged time on database IO&#160;is 1.14 second.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="14121" author="cloomis" created="Wed, 3 Oct 2018 12:27:56 +0000"  >&lt;p&gt;Was that at Subaru or ASIAA?&lt;/p&gt;</comment>
                            <comment id="14126" author="chyan" created="Wed, 3 Oct 2018 16:15:45 +0000"  >&lt;p&gt;These tests were done in ASIAA, right before the shipment of MCS. &#160;&lt;/p&gt;</comment>
                            <comment id="14127" author="cloomis" created="Wed, 3 Oct 2018 17:08:27 +0000"  >&lt;p&gt;OK, tx. Good to have measured timing we know the system should be able to meet.&lt;/p&gt;</comment>
                            <comment id="14145" author="hassan" created="Mon, 8 Oct 2018 12:56:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt;: can we now resolve this ticket?&lt;/p&gt;</comment>
                            <comment id="14146" author="cloomis" created="Mon, 8 Oct 2018 14:30:34 +0000"  >&lt;p&gt;We have three issues, one expected, one feared, and one unexpected:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The time to acquire a new Gen2 frame number (~2s) needs to be hidden by being run in parallel to the exposure.&lt;/li&gt;
	&lt;li&gt;The time to &lt;em&gt;write&lt;/em&gt; the new exposure needs to be shortened from the current ~1.5s. This can be dealt with in a couple of ways.&lt;/li&gt;
	&lt;li&gt;The time to read the camera is a fair bit longer than expected. For a 1s exposure, I&apos;m seeing ~8.5s. Log below.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;ll work on 1 and 2, but ASIAA will probably have to look into 3.&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2018-10-07 16:38:22.544Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 d text=&quot;Exposure time now is 1000 ms.&quot;
2018-10-07 16:38:22.545Z cmdr             20 CmdrConnection.py:215 queueing command gen2(getVisit)
2018-10-07 16:38:24.621Z cmdr             20 CmdrConnection.py:209 command returned gen2 &apos;getVisit&apos;
2018-10-07 16:38:24.622Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 d text=&quot;new expose: /data/mcs/2018-10-07/PFSC00006300.fits&quot;
2018-10-07 16:38:24.622Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i exposureState=&quot;exposing&quot;
2018-10-07 16:38:24.622Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i text=&quot;ETYPE: dark&quot;
2018-10-07 16:38:24.623Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i text=&quot;slice name: /data/mcs/2018-10-07/PFSC00006300_&quot;
2018-10-07 16:38:29.913Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i exposureState=&quot;reading&quot;
2018-10-07 16:38:33.087Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i text=&quot;Time for exposure = 5.289644.&quot;
2018-10-07 16:38:33.087Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 i text=&quot;Time for image loading= 3.173522.&quot;
2018-10-07 16:38:33.103Z cmds             20 CommandLink.py:121 &amp;gt; 2 11 d text=&quot;done: (5778, 8960)&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="14153" author="hassan" created="Mon, 8 Oct 2018 19:13:04 +0000"  >&lt;p&gt;Pinging &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=chyan&quot; class=&quot;user-hover&quot; rel=&quot;chyan&quot;&gt;chyan&lt;/a&gt; as we need his feedback rather urgently.&lt;/p&gt;</comment>
                            <comment id="14155" author="cloomis" created="Mon, 8 Oct 2018 19:20:41 +0000"  >&lt;p&gt;Chatted with him a couple of hours ago. The camera timings are almost certainly ok: the coadd is being written into and read back out of the NFS-mounted code directory. Changing that to a local disk &#160;will probably restore the original timings.&lt;/p&gt;</comment>
                            <comment id="14159" author="hassan" created="Mon, 8 Oct 2018 19:25:30 +0000"  >&lt;p&gt;Ok thanks!&lt;/p&gt;</comment>
                            <comment id="14171" author="hassan" created="Wed, 10 Oct 2018 12:27:39 +0000"  >&lt;p&gt;@cloomis: has a test against a local disk been performed to confirm the original timings?&lt;/p&gt;</comment>
                            <comment id="14174" author="cloomis" created="Wed, 10 Oct 2018 13:56:01 +0000"  >&lt;p&gt;Better, but not good. Running with the actor in /tmp:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;pfs@mhs-ics:~$ oneCmd.py mcs expose bias
2018-10-10T13:53:31.580 sent mcs expose bias
2018-10-10T13:53:33.621 mcs i exposurestate=&quot;exposing&quot;
2018-10-10T13:53:33.631 mcs i text=&quot;ETYPE: bias&quot;
2018-10-10T13:53:33.632 mcs i text=&quot;slice name: /data/mcs/2018-10-10/PFSC00007000_&quot;
2018-10-10T13:53:37.241 mcs i exposurestate=&quot;reading&quot;
2018-10-10T13:53:38.850 mcs i text=&quot;Time for exposure = 3.618860.&quot;
2018-10-10T13:53:38.851 mcs i text=&quot;Time for image loading= 1.607460.&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="14204" author="cloomis" created="Tue, 16 Oct 2018 00:45:11 +0000"  >&lt;p&gt;There was a spurious copy of an uncompressed image to NFS; we have gained another 1.4s:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;2018-10-16T00:40:09.714 sent mcs expose object expTime=1.0
2018-10-16T00:40:11.681 mcs i exposurestate=&quot;exposing&quot;
2018-10-16T00:40:11.690 mcs i text=&quot;slice name: /data/mcs/2018-10-15/PFSC00009500_&quot;
2018-10-16T00:40:15.533 mcs i exposurestate=&quot;reading&quot;
2018-10-16T00:40:15.660 mcs i text=&quot;Time for exposure = 3.849244.&quot;
2018-10-16T00:40:15.660 mcs i text=&quot;Time for image loading= 0.125715.&quot;
2018-10-16T00:40:17.886 mcs i filename=&quot;/data/mcs/2018-10-15/PFSC00009500.fits&quot;
2018-10-16T00:40:17.886 mcs : exposurestate=&quot;done&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="14244" author="cloomis" created="Sun, 21 Oct 2018 21:20:00 +0000"  >&lt;p&gt;This is looking OK. Closing.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|ii015w:z</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>