The Padres have agreed to a four-year, $16.5 million contract with former Yankees and SF Giants lefty Wandy Peralta.