Dark matter, density perturbations, and structure formation