Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> wrote:
> > > 2. Use per-thread log files.
> > > File names would be "pgbench_log.<main-process-id>.<thread-id>".
Here is a patch to implement per-thread log files for pgbench -l.
The log filenames are "pgbench_log.<main-process-id>.<thread-serial-number>"
for each thread, but the first thread (including single-threaded) still uses
"pgbench_log.<main-process-id>" for the name because of compatibility.
$ pgbench -c16 -j4 -l
pgbench_log.2196 pgbench_log.2196.1 pgbench_log.2196.2 pgbench_log.2196.3
Comments and suggenstions welcome.
NTT Open Source Software Center
In response to
pgsql-hackers by date
|Next:||From: Domenico Rotiroti||Date: 2010-03-16 08:37:42|
|Subject: [RFC] Comments on PostPic project - Repost|
|Previous:||From: Takahiro Itagaki||Date: 2010-03-16 02:13:37|
|Subject: Re: Ragged latency log data in multi-threaded pgbench |