Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 715CCC328 for ; Sun, 29 Jul 2012 15:09:39 +0000 (UTC) Received: (qmail 59617 invoked by uid 500); 29 Jul 2012 15:09:38 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 59110 invoked by uid 500); 29 Jul 2012 15:09:32 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 59062 invoked by uid 99); 29 Jul 2012 15:09:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jul 2012 15:09:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of binlijin@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Jul 2012 15:09:23 +0000 Received: by wibhq4 with SMTP id hq4so921399wib.2 for ; Sun, 29 Jul 2012 08:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/P1ZozAlhJMqEAHZsVG0NG8vgVpZL0aQJNaXK/8RRBU=; b=UQIFEXXDXBuuxrTbuHJpxxCArYP5kB5TcLdKPEOg75kyfosL5lUXCXIdic+IWigUs7 /OaJe3ZjUTPpxpiXmPdqkoICyweKTpoQh0Quz0yTP7pwL9TXwmt1vEauP02Q0/ajQZh2 li/z4F42hkIZPP5JTVrX3P3DzBtr5X6QFzWCUW4iXV6XidMVEV5DwS5G0ltG68u5QwEd nRgfEmuvxfmA1in51wsV3zqFwvmyE+vSA64YAIqSfdL/VMcRy9f2i7aeYnfIrgzlt6K0 0QlKdfPQ4MbEpAgbW5sU/MahXTfmGGUla3wUxe0bpaoZYfSgCurMCk5kbh04CrffZBwl 2wuw== MIME-Version: 1.0 Received: by 10.180.102.136 with SMTP id fo8mr19763697wib.19.1343574541973; Sun, 29 Jul 2012 08:09:01 -0700 (PDT) Received: by 10.194.28.101 with HTTP; Sun, 29 Jul 2012 08:09:01 -0700 (PDT) Date: Sun, 29 Jul 2012 23:09:01 +0800 Message-ID: Subject: =?GB2312?Q?DFSClient_Packet=A1=AEis_not_fully_used=A3=ACintroduced_Pa?= =?GB2312?Q?cket_Pool_and_reuse_Packet=2E?= From: =?GB2312?B?sfbA8r3w?= To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d044481d74db8e804c5f95340 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044481d74db8e804c5f95340 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable hi, all devs Current when FSDataOutputStream's write and sync method are called a new Packet may be created and put into dataQueue, the daemon DataStreamer will get packet from the dataQueue and write to datanode. I find every Packet will new a byte array with size is 65557(more than 64K). but the pktLen is just a few hundreds or a few ten hunderds . So new a byte array with big size but just use a very little of it. So the utilization rate is very low. If 1024 Packet are created one second=A3=AC64M+ garbage is produced one second. I rewrite the logic of new Packet with a PacketPool=A3=ACI find the hregionserver's gc frequency and gc total time reduce a lot=A3=ACbut a sing= le gc time increase a lot=A3=ACso i reduce the jvm New gen size=A3=ACbut the same= result get=A3=ACThe average RT increase and TPS reduced. I cann't see why? And wis= h some one can told me why? may be the reason is gc. Although average RT increase=A3=ACbut more request has little rt and also= more request has a big rt=A3=ACso the average RT increase. --=20 *Best Regards,* lijin bin --f46d044481d74db8e804c5f95340--