Comments on: Dirty pages, fast shutdown, and write combining http://www.xaprb.com/blog/2010/05/25/dirty-pages-fast-shutdown-and-write-combining/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Shlomi Noach http://www.xaprb.com/blog/2010/05/25/dirty-pages-fast-shutdown-and-write-combining/#comment-18400 Shlomi Noach Sat, 12 Jun 2010 03:44:33 +0000 http://www.xaprb.com/blog/?p=1873#comment-18400 Though it is not published yet, I have a script in openark-kit which prepares for a clean, fast shutdown; majorly by lowering the max dirty pages percent, following it until no improvement is seen for some period, then exits.
It’s a script you would run like this:
oak-prepare-shutdown && /etc/init.t/mysql stop

]]>
By: Xaprb http://www.xaprb.com/blog/2010/05/25/dirty-pages-fast-shutdown-and-write-combining/#comment-18362 Xaprb Wed, 26 May 2010 13:01:15 +0000 http://www.xaprb.com/blog/?p=1873#comment-18362 Dimitri, thanks for commenting. I sort of did mention that when I said “However, this is actually a useful technique for a planned fast shutdown.” I just decided to write this post without mentioning specific parameters. (I thought it would be more confusing if I had too many technical details.)

Mark R, I am not competent to answer about BPXT. How it uses memory is a good question that I need to learn more about.

]]>
By: Mark R http://www.xaprb.com/blog/2010/05/25/dirty-pages-fast-shutdown-and-write-combining/#comment-18361 Mark R Wed, 26 May 2010 12:32:42 +0000 http://www.xaprb.com/blog/?p=1873#comment-18361 Another possibility, is to use an engine which doesn’t work like that.

As far as I understand, PBXT does not do this at all. Instead it is crash-only and it syncs its logs at transaction commit time, so there are never ANY dirty blocks belonging to committed transactions.

This means that you can just kill -9 the process and there’s no more work. Also the shutdown is immediate as it doesn’t need to bother doing any cleanup.

]]>
By: Dimitri http://www.xaprb.com/blog/2010/05/25/dirty-pages-fast-shutdown-and-write-combining/#comment-18360 Dimitri Wed, 26 May 2010 07:28:14 +0000 http://www.xaprb.com/blog/?p=1873#comment-18360 Great post, Baron!
and particularly honest :-)

At the end I was surprised you did not mention the solution posted by Percona to set the dirty page percentage to zero just before a shutdown.. Any reason?..

Thank you!

Rgds,
-Dimitri

]]>