The piston/cylinder pair is one of the most critical friction pairs in piston pumps. This study addresses the lubrication performance optimization of textured piston/cylinder pairs in axial piston pumps. By establishing a two-dimensional numerical model based on the Reynolds equation coupled with Reynolds cavitation boundaries, we investigate the lubrication regulation mechanism of surface textures under realistic conditions, including piston inclination and varying eccentricities that result in non-parallel oil films. This work clarifies the necessity of incorporating cavitation effects in piston lubrication analysis and examines the influence of key texture geometric parameters, such as area ratio, distribution, depth and shape. The results indicate that appropriately increasing the texture area and depth can effectively regulate the cavitation effect, thereby significantly improving the load-carrying capacity and lubrication performance of the oil film, while the shape and distribution of the textures have no significant impact on performance. The research findings can guide the surface texture design of high-performance piston pumps, thereby providing theoretical support for optimizing their lubrication performance and product development.