Some Linux (Chinese version) Installation manuals often show that the swap space cannot exceed 128 MB. Why is there such a saying? Before explaining the history of the number "M", I would like to give a question: there is no m limit at all! The current limit is 2 GB! Swap space is paging. The size of each page is the same as that of the Memory Page, facilitating data exchange between swap space and memory. In the earlier version of Linux, when implementing the swap space, the first page of the swap space is used as a bit map for all the swap space pages ). This means that each bit on the first page corresponds to a page of swap space. If this parameter is set to 1, swap is available on this page. If it is set to 0, this page is a bad block and cannot be used. In this case, the first swap ing bit should be 0, because the first page of swap is a ing page. In addition, the last 10 ing bits are also occupied to represent the swap version (the original version is swap_space, and the current version is swapspace2 ). If the size of one page is S, the swap implementation method can manage "8 * (S-10)-1" swap pages. For i386 systems, if S = 4096, the total space size is 133890048. If 1 MB = 2 ^ 20 byte, the size is exactly 128 M.