Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA9B6179F3 for ; Sat, 27 Jun 2015 17:42:02 +0000 (UTC) Received: (qmail 11462 invoked by uid 500); 27 Jun 2015 17:42:02 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 11395 invoked by uid 500); 27 Jun 2015 17:42:02 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 11386 invoked by uid 99); 27 Jun 2015 17:42:02 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jun 2015 17:42:02 +0000 Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6580C1A01E4 for ; Sat, 27 Jun 2015 17:42:02 +0000 (UTC) Received: by igcur8 with SMTP id ur8so9825279igc.0 for ; Sat, 27 Jun 2015 10:42:01 -0700 (PDT) X-Received: by 10.50.79.129 with SMTP id j1mr5080515igx.12.1435426921755; Sat, 27 Jun 2015 10:42:01 -0700 (PDT) MIME-Version: 1.0 References: <1C83FB7A-3C86-4FF7-A8A2-08851F5CCCDC@apache.org> In-Reply-To: <1C83FB7A-3C86-4FF7-A8A2-08851F5CCCDC@apache.org> From: Phil Sorber Date: Sat, 27 Jun 2015 17:41:52 +0000 Message-ID: Subject: Re: Quick Question About Linux HugePages To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=089e011609fcc5be6c0519835f93 --089e011609fcc5be6c0519835f93 Content-Type: text/plain; charset=UTF-8 On Sat, Jun 27, 2015 at 9:22 AM Leif Hedstrom wrote: > > > > > > On Jun 27, 2015, at 6:43 AM, Adam W. Dace > wrote: > > > > First, let me say a big thank you to those who have worked on the > reclaimable freelist and HugePages code. > > Cool! Note that reclaimable freelist is now gone and we will soon > introduce a buddy allocation scheme. > > > > > I'm not really sure why, but simply using HugePages has resulted in a > 100% speed boost on my ATS instance and it is now happily saturating my > 50Mbps home connection. Whoo hoo! :) > > > Woah that's incredible. Good job Phil Sorber :) > > > > My quick question is this: What happens if ATS goes to allocate a > HugePage and there are simply none left to be had? Will it crash? > > I believe it will just fall back to normal allocations. > That is correct. It will attempt to alloc huge pages every time and fail back to regular malloc if it cannot. > > -- Leif > > > > > I haven't had this happen, yet, but I'm trying to balance how much > memory I'm willing to give to ATS with other memory left free so I can at > least compile ATS on the same system. > > > > Thanks In Advance, > > > > Adam > > > --089e011609fcc5be6c0519835f93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sat, Jun 27= , 2015 at 9:22 AM Leif Hedstrom <zwo= op@apache.org> wrote:




> On Jun 27, 2015, at 6:43 AM, Adam W. Dace <colonelforbin74@gmail.com> wr= ote:
>
> First, let me say a big thank you to those who have worked on the recl= aimable freelist and HugePages code.

Cool! Note that reclaimable freelist is now gone and we will soon introduce= a buddy allocation scheme.

>
> I'm not really sure why, but simply using HugePages has resulted i= n a 100% speed boost on my ATS instance and it is now happily saturating my= 50Mbps home connection.=C2=A0 Whoo hoo!=C2=A0 :)


Woah that's incredible. Good job Phil Sorber :)
>
> My quick question is this:=C2=A0 What happens if ATS goes to allocate = a HugePage and there are simply none left to be had?=C2=A0 Will it crash?
I believe it will just fall back to normal allocations.

That is correct. It will attempt to alloc huge pages every= time and fail back to regular malloc if it cannot.
=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
-- Leif

>
> I haven't had this happen, yet, but I'm trying to balance how = much memory I'm willing to give to ATS with other memory left free so I= can at least compile ATS on the same system.
>
> Thanks In Advance,
>
> Adam
>
--089e011609fcc5be6c0519835f93--