Q: PDG Service holding RAM?

   819   3   1
User Avatar
Member
6997 posts
Joined: July 2005
Offline
Hi,

I notice that after running a job through a Service (ROPfetch service in this case) that the RAM consumed by the Hython instances isn't cleared out.

Is there any way to have that happen? On high RAM jobs this is a bit crippling.

I took a look in the docs but couldn't find anything, though the PDG python docs are comprehensive and I might have missed it.

18.5.596 Win 10 Py 3

Cheers,

Peter B
User Avatar
Staff
386 posts
Joined: Aug. 2017
Offline
Hi Peter,

Currently there's no way to tell the service to reset and clear its cache. To work around this at the moment, you would need to restart the service whenever the memory needs to be freed up. We're looking into being able to issue a reset command to the services, however, which will provide a way to clear the contents of the scene file and empty out any caches that the service maintains without needing to restart it.
User Avatar
Member
6997 posts
Joined: July 2005
Offline
OK thanks Brandon, no worries, I'm just not using services for now and eating the Hython startup cost, given the length of some of my processes it's bearable for now

Looking forward to the "clear scene" option for services though, sounds like what the doctor ordered for sure.

Cheers,

Peter B
User Avatar
Member
20 posts
Joined: Sept. 2013
Offline
BrandonA
Hi Peter,

Currently there's no way to tell the service to reset and clear its cache. To work around this at the moment, you would need to restart the service whenever the memory needs to be freed up. We're looking into being able to issue a reset command to the services, however, which will provide a way to clear the contents of the scene file and empty out any caches that the service maintains without needing to restart it.

Are there any updates on this? I'm running into the same problem of quickly running out of RAM on a long-runing service processing lots of geometry/work items

Is there anything planned to be able to combine batching/services in some way, where you can respawn a service for every nth work item, or after a certain RAM percentage is hit etc etc
  • Quick Links