Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 





     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Про superpages

  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Про superpages
  • From: Adrenalin <adrenalinup@xxxxxxxxx>
  • Date: Tue, 15 Dec 2009 12:42:04 +0100
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=hNtmKwj1buE/vg/D+q01+ZffK848wYB3nKSkRpL+IRw=; b=tv2Pn31Sc+yzA0Zr7OCOLugLwDuWhsSAFMDHW9lbQeTIBITKjlIHWPb5EaNSkIgEC4 WQX7r+eMCWT+ew+WPja7hF0LhkChwUlN5kHdpYu51fE0WPKhujlk3pmz185/e7uLJHYV rYeRyIItb4fmUBG4hSrSAf79GP4uhtDuGoPtU=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=t6IbIEVqGtkDnspF/b4/r2Q3+Fjp9EtnCan2mFzwUSRzQT9+vlUJ5NExydoksVdd5c yD2hnsDzbdKFNuvWxsPS/tqUM3jdqfa0dGjJGt/K9nk/K2tFLof8jcff4Pn7y+sdG9MF lVJo92W9sA+wewVW6xFXMpE3JqBM5B9p0eBIs=
  • In-reply-to: <4B277158.7090009@xxxxxxxxx>
  • References: <853995238.20091215012736@xxxxxxxxxxxxx> <4B277158.7090009@xxxxxxxxx>

"Intel x86 supports 4MB pages (called Page Size Extension) (2MB pages if using PAE) in addition to its standard 4kB pages, and other architectures may often have similar features. IA-64 supports as many as eight different page sizes, from 4kB up to 256MB. This support for huge pages (known as superpages in FreeBSD) allows for "the best of both worlds", reducing the pressure on the TLB cache (sometimes increasing speed by as much as 15%, depending on the application and the allocation size) for large allocations while still keeping memory usage at a reasonable level for small allocations." (wikipedia)

2009/12/15 Anton Yuzhaninov <citrin@xxxxxxxxx>
Михаил Монашёв wrote:
> Кто-нить использовал superpages c nginx-ом? Пишут, что всё может быть
> весьма плачевно: http://lists.freebsd.org/pipermail/freebsd-hackers/2009-November/030094.html

1. В 8-ке есть ряд улучшений в поддержки Superpages по сравнению с 7-кой.

2. Много зависит от используемого CPU, а конкретно от размера его TLB-кэша. Дело
в том что для обычных страниц и больших разные TLB. И на некоторых CPU для
больших страниц очень маленький TLB.

Так что надежнее всего провести бенчмарки на нагрузке близкой к реальной с
superpages и без них.

 Anton Yuzhaninov

nginx-ru mailing list

nginx-ru mailing list


Copyright © Lexa Software, 1996-2009.