test_fsync file overrun

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема test_fsync file overrun
Дата
Msg-id f67928030909132009s4f15dae6gbd92670f2ac23d3@mail.gmail.com
обсуждение исходный текст
Ответы Re: test_fsync file overrun  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
test_fsync in tools/fsync pre-creates a 16MB file.  If it is given a number of iterations greater than 1024 (like one might use if trying to see what happens when NVRAM gets filled, or on a journaling file system), than one of the writes being timed will have to extend the size of the pre-created test file, which can greatly skew the results.

This patch uses lseek to periodically restart at the beginning of the file, rather than writing past the end of it.

Cheers,

Jeff
Вложения

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

Предыдущее
От: Josh Williams
Дата:
Сообщение: Re: Elementary dependency look-up
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: XLogInsert