So I tried to run a script that called a new kernel function every few seconds. The reason for this was to check whether a computer user had made any changes to relevant parameters. The whole computer got bogged down, and I realized that artiq_master was increasing its memory usage by about 3 MB per kernel call, filling up its alotted GB in a few minutes.
Is there a way to sortof garbage collect after kernel calls to get around this? Is the large usage because of some debugging messages I'm getting for each kernel call (they don't show up in the log or influence performance, only in the console).