Home > Software engineering > Why the same program, use the memory on a 64 - bit system will be more than those of the 32 bit?
Why the same program, use the memory on a 64 - bit system will be more than those of the 32 bit?
Time:10-25
Server program, a run on Windows server 2003 (32), a run on 2008 (64), and 2003 the number of threads on more than 2008, but the memory used by 2003 less than 100 m in 2008, who have been familiar with this area?
CodePudding user response:
1, the system is different, a 64 - bit Windows more than 32 bit complicated, not only expand the address length that simple, 2200 3 architecture and 2008 completely different, you use 32-bit and 64 - bit 2003 2003 is also about the same, 3, address and data field length increase
CodePudding user response:
The same code, 32 (compiled binary size is different,
CodePudding user response:
I guess it is like this: 32-bit system less physical memory because of you, so want to have most of the program to cache to disk, when you put the application on a 64 - bit system, because of the physical memory is more, so there's no need to put a lot of application cache to disk, repeat the procedure in physical memory, so 64 is more than the 32-bit memory
CodePudding user response:
Is the default byte alignment problem? 32-bit is 4, 64 was eight,,, you should be bigger,