Swap is a partition to hold memory data for applications that run in an idle state. It is rather a relict from times when RAM was expensive and small. It allows using more memory then is actually available, by copying unneeded memory blocks to hard disk.
The proc file system is a method to give information about the running system by making the infos available as standard file streams.
Debian