Diagnosing slow throughput

Discussion in 'C-Bus Toolkit and C-Gate Software' started by more-solutions, Apr 28, 2014.

  1. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    I'm on site in the process of replacing quite a lot of (IT) network infrastructire and moving to a couple of virtual machines to communicate with C-Gate, replacing two old PCs running C-Gate 1.5.x. The new VMs are running Win7 (32-bit) and TK 1.12.8

    Part of the application that runs through C-Gate sends lots of group address ONs or OFFs in succession (~140 groups), effectively a scene just not one run through Clipsal hardware. Switching everything used to take about 3s, now it takes about 20s.

    I subsequently tried switching the same groups en-masse through TK and got the same slow results.

    Suggestions as to what I can tune? C-GateConfig.txt is the default auto-created one with project.start and project.default set, not other changes.

    To rule things out I've just tested the application on a Windows XP VirtualBox VM running on my laptop (Win7 host) directly connected to the Clipsal switch that all the CNIs are connected to, thus ruling out the site IT network and the specific virtual environment used on site (Hyper-V), albeit the machine was still virtual.

    The VMs are only for this application so I'm open to anything, eg changing TCP/IP settings.

    We have a demo to the client on Wednesday so it would be really nice to know what is going on before then even if I can't fix it before the demo.
     
    more-solutions, Apr 28, 2014
    #1
  2. more-solutions

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    770
    Likes Received:
    21
    Location:
    Adelaide
    Hi there,

    Wow, C-Gate 1.5. That's going back 10 years or so. I'm afraid we haven't done any regression tests that far back - it's absolutely possible that some change or feature has been introduced in that time that slows down the response loop.

    A few Q's for my interest:

    - What's the exact C-Gate 1.5 version?
    - Does the calling application wait for the "200 OK"?
    - Does the calling application send backgrounded commands? & ON 254/56/1
    - Does the loaded project already contain all the apps/groups being referenced? C-Gate will autocreate things it hasn't seen before, I'm wondering if the delay is in that.
    - Any obvious large delays in the log, or is it just taking longer on every single command?

    Please feel free to e-mail me a C-Gate level-9 log of both instances.

    I've logged a ticket for this: CG-1629.
     
    Last edited by a moderator: May 7, 2014
    daniel, May 7, 2014
    #2
  3. more-solutions

    more-solutions

    Joined:
    Apr 23, 2006
    Messages:
    283
    Likes Received:
    4
    Location:
    Peterborough, UK
    Tell me about it!

    Might be hard to find out now but pretty sure it was the latest available 1.5 version.

    Calling application is Citect (well actually C-Lution!) so it uses the CI commands rather than ON/OFF but as far as I know it does wait for responses.

    However, note my comment in the original post that if I run the same test from TK it is also slow (ie multi-select the same group addresses, then send ON or OFF to them all in one go). So any issues here are presumably in C-Gate rather than the app (or in the network, or in the C-Gate config, etc), unless there's a reason to expect TK to be slow anyway (ie it's not designed/optimised for throwing a command at multiple groups quickly).

    It should do, yes. Also the new Citect app also sends a whole load of new phantom group commands on startup *

    I think everything is slower rather than there being any specific delays, although I'd need to run some more tests to be sure.

    I'll try to collect them tomorrow when back on site. Thanks!

    I'll probably only get one hit at this, so if there's anything I should probably tweak in the C-Gate config first let me know.

    * As far as I can tell, C-Gate's setting to auto-create phantom groups doesn't apply to CI commands - or at least if I don't create phantom groups manually then Citect errors. Also: Group addresses that only appear in certain places (eg PIR enables) don't seem to get auto-created (so we have to create them as phantoms) and reading their status via CI commands seems to be very "inaccurate" until we've written to them.

    That is with TK 1.12.8.
     
    more-solutions, May 7, 2014
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.