all groups > sql server replication > september 2006 >
You're in the

sql server replication

group:

replication process locking up the PFS page


replication process locking up the PFS page MorDeRor
9/28/2006 2:25:02 PM
sql server replication: Can anyone tell my why does replication sometimes hold a lock on the PFS page
of the subscription DB? The blocked process shows that it is waiting on
replication SPID and waitresource is "KEY: 11:1:1 (540080683243)" (11 is the
DB id of the subscription DB)
Re: replication process locking up the PFS page Hilary Cotter
9/29/2006 8:03:41 PM
What is the pfs page?

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

Re: replication process locking up the PFS page Andrew Pike
9/30/2006 1:59:01 PM
It's the Page Free Space page, which SQL Server uses to track the available
space on each data and index page in the database. It's always page ID 1 in
a data file.

Referring back to the initial question, the only scenario where I've heard
about contention on the PFS page refers to heavy creation of objects in
tempdb. Large deallocations could also be a factor.

Regards

Andrew Pike
--
SQL Server DBA
UBS IB



[quoted text, click to view]
Re: replication process locking up the PFS page Mor DeRor
9/30/2006 6:37:01 PM
Thanks Andrew, I now what you're talking about. I monitor our servers fairly
closely and see very little contention (if any) for the PFS page. The
blocking that I mentioned does not occur in the tempDB rather in the
subscription DB, and it does not happen consistently. There are a lot of
costom SPs that get triggered by replication which move data around, may be
I'll set up something to check for page splits and new extent utilization,
but even even so, it does not make sense, because the blocked query is just a
bunch of select statements, so why should it care that there is a lock on the
PFS page?

[quoted text, click to view]
Re: replication process locking up the PFS page Andrew Pike
10/1/2006 2:59:02 AM
Maybe you could monitor the Latch Wait Time (ms) counter? I think the PFS,
GAM and SGAM pages are synchronised via latching (UP latch?). If there's
memory pressure on the server and the Latch Wait Time is high (>500 ms) that
may be a source of the problem.

Kind Regards

Andrew Pike
--
SQL Server DBA
UBS IB



[quoted text, click to view]
AddThis Social Bookmark Button