The existence of the expression ריש גרגותא suggests that this Babylonian usage, otherwise without etymology, is connected with the early Akkadian loanword gwgl n.m. "canal inspector" (q.v.) with l -> r and metathesis.
Page refs. in other dictionaries: DJBA: 298aJastrow: 264