Re: odd postgresql performance (excessive lseek)
От
Jon Nelson
Тема
Re: odd postgresql performance (excessive lseek)
Дата
Msg-id
AANLkTimJmKx+3PZjO=7Z_d2Ts144RjnVh+RSYwfe9Aw5@mail.gmail.com
Ответ на
Re: odd postgresql performance (excessive lseek) (Merlin Moncure)
Список
Дерево обсуждения
odd postgresql performance (excessive lseek) Jon Nelson <jnelson+pgsql@jamponi.net>
Re: odd postgresql performance (excessive lseek) Jon Nelson <jnelson+pgsql@jamponi.net>
Re: odd postgresql performance (excessive lseek) Tom Lane <tgl@sss.pgh.pa.us>
Re: odd postgresql performance (excessive lseek) Robert Haas <robertmhaas@gmail.com>
Re: odd postgresql performance (excessive lseek) Tom Lane <tgl@sss.pgh.pa.us>
Re: odd postgresql performance (excessive lseek) Jon Nelson <jnelson+pgsql@jamponi.net>
Re: odd postgresql performance (excessive lseek) Greg Smith <greg@2ndquadrant.com>
Re: odd postgresql performance (excessive lseek) Merlin Moncure <mmoncure@gmail.com>
Re: odd postgresql performance (excessive lseek) Merlin Moncure <mmoncure@gmail.com>
Re: odd postgresql performance (excessive lseek) Jon Nelson <jnelson+pgsql@jamponi.net>
On Tue, Oct 19, 2010 at 8:25 AM, Merlin Moncure wrote: > On Tue, Oct 19, 2010 at 9:10 AM, Jon Nelson wrote: >> No replies? >> >> This is another situation where using pread would have saved a lot of >> time and sped things up a bit, but failing that, keeping track of the >> file position ourselves and only lseek'ing when necessary would also >> help. Postgresql was spending 37% of it's time in redundant lseek! > > 37% of cpu time? Is that according to strace -T? how did you measure it? Per the original post, it (redundant lseek system calls) accounted for 37% of the time spent in the kernel. strace -f -p -c -- Jon
В списке pgsql-performance по дате отправления