Hey all,
Anyhow have an abstraction laying around that gives the current CPU load? I'm trying to track down a freeze in my long term installation, and so far I have no indication of why it froze. Perhaps an ever increasing CPU load could give me a suspect...
Thanks, B. Bogart
there is a built-in objectclass [cputime]. actually i am not so sure how to use it. here it outputs only multiples of 10 ('10', '20', '30' etc).
but for your purpose, why do you need to measure the cpu load inside pd? you could probably also use 'top' or 'top -p<pid_of_pd>' to monitor cpu load.
roman
On Wed, 2007-11-14 at 14:17 -0800, B. Bogart wrote:
Hey all,
Anyhow have an abstraction laying around that gives the current CPU load? I'm trying to track down a freeze in my long term installation, and so far I have no indication of why it froze. Perhaps an ever increasing CPU load could give me a suspect...
Thanks, B. Bogart
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
I would suspect a memory leak. Your system will use up all its memory for a while, then use up the virtual memory (swap space) which slows things down by using the hard drive. Eventually it will use up all memory and virtual memory, causing a lockup eventually.
ps aux | grep pd can give you some good info on memory usage. Profilers like valgrind might help you to identify memory leaks too, I think.
Chuck
On Nov 14, 2007 4:17 PM, B. Bogart bbogart@goto10.org wrote:
Hey all,
Anyhow have an abstraction laying around that gives the current CPU load? I'm trying to track down a freeze in my long term installation, and so far I have no indication of why it froze. Perhaps an ever increasing CPU load could give me a suspect...
Thanks, B. Bogart
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Also, time how long it takes to crash. If it is always about the
same amount of time, there might be some counter overflowing.
.hc
On Nov 14, 2007, at 5:17 PM, B. Bogart wrote:
Hey all,
Anyhow have an abstraction laying around that gives the current CPU load? I'm trying to track down a freeze in my long term installation, and so far I have no indication of why it froze. Perhaps an ever increasing CPU load could give me a suspect...
Thanks, B. Bogart
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
I spent 33 years and four months in active military service and
during that period I spent most of my time as a high class muscle man
for Big Business, for Wall Street and the bankers. - General
Smedley Butler