AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.08.20 07:31 "memory allocation", by Peter Majer
2002.08.20 16:13 "RE: memory allocation", by Roger Bedell
2002.08.20 20:48 "OT: large memory allocation in Windows", by Dante Allegria
2002.08.21 08:34 "Re: OT: large memory allocation in Windows", by Rob van den Tillaart
2002.08.21 11:30 "Re: OT: large memory allocation in Windows", by Peter Majer
2002.08.21 13:47 "Re: OT: large memory allocation in Windows", by Rob van den Tillaart
2002.08.21 16:05 "Re: OT: large memory allocation in Windows", by Bob Friesenhahn
2002.08.21 20:47 "Re: OT: large memory allocation in Windows", by Peter Nielsen
2002.08.22 08:33 "Re: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.08.22 15:30 "RE: OT: large memory allocation in Windows", by Roger Bedell
2002.08.22 16:29 "Re: OT: large memory allocation in Windows", by Chris 'Xenon' Hanson
2002.08.22 17:20 "RE: OT: large memory allocation in Windows", by Roger Bedell
2002.08.22 17:46 "RE: OT: large memory allocation in Windows", by Dante Allegria
2002.08.22 17:33 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.08.22 18:45 "Re: OT: large memory allocation in Windows", by Chris 'Xenon' Hanson
2002.08.22 21:19 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.09.01 17:14 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.09.05 17:00 "Re: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.09.05 17:03 "Re: OT: large memory allocation in Windows", by Peter Montgomery
2002.08.22 15:59 "RE: OT: large memory allocation in Windows", by Ed Grissom
2002.08.22 22:09 "RE: OT: large memory allocation in Windows", by Andreas R. Kleinert
2002.08.21 11:48 "Re: OT: large memory allocation in Windows", by Peter Nielsen
2002.08.22 18:00 "Re: OT: large memory allocation in Windows", by Bob Friesenhahn
2002.08.22 18:18 "Re: OT: large memory allocation in Windows", by Peter Montgomery

2002.08.20 20:48 "OT: large memory allocation in Windows", by Dante Allegria

Hi Roger,

I am also confused about memory allocation. For the life of me, I cannot get Windows to allocate more memory than is contiguous in physical memory. In other words, if I do a GlobalAlloc for a fairly large chunk (perhaps 1GB or so), it always fails, even though I have lots of virtual memory. Anyone suggestions?

This is a problem that one of my co-workers encountered before. It's largely due to fragmentation of the process' virtual memory space. This can easily occur if you're using a lot of DLL's that have not been "rebased" (see the "rebase" utility that comes with MSVC). Even after you've rebased your DLL's into as low a memory location as possible, you still can't control where the OS loads various DLL's into your process virtual address space. If you want to check out your virtual address space, the OS call HeapWalk() and its cousins can give you more info.

Finally, note that you have a theoretical limit of 2GB of virtual address space on standard Windows NT/2K/XP anyhow so it's unlikely that you can go much past allocating 1GB of memory. On special enterprise editions of Windows, you can supposedly get up to 3BG of virtual address space for your app.

dante