It is primarily a male name. It comes from the Irish surname Ryan. See Ryan (surname) for more information about the origins of the name. Popular sources typically suggest that Ryan means "little king" or "illustrious", although the original meaning of the name is obscure.
Miles /ˈmaɪlz/ is a male name from the Latin miles, a soldier. The medieval knight was called miles in Medieval Latin, while in Classical Latin, miles meant simply soldier of any sort, including infantry. Miles Gloriosus, whose name means "boastful soldier", was a comic stock character in classical Roman drama.