it is not a rule, it was just because mostly systems had less physical memory earlier so we had to made swap space just double of ram but now days system have sufficient physical memory around 1 GB or more then 1 GB mostly ,so there is no need to create 2 GB swap partition if you do create only 1 GB swap your system will work fairly without any issue.