Re: Page Checksums + Double Writes

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Page Checksums + Double Writes
Дата
Msg-id 4EF48EFA02000025000440CC@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Page Checksums + Double Writes  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Page Checksums + Double Writes  (Jim Nasby <jim@nasby.net>)
Re: Page Checksums + Double Writes  (Benedikt Grundmann <bgrundmann@janestreet.com>)
Список pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> wrote:
> Could we get some major OLTP users to post their CLOG for
> analysis?  I wouldn't think there would be much
> security/propietary issues with CLOG data.
FWIW, I got the raw numbers to do my quick check using this Ruby
script (put together for me by Peter Brant).  If it is of any use to
anyone else, feel free to use it and/or post any enhanced versions
of it.
#!/usr/bin/env ruby

Dir.glob("*") do |file_name| contents = File.read(file_name) total =
contents.enum_for(:each_byte).enum_for(:each_slice,
256).inject(0) do |count, chunk|     if chunk.all? { |b| b == 0x55 }       count + 1     else       count     end   end
printf"%s %d\n", file_name, total
 
end
-Kevin


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Page Checksums + Double Writes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Page Checksums + Double Writes