From: | Jeremy Harris <jgh(at)wizmail(dot)org> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: external sort performance |
Date: | 2011-11-20 16:11:53 |
Message-ID: | 4EC926C9.1030409@wizmail.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On 2011-11-20 15:00, Jon Nelson wrote:
> Do you happen to recall if disk I/O is
> counted as user or system time?
Neither, traditionally. Those times are cpu times;
they only account for what the cpu was doing.
The disks could be working in parallel as a result
of cpu actions, and probably were - but the software
found work to do for the cpu. You'd want to be
looking at iostat during the run to see how busy the
disks were.
As to why it takes 16 hours cpu to do the external
version but only 34 minutes for internal - some of that
will be down to data-shuffling in- and out- of disk files
which is nonetheless accounted to user-mode cpu time,
but some will be the plain inefficiency of the external
version having to effectively do work over many times
because it can't have a complete view of the problem at
hand at any one time.
--
Jeremy
From | Date | Subject | |
---|---|---|---|
Next Message | Rauan Maemirov | 2011-11-21 05:53:47 | Re: Problems with FTS |
Previous Message | Jon Nelson | 2011-11-20 15:00:41 | Re: external sort performance |