From: | KONDO Mitsumasa <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)jp> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Optimize kernel readahead using buffer access strategy |
Date: | 2013-11-15 02:18:46 |
Message-ID: | 52858486.5000205@lab.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
(2013/11/15 2:03), Fujii Masao wrote:
> On Thu, Nov 14, 2013 at 9:09 PM, KONDO Mitsumasa
> <kondo(dot)mitsumasa(at)lab(dot)ntt(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2013-11-15 02:24:31 | Re: Add min and max execute statement time in pg_stat_statement |
Previous Message | Peter Geoghegan | 2013-11-15 02:17:16 | Re: Optimize kernel readahead using buffer access strategy |