The 2017 27" iMac has four slots and ordering 16GB fills two of them, so that's the answer to your first question. I ordered my iMac that way. It turned out that 16GB is plenty for me so far, but it's nice to have the option to add memory down the road.
Here's a clip from the Apple site on compatible memory:
Use Small Outline Dual Inline Memory Modules (SO-DIMM) that meet all of these criteria:
source: https://support.apple.com/en-us/HT201191#27inch2017
- PC4-2400 (19200)
- Unbuffered
- Nonparity
- 260-pin
- 2400MHz DDR4 SDRAM
The factory installed DIMMS in my machine are installed as follows:
Bank 0/DIMM0 8 GB
Bank 0/DIMM1 Empty
Bank 1/DIMM0 8 GB
Bank 1/DIMM1 Empty
Most discussion elsewhere assumes that modules are added in pairs and that iMacs use dual-channel memory. I don't think you'd see a difference between 4x4GB and 2x8GB.
If that's how the slots look visually in terms of Bank numbers, which is different to a typical PC motherboard, then should the DIMMs be moved so that matching pairs are in the same bank? This is what I would normally do when I build PCs.
As an example, say we are upgrading the above 2x8GB configuration to 24GB by adding 2 x 4GB dual-channel DIMMs. What I would do on a new PC build is this (from a Bank layout point of view):
Bank0 / DIMM0 - 8GB
Bank0 / DIMM1 - 8GB
Bank1 / DIMM0 - 4GB
Bank1 / DIMM1 - 4GB
This would translate to this from a visual/physical layout point of view on a typical PC motherboard:
Bank0 / DIMM0 - 8GB
Bank1 / DIMM0 - 4GB
Bank0 / DIMM1 - 8GB
Bank1 / DIMM1 - 4GB
This ensures that matching dual-channel DIMMs are working in pairs.
This would mean that adding the two 4GB DIMMs would require rearranging the factory installed DIMMs on an iMac. Just by adding two DIMMs to the factory configuration would give you this (from a Bank point of view):
Bank0 / DIMM0 - 8GB
Bank0 / DIMM1 - 4GB
Bank1 / DIMM0 - 8GB
Bank1 / DIMM1 - 4GB
Would this not result in all of the installed DIMMs operating in single-channel mode, resulting in slower performance?
I would have expected the iMac DIMM slots to be physically arranged like this (just like on a PC motherboard) as the factory installed DIMMs are installed in alternating slots and not next to each other:
Bank0 / DIMM0
Bank1 / DIMM0
Bank0 / DIMM1
Bank1 / DIMM1
Does anybody have a definitive answer to the visual/physical Bank arrangement of the four DIMM slots (I don't have my iMac yet to check)?