Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is 'Gbytes seconds'?

From the qstat (Sun Grid Engine) manpage:

mem: The current accumulated memory usage of the job in Gbytes seconds.

What does that mean?

like image 733
Reactormonk Avatar asked Dec 02 '12 22:12

Reactormonk


2 Answers

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.

like image 52
stardt Avatar answered Nov 08 '22 08:11

stardt


The Gigabyte-second unit specifies the amount of memory allocated to a task per second that that task runs.

Example:

  • Task 1: 1 GB * 10 seconds = 10 gb-sec

  • Task 2: .128 MB * 10 seconds ~ 0.128 GB * 10 Seconds = 1.28 gb-sec

  • Task 3: 8 GB * 10 seconds = 80 gb-sec

In practice it's often employed as a devops metric or as a way of billing out services designed to run for short time periods and then terminate such as serverless function services on PaaS clouds.

like image 42
Mike Turner Avatar answered Nov 08 '22 10:11

Mike Turner