Analysis of Distributed Optimization Algorithms on a Real Processing-In-Memory System