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

Andres Freund <andres@2ndquadrant.com>

From: Andres Freund <andres@2ndquadrant.com>
To: cjk@wwwtech.de
Cc: pgsql-hackers@postgresql.org
Date: 2012-12-21T20:37:42Z
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


Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Give a better error message when trying to change