No room to swing a cat
Despite the vivid imagery, this phrase about cramped quarters likely refers to the cat-o'-nine-tails, a multi-tailed whip used for punishment in the Royal Navy. Below decks, there was genuinely not enough space to swing the whip, so floggings were administered on the open deck instead.