Good plans of attack... I like it.
The Perl executes a commercial .exe which I cannot modify so keeping a record of initialization time would be best for me.
The control loop added 1-2 to the machines load. I thought this was caused by more instances of the command line interface. I thought the performance benefit of quickly removing supposedly unused shm id's was worth the trade off.