Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71352200CAC for ; Mon, 5 Jun 2017 06:24:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 70515160BE3; Mon, 5 Jun 2017 04:24:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8F3FF160BE0 for ; Mon, 5 Jun 2017 06:24:49 +0200 (CEST) Received: (qmail 72822 invoked by uid 500); 5 Jun 2017 04:24:48 -0000 Mailing-List: contact dev-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@trafficserver.apache.org Delivered-To: mailing list dev@trafficserver.apache.org Received: (qmail 72809 invoked by uid 99); 5 Jun 2017 04:24:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jun 2017 04:24:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 28347180314 for ; Mon, 5 Jun 2017 04:24:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_GOOGLE_STRING=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=vng.com.vn Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sInSr6MIIi9S for ; Mon, 5 Jun 2017 04:24:44 +0000 (UTC) Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DBA965F297 for ; Mon, 5 Jun 2017 04:24:43 +0000 (UTC) Received: by mail-ua0-f178.google.com with SMTP id y4so69591902uay.2 for ; Sun, 04 Jun 2017 21:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vng.com.vn; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=G5q6CzTKWGQPVzdL6IeUUhGb8rcOgdM0kAwxATyhLmQ=; b=CftewrKo5U6wcge7a+dkEDTWtW+PA9cgRsazX2LWmr4LolojHFffrZc/vplUe1bA6Y 3m6xlBQ1m703DBw+YEL0Xf2k683q70wTxc1STnIx+N7+jSVjGdt2EpFwJq9n1nUsnGli prUjvH8EKBcukP/+s1yb61EZzPW+WT7ajIaTE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=G5q6CzTKWGQPVzdL6IeUUhGb8rcOgdM0kAwxATyhLmQ=; b=XhJqmXzzTkJyXmUzTUkk27b7kwpMBxefwAnV5D78QHL0xqGwle01RT294nTYg4j7E3 NvPwjuygiNHmjBERpC7Z8WS0IYpHb/8P+YXMojfmRF2hR51HZ6wUc0HCDK4mdsCw8Imb ZII98wkjttpUioHFrxCJZ+gYNFyosjJfdOvDMsujrjX4SroHWeVQeC6DNwn5EsWlGuW4 +Dg2PE7379PhO/M/WgfskhTOFeVsnAr/qpXEcExvory25zMAGnUg7QZQI7EdRYjkuYYC dABnVjNwRIC0R5V3hzQrjXlsHl6VRc7jcv8fsqC5rkoLtwBa65Q60VajuV4Fk73j6VwY CVgA== X-Gm-Message-State: AODbwcARYULRmrZamknrJ2wrjsjD/qom02hzdUuqrFCQNvbU3mvjaHz7 D3IifYAJkPB6QZOLMyhtPrAokL2UCXzFD/4jKxEuW8LCVjclGEX0skUY9zDwsnLRLv3TC3Az+HY H0P2QY6etGMVujnzCFv1I3pt2Y3k= X-Received: by 10.159.49.6 with SMTP id m6mr9915576uab.46.1496636682312; Sun, 04 Jun 2017 21:24:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.83.83 with HTTP; Sun, 4 Jun 2017 21:24:41 -0700 (PDT) In-Reply-To: <1712764968.390066.1496410199175@mail.yahoo.com> References: <1976302073.4177723.1496235304074@mail.yahoo.com> <1377142285.293088.1496283816785@mail.yahoo.com> <1203885926.220357.1496321191545@mail.yahoo.com> <1712764968.390066.1496410199175@mail.yahoo.com> From: "Anh Le Duc (2)" Date: Mon, 5 Jun 2017 11:24:41 +0700 Message-ID: Subject: Re: Question about ATS garbage collector To: dev@trafficserver.apache.org Content-Type: multipart/alternative; boundary="f403045e4188ceb59205512ee1e0" archived-at: Mon, 05 Jun 2017 04:24:50 -0000 --f403045e4188ceb59205512ee1e0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Alan: I saw your answer for my issue #2023 . To handle range requests, we must efficiently know which fragments to read. By using fragment tables, we can achieve that purpose. For example: if we serve a range request of bytes 1000-2000, with fragment tables, we know the Nth fragment (from the current one) containing requested data. By continuously applying hash functions on the request's key N times, we may effectively locate the fragment. My question is: if we split a specific object into multiple fragments having the same size, are fragment tables useless? Because we can quickly have: 1000/fragmentSize <=3D N =3D 2000 / fragmentSize On Fri, Jun 2, 2017 at 8:29 PM, Alan Carroll < solidwallofcode@yahoo-inc.com.invalid> wrote: > Correct. For a specific fragment, the size is adjusted to be approximatel= y > the size of the content in the fragment. When we talk of "fragment size" = we > generally mean the maximum allowed size. > > > > On Thursday, June 1, 2017, 8:39:00 PM CDT, Anh Le Duc (2) < > anhld2@vng.com.vn> wrote: > > @Alan: Fragment sizes are not fixed, right? By the formula in section > Stripe > Directory > architecture/architecture.en.html#stripe-directory>, > we have adaptive sizes > > ( *size* + 1 ) * 2 ^ ( CACHE_BLOCK_SHIFT + 3 * *big* ) > > > On Fri, Jun 2, 2017 at 2:05 AM, John Plevyak wrote: > > > While large objects are not stored contiguously, the chunk size is > > configurable (as Alan pointed out). > > Increasing the chunk size increases memory usage and decreases the numb= er > > of seeks required to > > read an object. It does not decease the number of seeks required to > write > > the object because > > we use a write buffer which is separately sized for write aggregation. > > > > The default chunk size is set such that for spinning media (HDDs) the > > amount of time spent reading > > the object is dominated by transfer time, meaning that total disk time > will > > decrease by only > > a small amount if the chunk size is increased. Indeed for SSDs, the > chunk > > size can be > > decreased to free up more memory for the RAM cache and to decrease the > > number of > > different block sizes. > > > > On Thu, Jun 1, 2017 at 5:46 AM, Alan Carroll < > > solidwallofcode@yahoo-inc.com.invalid> wrote: > > > > > You might try playing with the expected fragment size. That's tunable > and > > > you can get a partial effect of more contiguous fragments by making i= t > > > larger, although I think the absolute maximum is 16M. This doesn't co= st > > > additional disk space as it is a maximum fragment size, not a forced > one. > > > > > > > > > > > > -- > > *Anh Le (Mr.)* > > *Senior Software Engineer* > > *Zalo Technical Dept., Zalo Group, **VNG Corporation* > > 5th floor, D29 Building, Pham Van Bach Street, Hanoi, Vietnam > > *M:* (+84) 987 816 461 > > *E:* anhld2@vng.com.vn > > *W: *www.vng.com.vn > sa=3DD&sntz=3D1&usg=3DAFQjCNHYo7I_1mPESzfIvCNjLtAJOq8xsg> > > *=E2=80=9CMake the Internet change Vietnamese lives=E2=80=9D* --=20 *Anh Le (Mr.)* *Senior Software Engineer* *Zalo Technical Dept., Zalo Group, **VNG Corporation* 5th floor, D29 Building, Pham Van Bach Street, Hanoi, Vietnam *M:* (+84) 987 816 461 *E:* anhld2@vng.com.vn *W: *www.vng.com.vn *=E2=80=9CMake the Internet change Vietnamese lives=E2=80=9D* --f403045e4188ceb59205512ee1e0--