The red tub with the string hanging was the fuze bucket,
slow burning cord, usually line soaked in saltpeter would be smouldering away
slowly to be used to finally fire the cannon.

As to space on ships like this model represents,
imagine it with about a 6 to 8 man gun crew
for each gun and then pack 'em all into that kinda space.