Violence in Baghdad and north Iraq killed nine people on Friday as throngs of Shiite pilgrims converged on the Iraqi capital for annual commemoration rituals.