Unix Technical Forum

Question regarding clock-sweep

This is a discussion on Question regarding clock-sweep within the pgsql Hackers forums, part of the PostgreSQL category; --> Tom, Now that I'm beginning serious performance testing of clock-sweep, I was going back through the lock discussion and ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 04:23 AM
Josh Berkus
 
Posts: n/a
Default Question regarding clock-sweep

Tom,

Now that I'm beginning serious performance testing of clock-sweep, I was going
back through the lock discussion and am not sure what the patch that actually
went in 3 weeks ago consisted of. Is it clock-sweep with a used/unused bit
or a counter? How is it handling seq scans?

Oh, and incidentally, can I use the same database files for 8.0.2 and 8.1cvs
3/10/05?

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 04:23 AM
Neil Conway
 
Posts: n/a
Default Re: Question regarding clock-sweep

Josh Berkus wrote:
> Oh, and incidentally, can I use the same database files for 8.0.2 and 8.1cvs
> 3/10/05?


No.

-Neil


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 04:23 AM
Tom Lane
 
Posts: n/a
Default Re: Question regarding clock-sweep

Josh Berkus <josh@agliodbs.com> writes:
> Now that I'm beginning serious performance testing of clock-sweep, I
> was going back through the lock discussion and am not sure what the
> patch that actually went in 3 weeks ago consisted of. Is it
> clock-sweep with a used/unused bit or a counter? How is it handling
> seq scans?


It's clock-sweep with a counter. The counter increments on reference,
up to a small maximum value (BM_MAX_USAGE_COUNT in buf_internals.h),
and decrements when the clock hand passes over the buffer. I'd be
interested to see trials with different values of BM_MAX_USAGE_COUNT
.... I made it 5 to start with but that was a WAG.

There's not any special smarts for seqscans, but the counter should
handle that.

> Oh, and incidentally, can I use the same database files for 8.0.2 and 8.1cvs
> 3/10/05?


Sorry, we forced initdb already several times...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 04:23 AM
Josh Berkus
 
Posts: n/a
Default Re: Question regarding clock-sweep

Tom, Neil,

> > Oh, and incidentally, can I use the same database files for 8.0.2 and
> > 8.1cvs 3/10/05?

>
> Sorry, we forced initdb already several times...


D'oh. Better see if I can get a second machine, then, since build of a 100G
DBT3 database takes 20 hours.

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 04:23 AM
Josh Berkus
 
Posts: n/a
Default Re: Question regarding clock-sweep

Tom,

> There's not any special smarts for seqscans, but the counter should
> handle that.


So all pages start out with the same counter, except VACUUM tuples?

BTW, I found this paper on RDBMS memory management, which probably could have
saved us some weeks of discussion:
http://www.cs.usask.ca/~wew036/resea...prehensive.pdf

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com