Linuxsampler (windows) doesn't load TBO

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
sbenno
Developer
Posts: 80
Joined: Wed Jan 23, 2008 8:30 pm

Re: Linuxsampler (windows) doesn't load TBO

Post by sbenno » Mon Jul 28, 2008 9:43 pm

You said 1600MB before crashing, looks like about to hit the 2GB ceiling.
I suspect vista32 by default does not allow to address more than 2GB so perhaps this could be the reason.
I don't know if vista32 handles this differently but I know that people on XP set the large address aware bit in their audio apps in order to
address up to 3.5GB per process.
you can try to set the LAA (large address aware) bit in the LS binary (linuxsampler.exe) (if vista supports it) and see what happens.
look at these links for useful infos:
http://www.keindesign.de/stefan/poser/3gb.html
http://plogue.com/phpBB2/viewtopic.php?t=2911
http://www.northernsounds.com/forum/sho ... hp?t=57147
http://www.microsoft.com/whdc/system/pl ... AEmem.mspx

hmmm Vista seems to handle it differently than XP:
I think the first link describes what you need to do in Vista:
http://en.wiki.mcneel.com/default.aspx/ ... Aware.html
http://msdn.microsoft.com/en-us/library/ms791558.aspx

anyway it's worth experimenting.
Or perhaps it could be that LS is somewhere using a signed index to access the samples so samples larger than 2GB cause problems.
I'll ask Christian tomorrow to see whether LS is 4GB clean.
let us know if you make some progress so we put it on the FAQ on the LS site.

wistily
Newbie
Posts: 11
Joined: Tue Jul 22, 2008 11:07 pm

Re: Linuxsampler (windows) doesn't load TBO

Post by wistily » Mon Jul 28, 2008 10:32 pm

Ok Sbenno, you got it right !
I enabled the LAA bit in the LS binary with the "laatido" tool on this page:
http://www.musikbanken.se/TechLaaTiDo.aspx
Then, i upgraded userspace memory in Vista from 2GB to 3GB:
BCDEDIT /export "C:\BCD Backup" (- Makes a backup of your original settings)
BCDEDIT /set increaseuserva 3072 (- Changes the memory setting)

And now it works !
The final process size is 1 787 680K

Thanks for your help !

sbenno
Developer
Posts: 80
Joined: Wed Jan 23, 2008 8:30 pm

Re: Linuxsampler (windows) doesn't load TBO

Post by sbenno » Mon Jul 28, 2008 10:44 pm

hehe glad that it worked :) I was already fearing some nasty bug in LS but Windows always reserves nice surprises to users and developers,
especially when it comes to memory management :)

AFAIK there are already a port of mingw floating around which is capable to generate WIN64 code (binaries which can access 64bit memory on Vista64) and
since the LS codebase is 64bit clean we could release LS 64bit allowing to access all the available RAM.
But I guess releasing LS VST 32bit before is more useful to many users because it provides full sequencer integration.
a VST 64bit LS plugin would make sense too but let's do one step at time. Once VST 32bit works well I guess making the VST 64bit plugin is more or less
a recompile with some compiler flag tweaking.

Post Reply