Re: Optimize kernel readahead using buffer access strategy

Поиск
Список
Период
Сортировка
От KONDO Mitsumasa
Тема Re: Optimize kernel readahead using buffer access strategy
Дата
Msg-id 52858486.5000205@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Optimize kernel readahead using buffer access strategy  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: Optimize kernel readahead using buffer access strategy  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
(2013/11/15 2:03), Fujii Masao wrote:
> On Thu, Nov 14, 2013 at 9:09 PM, KONDO Mitsumasa
> <kondo.mitsumasa@lab.ntt.co.jp> wrote:
>> Hi,
>>
>> I create a patch that is improvement of disk-read and OS file caches. It can
>> optimize kernel readahead parameter using buffer access strategy and
>> posix_fadvice() in various disk-read situations.
>
> When I compiled the HEAD code with this patch on MacOS, I got the following
> error and warnings.
>
> gcc -O0 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels
> -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
> -fwrapv -g -I../../../../src/include   -c -o fd.o fd.c
> fd.c: In function 'BufferHintIOAdvise':
> fd.c:1182: error: 'POSIX_FADV_SEQUENTIAL' undeclared (first use in
> this function)
> fd.c:1182: error: (Each undeclared identifier is reported only once
> fd.c:1182: error: for each function it appears in.)
> fd.c:1185: error: 'POSIX_FADV_RANDOM' undeclared (first use in this function)
> make[4]: *** [fd.o] Error 1
> make[3]: *** [file-recursive] Error 2
> make[2]: *** [storage-recursive] Error 2
> make[1]: *** [install-backend-recurse] Error 2
> make: *** [install-src-recurse] Error 2
>
> tablecmds.c:9120: warning: passing argument 5 of 'smgrread' makes
> pointer from integer without a cast
> bufmgr.c:455: warning: passing argument 5 of 'smgrread' from
> incompatible pointer type
Thanks you for your report!
I will fix it. Could you tell me your Mac OS version and gcc version? I have only 
mac book air with Maverick OS(10.9).

Regards,
-- 
Mitsumasa KONDO
NTT Open Source Software Center



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

Предыдущее
От: KONDO Mitsumasa
Дата:
Сообщение: Re: Optimize kernel readahead using buffer access strategy
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Optimize kernel readahead using buffer access strategy