Probably the most useful effect of defrag is to increase the contiguous free space on the disk.
Regarding the swap file, the only (and best) way to defrag that is to use the system configuration to set it to zero, then restart and set it back to whatever it was.
SD