From owner-freebsd-questions@freebsd.org Mon Feb 10 07:19:23 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 78D22230954 for ; Mon, 10 Feb 2020 07:19:23 +0000 (UTC) (envelope-from eriklauritsen@yandex.com) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48GHMs6ljSz45Rg for ; Mon, 10 Feb 2020 07:19:21 +0000 (UTC) (envelope-from eriklauritsen@yandex.com) Received: from forward100q.mail.yandex.net (forward100q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb97]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 9D0EB4D410CE for ; Mon, 10 Feb 2020 10:19:18 +0300 (MSK) Received: from mxback5q.mail.yandex.net (mxback5q.mail.yandex.net [IPv6:2a02:6b8:c0e:1ba:0:640:b716:ad89]) by forward100q.mail.yandex.net (Yandex) with ESMTP id 99DCC7080015 for ; Mon, 10 Feb 2020 10:19:18 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback5q.mail.yandex.net (mxback/Yandex) with ESMTP id vx34pX2BYI-JIMaJG19; Mon, 10 Feb 2020 10:19:18 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1581319158; bh=+rlrY6wN7goxgj0thigdlkCpRWpG7qTcTs1eiSWsTR0=; h=Message-Id:Date:Subject:To:From; b=QilO8MF7BomjEdb4NYDRFmAU/m6q/e2ylHtkh21tL6vY4A81TRFahDAJdWeS6yK7h maZHHwwO7d5MYxympoVOHaG8I7S+lJeIwpNcAcV6DbepEjXHfzZgSSNdNxhuHO002l Qnd1glmOHM1SRGcpS2RRUhxBeQQCwgYBPXhFl6os= Received: by vla1-b55dfea406f0.qloud-c.yandex.net with HTTP; Mon, 10 Feb 2020 10:19:18 +0300 From: Erik Lauritsen To: freebsd-questions@freebsd.org Subject: Bad ZFS performance on the desktop MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 10 Feb 2020 07:19:18 +0000 Message-Id: <17394471581319158@vla1-b55dfea406f0.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Rspamd-Queue-Id: 48GHMs6ljSz45Rg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=QilO8MF7; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of eriklauritsen@yandex.com designates 77.88.28.108 as permitted sender) smtp.mailfrom=eriklauritsen@yandex.com X-Spamd-Result: default: False [-3.10 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:77.88.0.0/18]; FREEMAIL_FROM(0.00)[yandex.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[yandex.com:+]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; RCVD_IN_DNSWL_LOW(-0.10)[108.28.88.77.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:77.88.0.0/18, country:RU]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(0.00)[ip: (-9.78), ipnet: 77.88.0.0/18(-4.83), asn: 13238(-3.82), country: RU(0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2020 07:19:23 -0000 I normally only use ZFS for a storage server, but decided to give it a try on the desktop. I have installed FreeBSD 12.1 on ZFS root in a mirror with 2 x 1TB drives for desktop usage. The performance is terrible every time I use a browser. I suspected the browser cache to be the problem, so I made a tmpfs and put the cache there, but the problem is that browsers write to disk all the time and not only when using the cache. As soon as I shut down the browser, and I have tried with Firefox and others, then the harddrives stops working (I can hear the noise). The browsers are the worst, but other applications that write some stuff to disk is also not so good. I understand that ZFS has to write every single bit to disk twice because I run a mirror, but I am surprised at the performance penalty and how much these drives keep working. I have monitored ZFS using 'top' and can see that it never eats more than half of my memory, so it's not because I'm out of memory. I'm thinking about getting a couple of SSDs, but then again I use backup meticulously and perhaps ZFS on a single drive or just UFS is better for the desktop? Any advice would be greatly appreciated. Kind regards, Erik