Run time memory of perl script -
i having perl script killed automated job whenever high priority process comes script running ~ 300 parallel jobs downloading info , consuming lot of memory. want figure out how much memory takes during run time can inquire more memory before scheduling script or if know using tool portion in code takes more memory, can optimize code it.
regarding op's comment on question, if want minimize memory use, collect , append info 1 row/line @ time. if collect of variable @ once, means need have of in memory @ once.
regarding question itself, may want whether it's possible have perl code run 1 time (rather running 300 separate instances) , fork
create individual worker processes. when fork
, kid processes share memory parent much more efficiently possible unrelated processes, will, e.g., need have 1 re-create of perl binary in memory rather 300 copies.
perl memory
No comments:
Post a Comment