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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: simplify register_dirty_segment()


  • From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
  • To: pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: simplify register_dirty_segment()
  • Date: Tue, 26 Apr 2005 14:03:17 +0800
  • Message-id: <d4klmq$2imb$1(at)news(dot)hub(dot)org>

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes
> It would be a reasonable
> bet for a kernel designer to assume that fsync() is generally going to
> have to wait for some I/O and so a bit of CPU overhead isn't really
> going to matter.

Reasonable.

>
> Adjusting such a global refcount would require global locks, which is
> just what you were hoping to avoid :-(

I don't want to avoid the global locks but to alleviate it :-( Think the
frequency of open()/close() will be much less than write(). Also the shmem
space required. On further thought, I agree that this is unneccessary if for
BgWriterCommLock reason - because currently BufMgrLock doesn't bother us too
much, which is more intensively used, this lock is just nothing.

Regards,
Qingqing





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group