The PGSQL_MAX_FSM_PAGES variable tells the vacuum process how many pages to look for in the shared free-space map.
Integer
500000
Each FSM page uses 6 bytes of RAM for administrative overhead, so increasing FSM substantially on systems low on RAM may be counter-productive.