From the qstat (Sun Grid Engine) manpage:
mem: The current accumulated memory usage of the job in Gbytes seconds.
What does that mean?
I couldn't find better documentation than the man page where that description can be found. I think 1 Gbyte second is 1 Gbyte of memory used for one second. So if your code uses 1 GB for 1 minute then 2 GB for two minutes, the accumulated memory usage is 1*60 + 2*120 = 300 GByte seconds.