[PD] show "used or free system memoy" from within pd-extended (Ubuntu 8.04) -nogui - is this possible?

Mathieu Bouchard matju at artengine.ca
Fri Feb 27 16:31:59 CET 2009


On Fri, 27 Feb 2009, Ingo Scherzinger wrote:

> is it possible to show "used or free system memoy" from within 
> pd-extended (Ubuntu 8.04) -nogui. I need this because I'm working with a 
> large sample library and I'm getting close to the internal memory limit. 
> Pd can't handle going over the limit!

In theory you could just read /proc/$$/stat using [textfile] and bang it 
to get its only line and pick up $23 from that list, but in practice, even 
with the cr option, I can't make [textfile] output a line of it, and I 
don't know anything that can tell you "$$" in pd, which is the process id 
that you see when you use the "ps" command in Linux/Bash.

Replacing $23 by something else would get you other interesting info, from 
the same set that "ps" can tell you about, perhaps a bit more.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec


More information about the Pd-list mailing list