Ubuntu supports trim, 10.10 certainly does. There are plenty of threads out there on this if you do a search.