Menu

Multi-threaded switchmap

2021-09-27
2024-01-04
  • s-l-teichmann

    s-l-teichmann - 2021-09-27

    Hello together,

    We have created a multi-threaded version of switchmap [1].
    Background: If you have a large system of switches to scan
    it could take a long time to scan the switches sequentially.

    In this version you can specify

    # Number of threads to scan the switches.
    $NumThreads = 5;
    

    in your ThisSite.pm to scan $NumThreads switches in parallel.

    Maybe you find this useful.

    Kind regards,

    Sascha L. Teichmann

    [1] https://gitlab.com/sascha.l.teichmann/switchmap/-/tree/threading

     
  • TamT

    TamT - 2022-03-04

    Hi Sascha,

    I'm currently running Switchmap v14.0. Besides adding $NumThreads = 5; to ThisSite.pm, what changes do I have to make to run the multi-threaded version? Thanks

     
    • s-l-teichmann

      s-l-teichmann - 2022-03-07

      Hi!

      Am 04.03.22 um 20:33 schrieb TamT:

      Hi Sascha,

      I'm currently running Switchmap v14.0. Besides adding $NumThreads = 5; to ThisSite.pm, what changes do I have to make to run the multi-threaded version? Thanks

      Checking out the threading branch of [1] and your adjustment should be enough. Please, report back if does not work.

      Regards, Sascha

      [1] https://gitlab.com/sascha.l.teichmann/switchmap/-/tree/threading

       
  • TamT

    TamT - 2023-11-24

    Thank you Sascha for creating the multi-threaded version of switchmap. I just upgraded to a new server and had a chance to try the multi-threaded version, which saves a lot of time when running SwitchMap.pl.

     

Log in to post a comment.

MongoDB Logo MongoDB