Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxzDk-0000ZG-Qr for pgsql-docs@arkaria.postgresql.org; Sat, 22 Oct 2016 16:32:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bxzDk-0000lq-7f for pgsql-docs@arkaria.postgresql.org; Sat, 22 Oct 2016 16:32:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bxzDi-0000lC-1n for pgsql-docs@postgresql.org; Sat, 22 Oct 2016 16:32:30 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bxzDa-0002ef-1H for pgsql-docs@postgresql.org; Sat, 22 Oct 2016 16:32:28 +0000 Received: by mail-pf0-x242.google.com with SMTP id 128so11693961pfz.1 for ; Sat, 22 Oct 2016 09:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wqQoAxqp29nuZaeEGbcWZoJ3P7Z2LrIInh063WeoEDs=; b=P6m2nrPIo/q2S2Ih1yc05HcTRM7uYamXnQB+eqSF2tLzukMRPfSI9rXN0OdLuEI4hQ QpamafN+WFX8I8q/YKmgPUU0O3vYOoTT+bJDf6z2BB3sdGjzTZS8qO6HPAhLYQ4zAzuN aNd1qopl6/AaAqjysA5oGQK9tzTxeWZhVCchoUzYxZc6Ye71scLI5fJFLLx+mxNvXDng kvO3Ii2+7W4dkfvyULSudMudqyTg0CXfajoGmMYx/mMhl/leEHuTZcPPe9gSSpna8QRq fhf+xyEv7kTj1hRKaThugqJnLURzAcoXQJ6Rv+CQiYkSXskl8LBNP3xtliY0nXtfVHF8 gIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wqQoAxqp29nuZaeEGbcWZoJ3P7Z2LrIInh063WeoEDs=; b=L0vcGI4UmPWsG+PAoGr98VJL674uRAU7eFbVGxtOtxQPP2cbXiHB/VWFqf/rRrA+t6 v7yeEmmKviWGjwcRVTSClfq4GxYgfkaCfNhfjTMsUBqZxYTogMS0G1JCC2J4jJ42Dolz Jw9j1twMk5oAqltespi0XMVV9sHmprCFkDtXPPrJ6TW+Z4e1IbYqSGDvv8LXjtN7yDZX MPmDtlE1NyNAPuvwEgCoq1D4mY1ugeAU3oO6XLYuNpKb8F5GZhZ5Il1uOZJSceCaZCah Dy2YC2DEQLlNn0gYIY7QwDx3CJplN2B+FNXidAx2Rhu8DkmyPDh6mn9pKOnAoO7bOtdF Y38A== X-Gm-Message-State: ABUngvfx6hEgYpHp1qABzItckTTGlrzpsYxbK8cpwWtgKLudhG+ue24yjX8SdIqgS3KKFQ== X-Received: by 10.99.116.76 with SMTP id e12mr10567306pgn.20.1477153940473; Sat, 22 Oct 2016 09:32:20 -0700 (PDT) Received: from ?IPv6:2602:304:ce47:dd40:f8cb:fd36:b0a8:c09b? ([2602:304:ce47:dd40:f8cb:fd36:b0a8:c09b]) by smtp.gmail.com with ESMTPSA id p3sm13460846pfg.48.2016.10.22.09.32.19 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 09:32:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: 18.4.4. Linux huge pages From: Andrew Kerber X-Mailer: iPad Mail (14A456) In-Reply-To: <20161021164351.1411.39835@wrigleys.postgresql.org> Date: Sat, 22 Oct 2016 11:32:18 -0500 Cc: pgsql-docs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20161021164351.1411.39835@wrigleys.postgresql.org> To: piotrwlodarczyk89@gmail.com X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org In most versions of Linux, the default hugepage size is 2m. Other Unix vers= ions may have different hugepage sizes, e.g. AIX, but Linux defaults to 2m= =20 Sent from my iPad > On Oct 21, 2016, at 11:43 AM, piotrwlodarczyk89@gmail.com wrote: >=20 > The following documentation comment has been logged on the website: >=20 > Page: https://www.postgresql.org/docs/9.6/static/kernel-resources.html > Description: >=20 > Hi, >=20 > it's a mistake in 18.4.4. Linux huge pages (also in 9.4 and 9.5 > documentation). Example how to count number f huge pages says: >=20 > 6490428 / 2048 (PAGE_SIZE is 2MB in this case) are roughly 3169.154 huge > pages, so you will need at least 3170 huge pages: >=20 > It's very rare that PAGE_SIZE is 2MB. It's more common situation = that the > value is 4096KB. But it's not a problem. >=20 > The VmPeak should by divded not by PAGE_SIZE but by Hugepagesize listed by > cat /proc/meminfo | grep Hugepagesize.=20 >=20 >=20 >=20 > --=20 > Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-docs --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs