The entropy principle shows that, for self-gravitating perfect fluid, the Einstein field equations can be derived from extrema of total entropy, and thermodynamical stability criterion are equivalent to dynamical criterion. In this paper, we recast charged fluid in Einstein-Maxwell theory, further give star with barotropic condition. order obtain criterion, first get general formula second vari...