From owner-freebsd-virtualization@freebsd.org Thu Mar 24 07:18:26 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33C47ADBA8A for ; Thu, 24 Mar 2016 07:18:26 +0000 (UTC) (envelope-from huanghwh@163.com) Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by mx1.freebsd.org (Postfix) with ESMTP id 722D01489; Thu, 24 Mar 2016 07:18:23 +0000 (UTC) (envelope-from huanghwh@163.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Mime-Version:Subject:From:Date:Message-Id; bh=GgQZa EHhN7L/CCiDEdpo5n0UBOBNadsBNL89LGcAGwc=; b=gsegW3LsPGib8ETAAolns YPKyz8xCw5iyS3/vmLEWZOzLZ7t1SQxG5jtrdPngTaccxw+XGN3h2k01kGpAXNfa KePZYGMAHsqRlVuIbn60T7zhS2/sYaxLT6TfI57OfXdECWpPCCBZ9f1Xo9PtROOX H3HuKoQva6kbewaatJ17yU= Received: from [10.44.8.203] (unknown [218.19.164.153]) by smtp9 (Coremail) with SMTP id DcCowABXsaWylPNWWl0VAA--.304S2; Thu, 24 Mar 2016 15:18:13 +0800 (CST) Content-Type: text/plain; charset=gb2312 Mime-Version: 1.0 (1.0) Subject: Re: Poor disk performance of FreeBSD under AWS From: =?GB2312?B?u8bOxLvU?= X-Mailer: iPhone Mail (13A452) In-Reply-To: Date: Thu, 24 Mar 2016 15:18:09 +0800 Cc: freebsd-virtualization@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5C4F9BBA-5532-48A7-AEB1-64B83CFC2AA3@163.com> References: <4a285458.9323.15388672651.Coremail.huanghwh@163.com> <91dc4bd.a112.15388868b7d.Coremail.huanghwh@163.com> <56EBDC2A.1020304@freebsd.org> To: =?GB2312?Q?Roger_Pau_Monn=A8=A6?= X-CM-TRANSID: DcCowABXsaWylPNWWl0VAA--.304S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Kw4kury8Xr4xurWDZr48Xrb_yoW8Gr13pF yjgF4qkFWkGFyIy3sakr4S9Fy0vr1vqFn8Xr15XryDJan0vrn0gryIyrn5Ka4rZr1xGr1j vrWUGa4agr15taDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UiXocUUUUU= X-Originating-IP: [218.19.164.153] X-CM-SenderInfo: xkxd0wxkzkqiywtou0bp/1tbiFRU2K1WBUtOT-QAAsm X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2016 07:18:26 -0000 > =D4=DA 2016=C4=EA3=D4=C223=C8=D5=A3=AC21:20=A3=ACRoger Pau Monn=A8=A6 =D0=B4=B5=C0=A3=BA >=20 >> On Fri, 18 Mar 2016, Julian Elischer wrote: >>> On 18/03/2016 3:00 PM, huanghwh wrote: >>> BTW, with 1G ram configuration, vi can exit very quickly. >>> At 2016-03-18 14:26:14, "huanghwh" wrote: >>>> I have a EC2 server in AWS, 4CPU+16G ram, FreeBSD 10.2R. >>>>=20 >>>> Use two command dd and vi: >>>> dd if=3D/dev/zero of=3D/.swap bs=3D1M count=3D8192 & >>>>=20 >>>> 8589934592 bytes transferred in 117.074462 secs (73371549 bytes/sec) >>>>=20 >>>> when dd run in background, input vi command to edit a small txt file >>>> "d.txt" at same time, >>>>=20 >>>> and then write and quit immediately: >>>>=20 >>>>=20 >>>> /usr/bin/time vi d.txt >>>>=20 >>>>=20 >>>> 49.82 real 0.00 user 0.00 sys >>>>=20 >>>> in top command show: >>>> 810 root 1 23 0 12344K 2524K wswbuf 0 0:04 5.76% dd >>>> 821 root 1 20 0 23448K 4092K wdrain 0 0:00 0.00% vi >>>>=20 >>>> vi need almost 50 seconds to quit. >> I think some people are already looking at this.. it's not limited to AWS= . >=20 > Is there a PR or Review about this? I don't have a 16GB system at hand,=20= > but it looks quite weird that it works "better" with 1GB rather than with=20= > 16GB. If you like, I can give you a server to try, the server is at ALiYun, not A= WS, but same problem. >=20 > Are you using ZFS or UFS as your filesystem? I am use UFS and ZFS >=20 > Roger.