From owner-freebsd-virtualization@freebsd.org Wed Mar 23 13:20:18 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 4BE43ADB4DC for ; Wed, 23 Mar 2016 13:20:18 +0000 (UTC) (envelope-from royger@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D827A16AE; Wed, 23 Mar 2016 13:20:17 +0000 (UTC) (envelope-from royger@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id l68so23864654wml.1; Wed, 23 Mar 2016 06:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=vCtyWj4HV7gGVIsZ1RHEqa6V9y7mzAnnwb0uIARGGw8=; b=T2nMrSZtyA/hdSzBqT7yrlrD7aQkyHNiJdvS9lsSy2PY4/OUp3OZ0nptSgrifIdfx0 2HUkkXpVQL68PmRziwoOGr1TiIMn8DzpDOZfbJJ3utwe3u1j9sNfelehFSCe1FqKV2Hx 9//cCHlFFKYRI+/dZTR1rWchhX9ffuBavLwymh4St49SQ0ijCKyI8DU6MR/2j7qHrXbL RLx1XYgytKX8LTEb8nrPqx1mu7NBTPaKs3svylUbhRZNnjy8lLk8xNCqeOEd6JfSkDW9 k7/owqaAjYBhl5YxXGTqZUjLgcWMDSixwiiZ9qRS9ftL/qdeohrDiRZWSj7gorW6bgIv UoLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:mime-version; bh=vCtyWj4HV7gGVIsZ1RHEqa6V9y7mzAnnwb0uIARGGw8=; b=TDr1BEpt6UgPqn63CZPWfeAAczUcCLJbCGaA3jqiFD0ditbVJmRWeLKwkX5GsG4jC5 e14ZlNN+EfvaTP2jkggyOltaf7nDszLFdXV+RxZtLYUymYySeuoadCdm4uF43Dfc3Ml/ zl3VrMo/RiFT5dq+wwl3l0EFpBsyBdn9grkogK8UIMZn79VrDnSrc9iZm8NA4rprSJDV zBRZoLKoEGPRemQVHOjhuzY3iIcmXWG7Um984rPBqd+Sz/dy+Mtp2ifYJxxGmkUSNCh/ 1iUrZ6pLWGKCIeJKcUo29M8Kcz7WWRZBgSjCV0qOeEkDDNYyMVrE+GVcW9iRb0hh6iqo dgGQ== X-Gm-Message-State: AD7BkJJgngwm/pz3m5FOuFREStLH7LMyA1+pBL2S2+SEV7X5o8e0ReTV2fEiOY0UnFWI9w== X-Received: by 10.28.137.139 with SMTP id l133mr4246996wmd.1.1458739216494; Wed, 23 Mar 2016 06:20:16 -0700 (PDT) Received: from mac (83.red-88-8-243.dynamicip.rima-tde.net. [88.8.243.83]) by smtp.gmail.com with ESMTPSA id ks5sm2596208wjb.13.2016.03.23.06.20.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Mar 2016 06:20:15 -0700 (PDT) Sender: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Date: Wed, 23 Mar 2016 14:20:13 +0100 (CET) From: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= X-X-Sender: royger@mac To: Julian Elischer cc: huanghwh , freebsd-virtualization@freebsd.org Subject: Re: Poor disk performance of FreeBSD under AWS In-Reply-To: <56EBDC2A.1020304@freebsd.org> Message-ID: References: <4a285458.9323.15388672651.Coremail.huanghwh@163.com> <91dc4bd.a112.15388868b7d.Coremail.huanghwh@163.com> <56EBDC2A.1020304@freebsd.org> User-Agent: Alpine 2.20 (OSX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Wed, 23 Mar 2016 13:20:18 -0000 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. > > > > > > Use two command dd and vi: > > > dd if=/dev/zero of=/.swap bs=1M count=8192 & > > > > > > 8589934592 bytes transferred in 117.074462 secs (73371549 bytes/sec) > > > > > > when dd run in background, input vi command to edit a small txt file > > > "d.txt" at same time, > > > > > > and then write and quit immediately: > > > > > > > > > /usr/bin/time vi d.txt > > > > > > > > > 49.82 real 0.00 user 0.00 sys > > > > > > 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 > > > > > > vi need almost 50 seconds to quit. > I think some people are already looking at this.. it's not limited to AWS. Is there a PR or Review about this? I don't have a 16GB system at hand, but it looks quite weird that it works "better" with 1GB rather than with 16GB. Are you using ZFS or UFS as your filesystem? Roger.