Forums > MaxMSP

Maximum buffer size ? any limitation beyond RAM ?

April 14, 2008 | 7:35 pm

Hello,

I’m facing issue with allocating large buffer size.

After browsing the forums for a over an hour, I do understand some things like MSP’s 32bits float doubling size, but still I’m guessing if there is an overall limitation beyond available RAM, because on a 3Go Ram PC I was not able to go beyond 59 min of a stereo buffer.

So I did a little patch to understand the issue :

So far, there is differents error messages when trying to allocate or load large memory :
- "out of memory" message when trying to load large file
- "not enough memory to resize" when trying to resize
- "• error: buffer~: size: bad size ." when trying to resize bigger

I understand the two first message, but what means the "bad size" message ? Do adding more RAM will help or is this a limitation of the buffer~ external, whatever the embed RAM is ?

i.e. trying to resize to 102 min on MONO buffer was giving the same "bad size" message in any tested computer, even with 3Gb of RAM.

What’s surprising is that on my little powerbook with 512 Mo, I was able to get as much as in the big PC. (59min of stereo- same 102 min ceiling)

My goal is to read or record files up to 2Gb in PC’s with about 4Gb of Ram, and do processing in nonrealtime (so sfrecord~ is kind of a dead horse…)

Thanks for any help !

Salvator

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 434 291 130 196617 work;
#P comment 387 331 43 196617 102 min;
#P comment 387 311 43 196617 60 min;
#P comment 434 311 262 196617 • error: buffer~: helpbuf: not enough memory to resize;
#P comment 387 255 252 196617 Tested with PC 2GMo 3Ghz winXP SP2 Max 4.6.3;
#P comment 434 331 257 196617 • error: buffer~: size: bad size 6120000.;
#P comment 387 291 43 196617 50 min;
#P comment 83 294 130 196617 work;
#P comment 36 334 43 196617 102 min;
#P comment 36 314 43 196617 60 min;
#P comment 83 314 262 196617 • error: buffer~: helpbuf: not enough memory to resize;
#P message 33 77 26 196617 102;
#P message 63 77 26 196617 101;
#P message 153 77 20 196617 50;
#P comment 36 258 280 196617 Tested with powerbook 512Mo 1.5Ghz OS 10..5.1 Max 4.6.3;
#P comment 83 334 257 196617 • error: buffer~: size: bad size 6120000.;
#P message 93 77 26 196617 100;
#P message 213 77 20 196617 10;
#P comment 32 56 309 196617 Warning , allocating Ram for above 20 min , may slow down system;
#P message 125 77 20 196617 60;
#P comment 36 294 43 196617 50 min;
#P flonum 125 170 56 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 173 110 59 196617 minutes;
#P comment 173 131 59 196617 min. to secs;
#P message 183 77 20 196617 20;
#P message 273 77 23 196617 0.1;
#P message 243 77 14 196617 1;
#P newex 125 130 35 196617 * 60.;
#B color 5;
#P newex 125 150 47 196617 * 1000.;
#B color 5;
#P flonum 125 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 125 190 66 196617 prepend size;
#B color 5;
#P message 193 191 41 196617 replace;
#P newex 125 210 121 196617 buffer~ helpbuf 10000 2;
#B color 5;
#P comment 173 152 59 196617 secs to ms;
#P connect 3 0 1 0;
#P hidden connect 2 0 1 0;
#P connect 12 0 3 0;
#P connect 5 0 12 0;
#P connect 6 0 5 0;
#P connect 4 0 6 0;
#P fasten 9 0 4 0 188 101 130 101;
#P fasten 8 0 4 0 278 101 130 101;
#P fasten 7 0 4 0 248 101 130 101;
#P fasten 14 0 4 0 130 101 130 101;
#P fasten 16 0 4 0 218 101 130 101;
#P fasten 17 0 4 0 98 101 130 101;
#P fasten 20 0 4 0 158 101 130 101;
#P fasten 21 0 4 0 68 101 130 101;
#P fasten 22 0 4 0 38 101 130 101;
#P window clipboard copycount 34;


April 16, 2008 | 5:16 pm

Hello,

I’m still try to find workaround for PC, but no sucess so far.

What’s surprising is that the RAM used by max no that much while the "not enough memory to resize" already appear.

For example, I have a PC with 2 Go of RAM, and in max I can allocate a 50 min buffer which show about 1.1Go of RAM usage in "activity monitor" (considering it’s 32bits float).

SO I still have about 700 Mo of available RAM, but still I can’t do a larger buffer or add another one. Why ?

I’ve tried this with another PC which has 3.12G of Ram, and same "not enough memory" message, even if I have still above 1.5G of unused RAM.

Thanks you C74 for any help or advice. I’ve tried on about 6 PC’s computer so far with Max 4.6.3 and it’s runtime, under windows XP SP2

Salvator


Viewing 2 posts - 1 through 2 (of 2 total)