SImulated nanoidentation of copper, magnesium, and graphite. Copper deforms primarily through dislocations, resulting in large permanent plastic deformation. Magnesium deforms through a combination of twinning and dislocation activity. Some, but not all twinning is reversible. Graphite deforms through bulk ripplocations, resulting in complete recovery even with double indentation amplitude.