We study the stability of anisotropic fluid configuration using a relation between density and pressure. For this purpose, we formulate the corresponding field equations, generalized Tolman-Oppenheimer-Volkoff equation and mass equation which are necessary to discuss the structure of compact stars and solve them through numerical technique. The stability of the compact object is analyzed through cracking and formulate the force distribution function after perturbing the matter quantities. Further, we plot the resulting force function and examine the occurrence of cracking/overturning.