Skip to content

Stress-test threading/batchSize is always on #3205

Closed

Description

@mattdowle

Two current limitations to overcome :

  • getDTthreads() doesn't return more than omp_get_max_threads(). This prevents stress testing logic and bounds on small data by increasing number of threads. I wasn't able to reproduce segfault in parallel gforce #3204 until I mimicked getDTthreads() returning 20 (greater than omp_get_max_threads()) on my machine.
> setDTthreads(20)
> getDTthreads(verbose=TRUE)
omp_get_max_threads() = 8
omp_get_thread_limit() = 2147483647
DTthreads = 20
[1] 8
  • I'm currently deliberately allowing very small batch sizes (sometimes 2 rows) in order to stress-test the test-suite. Otherwise we have to add a lot of large data tests before threading kicks in. This is good, and segfault in parallel gforce #3204 quickly came to light because of this good strategy. However, this stress-testing is left in for release. So it could be that overhead on small data is larger. Need to add a flag that is on for stress-testing in the test-suite, but turned off by default in release. It may be that overhead is not actually increased on small data and that it can be left on -- need to test.
    Update: throttle added in throttle threads for iterated small data tasks #4484 solves this 2nd part.

Activity

  1. jangorecki commented on Jan 22, 2019

    @jangorecki
    Member

    was it switched off before 1.12.0?

  2. mattdowle commented on Jan 22, 2019

    @mattdowle
    MemberAuthor

    Not as far as I know. I just tested now and I still see getDTthreads(verbose=TRUE) returning the same output as above and returning 8. I'll follow up to your findings in the other issue: #3300 (comment)

  3. added this to the 1.12.2 milestone on Mar 5, 2019
  4. mattdowle commented on Mar 5, 2019

    @mattdowle
    MemberAuthor

    PR #3435 changed setDTthreads() to allow up to omp_get_num_procs() which is the number of logical CPUs on the machine. On my laptop with 4 cores, this limit is 8 for example. This should be plenty to do the types of stress-mentioned in this issue.

  5. removed this from the 1.12.2 milestone on Mar 5, 2019
  6. added this to the 1.12.4 milestone on Jul 31, 2019
  7. mattdowle commented on Sep 19, 2019

    @mattdowle
    MemberAuthor

    The 2nd part needs a flag adding, or a wrapper, to turn off openMP for small data. Related to #3438 and #3743.

  8. modified the milestones: 1.12.4, 1.13.0 on Sep 19, 2019
  9. modified the milestones: 1.12.7, 1.12.9 on Dec 8, 2019
  10. modified the milestones: 1.12.11, 1.12.9 on Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions