News for hackers. Stuff that matters.
Re:Investigation: Is Your SSD More Reliable Than A Hard Drive? by caf on Monday September 19, 2011 @02:03AM (#3012501)
The kernel should really issue a large TRIM for most of the swap partition at swapon time.
Re:Investigation: Is Your SSD More Reliable Than A Hard Drive? by caf on Tuesday September 20, 2011 @01:56AM (#3016462)
...and in fact, it does so: http://lxr.linux.no/#linux+v3.0/mm/swapfile.c#L2117 (and has since kernel 2.6.29).

Additionally, if you set the SWAP_FLAG_DISCARD flag to swapon(2), it'll issue TRIMs for swap space that is freed at runtime. You'll need a pretty recent /sbin/swapon to support that flag, though.