You can remember the meaning of 室友 with this easy mnemonic:
I don't think I want a room (室) mate unless it's a close friend (友).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.