Re: Using pgiosim realistically

Поиск
Список
Период
Сортировка
От Jeff
Тема Re: Using pgiosim realistically
Дата
Msg-id CF55DDA4-5AC1-47AE-84E8-08868D1BF494@torgo.978.org
обсуждение исходный текст
Ответ на Re: Using pgiosim realistically  (John Rouillard <rouilj@renesys.com>)
Ответы Re: Using pgiosim realistically  (John Rouillard <rouilj@renesys.com>)
Список pgsql-performance
On May 16, 2011, at 1:06 PM, John Rouillard wrote:

>> that is a #define in pgiosim.c
>
> So which is a better test, modifying the #define to allow specifying
> 200-300 1GB files, or using 64 files but increasing the size of my
> files to 2-3GB for a total bytes in the file two or three times the
> memory in my server (96GB)?
>

I tend to make 10G chunks with dd and run pgiosim over that.
dd if=/dev/zero of=bigfile bs=1M count=10240

>> the -w param to pgiosim has it rewrite blocks out as it runs. (it is
>> a percentage).
>
> Yup, I was running with that and getting low enough numbers, that I
> switched to pure read tests. It looks like I just need multiple
> threads so I can have multiple reads/writes in flight at the same
> time.
>

Yep - you need multiple threads to get max throughput of your io.

--
Jeff Trout <jeff@jefftrout.com>
http://www.stuarthamm.net/
http://www.dellsmartexitin.com/




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: reducing random_page_cost from 4 to 2 to force index scan
Следующее
От: Nathan Boley
Дата:
Сообщение: Re: reducing random_page_cost from 4 to 2 to force index scan