New Channel Access Nameserver - PowerPoint PPT Presentation

About This Presentation
Title:

New Channel Access Nameserver

Description:

Reduce IOC CPU load due to broadcast requests for name resolution ... about PVs added to the system after startup by broadcasting to fill unknown PV requests ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 16
Provided by: susan522
Learn more at: https://epics.anl.gov
Category:

less

Transcript and Presenter's Notes

Title: New Channel Access Nameserver


1
New Channel Access Nameserver
  • Presented by Karen White
  • for
  • Joan Sage

2
Overview
  • Background
  • Motivation
  • Old JLab Nameserver
  • New JLab Nameserver
  • Results

3
Background
  • By default, EPICS does not use a nameserver
  • Process variable name resolution achieved via UDP
    broadcasts
  • JLab has used a cdev based nameserver for BURT
    and MEDM clients for several years

4
EPICS PV Name Resolution
Client
Broadcast TCP Connection
5
Why Use A Nameserver?
  • Reduce IOC CPU load due to broadcast requests for
    name resolution
  • Provide PV location information for tools that do
    not require connection
  • Improve client connection time

6
Without Nameserver
7
With Nameserver
8
Why A New JLab Nameserver?
  • Old JLab Nameserver
  • Integration with client programs required code
    changes and recompilation
  • Required changes to Channel Access Library
  • Because of these difficulties, the old nameserver
    was only used with BURT and MEDM

9
Old Nameserver
Fallthrough
Client
NS
NS
Nameserver Hash Table NOT Updated
Broadcast TCP Connection
10
New Nameserver
  • No modifications needed to client code
  • No modifications to Channel Access Library
  • Client programs are configured to use nameserver
    by setting EPICS_CA_ADDR_LIST

11
New Nameserver
  • Nameserver reads signal.list files generated by
    IOCs at boot time to fill initial hash table
  • Nameserver learns about PVs added to the system
    after startup by broadcasting to fill unknown PV
    requests
  • Nameserver could run in learn mode on startup

12
New Nameserver
  • Runs as a daemon with automatic restart on
    failure (code stolen from CA Gateway)
  • Nameserver Startup Time lt 5 sec for 215K PVs
  • Built on PCAS example code directoryServer
    (Jeff Hills suggestion)
  • Only a Nameserver not a Gateway
  • Does nothing with beacons

13
New Nameserver
  • Nameserver monitors IOC heartbeat for connection
    events
  • When an IOC goes down
  • Nameserver hashtable updated
  • Nameserver monitors for reconnection events
  • Nameserver does not respond to clients asking
    for PVs on IOCS that are down
  • Deleted and moved PVs are automatically handled

14
New Nameserver
Fallthrough
Client
NS
Nameserver Hash Table IS Updated
Broadcast TCP Connection
15
Results
  • Tested name resolution and connection
  • 10,465 PVs on 36 IOCs
  • Max 300 PVs/IOC)
  • Without Nameserver 4.39 sec
  • With New Nameserver 2.18 sec
Write a Comment
User Comments (0)
About PowerShow.com