Running a 32-bit binary on a 64-bit machine

What are the consequences if we run 32 binaries on a 64-bit machine. Will this have any effect if the machine has more than 4 GB of RAM (8 GB of RAM in the system)?

+6
source share
1 answer

When running 32-bit binaries on 64-bit machines (provided that the OS is running in 64-bit mode), you have the following restrictions:

  • The binary cannot use 64-bit arithmetic instructions. This may decrease performance.
  • A binary file cannot address more than 4 GB of virtual memory.

However, these 4 GB can be located anywhere in 8 GB of RAM. Therefore, if you use many 32-bit applications, each of which uses less than 4 GB, you use all your 8 GB of RAM.

Please note that due to various restrictions, your application may actually be able to allocate 2 GB of virtual memory.

+5
source

Source: https://habr.com/ru/post/911918/


All Articles