I believe that during the height of the Gulag, local jails were mainly used as interrogation and storage facilities for people who would eventually end up in the camps. Certainly the camps held both those convicted of political and criminal offences.
I can recommend both Anne Applebaum's excellent "Gulag - A History" and, of course, Solzhenitsyn's incredible "Gulag Archipelago":
Stalin gulags: 1,727,970 people in 1953
(I am no expert on the Gulag system. Whatever the case is, it's uncontroversial that the US is the world's leading jailer of its own populace.)
(http://en.wikipedia.org/wiki/Incarceration_in_the_United_Sta..., http://en.wikipedia.org/wiki/Gulag#Brief_history)