PC Review Forums Newsgroups Hardware Scanners Vuescan Memory Allocation error

Reply

Vuescan Memory Allocation error

 
Thread Tools Rate Thread
Old 27-01-2004, 01:28 AM   #1
Bruceh
Guest
 
Posts: n/a
Default Vuescan Memory Allocation error


I'm getting the error:

"Unable to allocate XXX MBytes of memory.
Try increasing the amount of virtual memory."

I'm using Windows 2000 Pro and increased Virtual memory
without any success.

Could there be a problem with Vuescan?

  Reply With Quote
Old 27-01-2004, 04:03 AM   #2
degrub
Guest
 
Posts: n/a
Default Re: Vuescan Memory Allocation error

How much real memory are you working with ? You really don't want to be
using virtual memory (ie swapping to disk). WHat size Mb images are you
working with ?

Frank

Bruceh wrote:
> I'm getting the error:
>
> "Unable to allocate XXX MBytes of memory.
> Try increasing the amount of virtual memory."
>
> I'm using Windows 2000 Pro and increased Virtual memory
> without any success.
>
> Could there be a problem with Vuescan?
>


  Reply With Quote
Old 27-01-2004, 05:24 AM   #3
Bruceh
Guest
 
Posts: n/a
Default Re: Vuescan Memory Allocation error

I'm maxed out with 512MB ram. I know that I'll be swapping in these
large scan situations, but I can live with it. The images are *big*.

bruce

degrub wrote:

> How much real memory are you working with ? You really don't want to be
> using virtual memory (ie swapping to disk). WHat size Mb images are you
> working with ?
>
> Frank
>
> Bruceh wrote:
> > I'm getting the error:
> >
> > "Unable to allocate XXX MBytes of memory.
> > Try increasing the amount of virtual memory."
> >
> > I'm using Windows 2000 Pro and increased Virtual memory
> > without any success.
> >
> > Could there be a problem with Vuescan?
> >


  Reply With Quote
Old 27-01-2004, 09:12 AM   #4
Bart van der Wolf
Guest
 
Posts: n/a
Default Re: Vuescan Memory Allocation error


"Bruceh" <bruce@notmyemail.net> wrote in message
news:40160412.9E24568D@notmyemail.net...
> I'm maxed out with 512MB ram. I know that I'll be swapping in these
> large scan situations, but I can live with it. The images are *big*.


How big? Are you scanning full res, full size on a flatbed scanner? That'll
be BIG! The operating system needs to have enough of a predefined virtual
diskspace to cope with that. You can see the resulting filesize in the
VueScan statusbar.

Bart


  Reply With Quote
Old 28-01-2004, 11:01 PM   #5
Kurt Stege
Guest
 
Posts: n/a
Default Re: Vuescan Memory Allocation error

Bruceh <bruce@notmyemail.net> wrote:

>I'm getting the error:
>
>"Unable to allocate XXX MBytes of memory.
> Try increasing the amount of virtual memory."
>
>I'm using Windows 2000 Pro and increased Virtual memory
>without any success.
>
>Could there be a problem with Vuescan?


Yes and no. I have seen the same problem on my computer.
This happens, when the size of the processed images
increases. (In my case, it happened while batch processing
a bunch of already scanned raw files from disk.)

I guess, it is a problem of memory fragmentation, of
fragmentation of virtual memory! Windows only support
2 GB of virtual memory for each process. That is a built
in constant you can't change. (The CPU using 32-bit-addresses
has an address range of 4 GB, but Windows uses the other
2 GB for system memory shared between severall/all processes.)

When allocating (and freeing) really huge memory blocks,
we are talking here about a half giga byte or more for
one raw image (and maybe a second memory block for a
processed copy), vuescan will get problems with the
fragmentation of the address space (as said, only 2 giga bytes).

Workaround: Restart vuescan. The new process beginns with an
fresh unfragmented memory.


By the way, the message from Windows is not quite correct.
You can't increase the size of virtual memory. That is fixed
at two giga bytes per process. You can increase the size
of physical available memory (physical ram and space in swap
file). But that will not help in this case...

Regards,
Kurt.
  Reply With Quote
Old 29-01-2004, 12:24 AM   #6
Bruceh
Guest
 
Posts: n/a
Default Re: Vuescan Memory Allocation error

> Yes and no. I have seen the same problem on my computer.
> This happens, when the size of the processed images
> increases. (In my case, it happened while batch processing
> a bunch of already scanned raw files from disk.)
>
> I guess, it is a problem of memory fragmentation, of
> fragmentation of virtual memory! Windows only support
> 2 GB of virtual memory for each process. That is a built
> in constant you can't change. (The CPU using 32-bit-addresses
> has an address range of 4 GB, but Windows uses the other
> 2 GB for system memory shared between severall/all processes.)
>
> When allocating (and freeing) really huge memory blocks,
> we are talking here about a half giga byte or more for
> one raw image (and maybe a second memory block for a
> processed copy), vuescan will get problems with the
> fragmentation of the address space (as said, only 2 giga bytes).
>
> Workaround: Restart vuescan. The new process beginns with an
> fresh unfragmented memory.
>
> By the way, the message from Windows is not quite correct.
> You can't increase the size of virtual memory. That is fixed
> at two giga bytes per process. You can increase the size
> of physical available memory (physical ram and space in swap
> file). But that will not help in this case...


Thanks for the explanation Kurt!

bruceh

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off