How Swap Memory Works In Linux

How Swap Memory Works In Linux : How the memory management works internally ?