Re: Patch für MAP_HUGETLB for mmap() shared memory

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: cjk(at)wwwtech(dot)de
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch für MAP_HUGETLB for mmap() shared memory
Date: 2012-12-21 20:37:42
Message-ID: 20121221203742.GA26107@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2012-10-30 21:16:07 +0100, Christian Kruse wrote:
> +static long
> +InternalGetHugepageSize()
> +{
> + DIR *dir = opendir(HUGE_PAGE_INFO_DIR);
> + long smallest_size = -1, size;
> + char *ptr;
> ...
> + while((ent = readdir(dir)) != NULL)
> + {

This should be (Allocate|Read)Dir btw.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-12-21 21:30:46 Re: Event Triggers: adding information
Previous Message Noah Misch 2012-12-21 20:27:37 Re: pgcrypto seeding problem when ssl=on