David Symonds wrote:
> I would expect it to be the former: 10 to 12 cents for occupying one
> CPU core for an hour (proportional to your usage, of course).
>
> What makes you think it's other than that?
Ross Ridge <
rri...@csclub.uwaterloo.ca> wrote:
> Pretty much everything I've heard about CPU related quotas here
> suggests that they're currently using wall clock time. Time spent
> blocked waiting for a datastore or URL fetch API call to complete
> counts against your CPU quota.
David Symonds wrote:
> That's what I said: occupying the CPU core, whether you're actively
> using it or just blocking while waiting for a synchronous operation to
> complete.
A process blocked waiting for an operation to complete doesn't consume
any CPU cycles. The operating system schedules other processes to run
during that time.
Usually the CPU time of process refers only to the time spent actually
executing on CPU, and doesn't include any time spent blocked. If you
look at the CPU times given by Window's Task Manager or Linux's ps
command, you'll see that it's very normal for their to be processes
whose CPU time is only a tiny fraction of the time elapsed since they
were started. If this what Google ment by CPU time, then time spent
waiting for a datastore or URL fetch API call to complete wouldn't
count against your quota becaue your app isn't actually running on the
CPU during these times. Instead Google seems to be measuring the
amount of CPU used during a request using "wall clock" time, that is,
the actual time it takes for the request to complete, regardless of
how much of that time your app was actually using the CPU.
Ross Ridge