Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: Background ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 12 Topic 3995 of 4424
Post > Topic >>

Re: Background writer underemphasized ...

by james@[EMAIL PROTECTED] (James Mansion) Apr 20, 2008 at 03:41 PM

Greg Smith wrote:
> If you write a giant block of writes, those tend to be sorted by the 
> OS and possibly the controller to reduce total seeks.  That's a pretty 
> efficient write and it can clear relatively fast.
>
> But if you're been trickling writes in an unstructured form and in low 
> volume, there can be a stack of them that aren't sorted well blocking 
> the queue from clearing.  With a series of small writes, it's not that 
> difficult to end up in a situation where a controller cache is filled 
> with writes containing a larger seek component than you'd have gotten 
> had you written in larger blocks that took advantage of more OS-level 
> elevator sorting.  There's actually a pending patch to try and improve 
> this situation in regards to checkpoint writes in the queue.
>
> Seeks are so slow compared to more sequential writes that you really 
> can end up in the counterintuitive situation that you finish faster by 
> avoiding early writes, even in cases when the disk is the bottleneck.
I'm sorry but I am somewhat unconvinced by this.

I accept that by early submission the disk subsystem may end up doing 
more seeks and more writes in total, but when the dam breaks at the 
start of the checkpoint, how can it help to have _more_ data write 
volume and _more_ implied seeks offered up at that point?

Are you suggesting that the disk subsystem has already decided on its 
strategy for a set of seeks and writes and will not insert new 
instructions into an existing elevator plan until it is completed and it 
looks at the new requests? This sounds a bit tenuous at best - almost to 
the point of being a bug. Do you believe this is universal?

James


-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 12 Posts in Topic:
Background writer underemphasized ...
mjy@[EMAIL PROTECTED] (M  2008-04-16 17:22:50 
Re: Background writer underemphasized ...
Chris Browne <cbbrowne  2008-04-16 13:47:59 
Re: Background writer underemphasized ...
wmoran@[EMAIL PROTECTED]   2008-04-16 14:43:35 
Re: Background writer underemphasized ...
gsmith@[EMAIL PROTECTED]   2008-04-16 15:55:51 
Re: Background writer underemphasized ...
gsmith@[EMAIL PROTECTED]   2008-04-16 15:45:22 
Re: Background writer underemphasized ...
mjy@[EMAIL PROTECTED] (M  2008-04-17 20:46:05 
Re: Background writer underemphasized ...
gsmith@[EMAIL PROTECTED]   2008-04-19 05:22:46 
Re: Background writer underemphasized ...
james@[EMAIL PROTECTED]   2008-04-19 16:06:05 
Re: Background writer underemphasized ...
gsmith@[EMAIL PROTECTED]   2008-04-19 15:29:38 
Re: Background writer underemphasized ...
james@[EMAIL PROTECTED]   2008-04-20 15:41:13 
Re: Background writer underemphasized ...
gsmith@[EMAIL PROTECTED]   2008-04-23 01:11:01 
Re: Background writer underemphasized ...
wmoran@[EMAIL PROTECTED]   2008-04-16 16:07:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 8:48:32 CST 2008.