Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run map and threading

Status
Not open for further replies.

dstxaix

Programmer
Dec 22, 2005
78
US
We are running DSTX 7.5 on AIX.

In an event server, I have a map which calls a run map. Input file contains multiple records and the map calls the run map for each record. The map is slow slow it looks like it is not multithreading at all. I have checked the usual things like unique audit filename, "no tracing" etc to make sure no settings are making it run single threaded.

I can only guess that the run map is doing a lot of processing and is very slow. Another instance of the map cannot use the run map while it s being used by this map.
Any suggestions?
 
The RUN map and the RUN statement must all be thread safe. The main map also has to be thread safe. Check your CPU usage. If you are using 100% of the CPU for this process, multi-threading will only slow it down.

Based on what you stated, however, a RUN map being called via a Functional map is not multi-threading. The calls are serial. Each RUN map must complete before it returns to the main map and the next record processed.

Possible solution: Don't call a RUN map. Have the main map create a unique file for each record, and have a multi-threaded map trigger from that file. This only works if your new processing map uses less than 100% of the CPU or you have multiple CPUs.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top