Skip site navigation (1) Skip section navigation (2)

Re: What happens on a commit?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Chris Hoover <revoohc(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: What happens on a commit?
Date: 2007-05-22 19:30:10
Message-ID: 20070522193010.GH11032@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-admin
Chris Hoover escribió:
> I found an e-mail showing how to strace and here is what I have found.  Does
> it help/mean anything to those who can decode this?
> 
> We are installing PostgreSQL from the official rpms.
> 
> Chris
> 
> time strace -c -p 2690
> Process 2690 attached - interrupt to quit
> Process 2690 detached
> % time     seconds  usecs/call     calls    errors syscall
> ------ ----------- ----------- --------- --------- ----------------
> 42.80   13.003288         251     51790           recv
> 17.47    5.306686          30    175916           send

This means that 60% of the time spent by system calls is due to network
operations.  But they account to 18.3 seconds, whereas this

> real    27m21.090s
> user    0m5.379s
> sys     0m23.073s

says that the total time spent is 27:21.  So you have to explain the
remaining 27:03 which are elsewhere.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

pgsql-admin by date

Next:From: Peter KoczanDate: 2007-05-22 21:05:30
Subject: Re: trouble restarting a server
Previous:From: Peter ElmersDate: 2007-05-22 19:22:58
Subject: Re: Size of logfiles

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group