The origin of the 2x swap size rule is unclear, but it likely originated from the 4.3BSD virtual memory implementation and was influenced by the need for contiguous block allocation on disk. The rule is a rough estimate, partly psychological and partly technological, aiming to ensure that roughly the same amount of RAM is swapped out as physical RAM, with the goal of allocating contiguous ...