F
Frank Rizzo
Hello,
I've compiled my app for AnyCPU setting in vs2005. Then I tried the app
on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory
usage of the application when working on the same data set were
unbelievable (the data is from Task Manager) :
32-bit Windows 2003 R2
Mem Usage: 481,400k
Peak Mem: 583,020k
64-bit Windows 2003 R2
Mem Usage: 934,456k
Peak Mem: 1,254,008k
In other words, basically memory usage doubled. Now I can see that the
size of pointers would double, but most of the data is of type int,
short, string, etc... e.g. types that are the same size on 32 and 64 bit
machines (at least its c# aliases). The object model is pretty big and
it does have a lot of pointers to objects, but the size of the data
dwarfs the potential size of all the pointers, etc...
Why is difference so huge? Or am I measuring the wrong metrics here?
Regards
I've compiled my app for AnyCPU setting in vs2005. Then I tried the app
on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory
usage of the application when working on the same data set were
unbelievable (the data is from Task Manager) :
32-bit Windows 2003 R2
Mem Usage: 481,400k
Peak Mem: 583,020k
64-bit Windows 2003 R2
Mem Usage: 934,456k
Peak Mem: 1,254,008k
In other words, basically memory usage doubled. Now I can see that the
size of pointers would double, but most of the data is of type int,
short, string, etc... e.g. types that are the same size on 32 and 64 bit
machines (at least its c# aliases). The object model is pretty big and
it does have a lot of pointers to objects, but the size of the data
dwarfs the potential size of all the pointers, etc...
Why is difference so huge? Or am I measuring the wrong metrics here?
Regards