Menu

#401 Progress message from tide-search inaccurate with threading

Crux v2.0
closed
None
2016-06-23
2016-06-22
No

The user-level progress report message that tide-search reports is inaccurate:

INFO: Running search
INFO: 1000 spectrum-charge combinations searched, 1% complete
INFO: 2000 spectrum-charge combinations searched, 2% complete
INFO: 3000 spectrum-charge combinations searched, 4% complete
INFO: 4000 spectrum-charge combinations searched, 5% complete
INFO: 5000 spectrum-charge combinations searched, 6% complete
INFO: Time per spectrum-charge combination: 0.001589 s.
INFO: Average number of candidates per spectrum-charge combination: 0.158543
INFO: Elapsed time: 129 s

Note that the percentage only goes up to 6% before the search is done. The problem here is two-fold. First, the numerator in the percentage calculation is not considering spectra that were skipped for various reasons (not enough peaks, zero candidates, etc.). This problem can be fixed with the attached patch.

However, that leaves the second problem, which is that when more than one thread is running, then the numerator only includes the searches for the current thread. I don't know if there is an easy way around this.

Alice, can you comment on this?

1 Attachments

Related

Issues: #401

Discussion

  • Alice Cheng

    Alice Cheng - 2016-06-22

    Would the patch attached work? Instead of introducing a separate variable, we could just move the reporting to the top of the function so that we get the skipped sc_combos, and start sc_index from -1 instead of 0. Since sc_index was already under a lock, it should be updated across all threads.

     
    • William S Noble

      William S Noble - 2016-06-22

      Yes, I tried this out, and it works fine. The changes look OK to me.
      Assuming you run it through the smoke tests, please go ahead and check in
      this change. You can also resolve this issue.

      Thanks!
      Bill

      On Wed, Jun 22, 2016 at 4:03 PM, Alice Cheng acheng94@users.sf.net wrote:

      Would the patch attached work? Instead of introducing a separate variable,
      we could just move the reporting to the top of the function so that we get
      the skipped sc_combos, and start sc_index from -1 instead of 0. Since
      sc_index was already under a lock, it should be updated across all threads.

      Attachments:


      Status: open
      Milestone: Crux v2.0
      Created: Wed Jun 22, 2016 10:27 PM UTC by William S Noble
      Last Updated: Wed Jun 22, 2016 10:27 PM UTC
      Owner: Alice Cheng
      Attachments:

      The user-level progress report message that tide-search reports is
      inaccurate:

      INFO: Running search
      INFO: 1000 spectrum-charge combinations searched, 1% complete
      INFO: 2000 spectrum-charge combinations searched, 2% complete
      INFO: 3000 spectrum-charge combinations searched, 4% complete
      INFO: 4000 spectrum-charge combinations searched, 5% complete
      INFO: 5000 spectrum-charge combinations searched, 6% complete
      INFO: Time per spectrum-charge combination: 0.001589 s.
      INFO: Average number of candidates per spectrum-charge combination:
      0.158543
      INFO: Elapsed time: 129 s

      Note that the percentage only goes up to 6% before the search is done. The
      problem here is two-fold. First, the numerator in the percentage
      calculation is not considering spectra that were skipped for various
      reasons (not enough peaks, zero candidates, etc.). This problem can be
      fixed with the attached patch.

      However, that leaves the second problem, which is that when more than one
      thread is running, then the numerator only includes the searches for the
      current thread. I don't know if there is an easy way around this.

      Alice, can you comment on this?

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/cruxtoolkit/issues/401/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Issues: #401

  • Alice Cheng

    Alice Cheng - 2016-06-23
    • status: open --> closed
     

Log in to post a comment.