Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meGgx-0000ob-Bq for pgsql-general@arkaria.postgresql.org; Sat, 23 Oct 2021 13:04:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1meGgw-0008VT-0S for pgsql-general@arkaria.postgresql.org; Sat, 23 Oct 2021 13:04:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meGgv-0008VJ-Kg for pgsql-general@lists.postgresql.org; Sat, 23 Oct 2021 13:04:05 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1meGgp-0003aw-4D for pgsql-general@lists.postgresql.org; Sat, 23 Oct 2021 13:04:05 +0000 Received: by mail-qt1-x82c.google.com with SMTP id t16so6052272qto.5 for ; Sat, 23 Oct 2021 06:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=kPBKJgommfRVXjDfti6ExJG1f3KcbTPsM3pPfy5R7Ic=; b=aipXJPo6YvcFuQ0g7NRsoGtqKlGME9lRnuyEQedsQ429Z2Bx09b5/uIKwJVJrLXLQW GmHONK0BzUf4e0CYgy2A69grN/XoxL4qIeUKZqv2141F+eRr334M/eDYBOQc5qNrm092 uvbWiXS3Tc8G3RvmAQgs28Rf2SJXMyLcXJEJuS3zQsutQ46WZ1E8muQVSS8/qiuo6Ndg kk/qlo++ob5y3cxlYocIrMnEyIcPbZPJ+2oUeyH6yAubGH8YRHcxRch/S6wpDEG6BQU8 DC9bnw8cMsrZuCsFoBafOVUXz+aP8rOPTxdQlD6LZlJ9LDW3xpB6L71LYufp8Jl1LEby gjdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=kPBKJgommfRVXjDfti6ExJG1f3KcbTPsM3pPfy5R7Ic=; b=c0QfG+mihR+5+CKDSxgM3P1omQlieDkbgoiDikdRbJmGXrSehGK1jBOdDyq/lChfj5 2xUVkyPOPBKZdo/+fgNXG0TlC/l9iv7UbtrkWLxFLriugdJ0vnTljhJJSVP/uf09IFhx D2HE+mrWqYNSAglGW4Uibabtt2k5DaejEOIY53idXx+WDbupzBBJBrGPxrKYrpT+05cW 3vjLgZ4o2+98fH+y+PWuoq9s8aJz/ea7ktIlJ8hQSW/rOE86AHFQYMg5ahs6lOFp2EwO p00yAVyHLJZgFMZwsLbjNQLwz+T3/abwo+ePiLdbJWItlXUhbj1/dPhtwTwOJh0q9EUA 3+Gw== X-Gm-Message-State: AOAM531eNbZO6C7wi9bDgxZ+nZkE0v6JPz2GcYe89c25AEIW2thc7Mpy VaGlYDRVrCTzNIvqBa/TBWTig9A3UgMdUg== X-Google-Smtp-Source: ABdhPJy2G5R5uFS88pPJpnREKR0aNIzyr4npPtkFfylwnKVdJlHGKbNNx83dBKM3O+gM++VaFypBsQ== X-Received: by 2002:ac8:7f16:: with SMTP id f22mr6264800qtk.200.1634994236507; Sat, 23 Oct 2021 06:03:56 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-19-93.nwrknj.east.verizon.net. [72.79.19.93]) by smtp.gmail.com with ESMTPSA id 74sm5618569qke.109.2021.10.23.06.03.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Oct 2021 06:03:56 -0700 (PDT) Message-ID: <1e0db1d2-6a9e-f5f7-44af-e7a1997bafcf@gmail.com> Date: Sat, 23 Oct 2021 09:03:55 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: ZFS filesystem - supported ? Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <49ijds_99IK_4iDOHuZH8CJsKGZw7DEVtJPf0s_oPEvUKwFewHcDQFCUnutcA9GYIkOrRfFAKRsyj0ZFN9ECAbLm-NYPR8jMxTl-RU-U3hA=@protonmail.ch> From: Mladen Gogala In-Reply-To: <49ijds_99IK_4iDOHuZH8CJsKGZw7DEVtJPf0s_oPEvUKwFewHcDQFCUnutcA9GYIkOrRfFAKRsyj0ZFN9ECAbLm-NYPR8jMxTl-RU-U3hA=@protonmail.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/23/21 07:29, Laura Smith wrote: > Hi, > > Given an upcoming server upgrade, I'm contemplating moving away from XFS to ZFS (specifically the ZoL flavour via Debian 11). BTRFS seems to be falling away (e.g. with Redhat deprecating it etc.), hence my preference for ZFS. > > However, somewhere in the back of my mind I seem to have a recollection of reading about what could be described as a "strong encouragement" to stick with more traditional options such as ext4 or xfs. > > A brief search of the docs for "xfs" didn't come up with anything, hence the question here. > > Thanks ! > > Laura > > Hi Laura, May I ask why would you like to change file systems? Probably because of the snapshot capability? However, ZFS performance leaves much to be desired. Please see the following article: https://www.phoronix.com/scan.php?page=article&item=ubuntu1910-ext4-zfs&num=1 This is relatively new, from 2019. On the page 3 there are tests with SQLite, Cassandra and RocksDB. Ext4 is much faster in all of them. Finally, there is another article about relational databases and ZFS: https://blog.docbert.org/oracle-on-zfs/ In other words, I would test very thoroughly because your performance is likely to suffer. As for the supported part, that's not a problem. Postgres supports all modern file systems. It uses Posix system calls to manipulate, read and write files. Furthermore, if you need snapshots, disk arrays like NetApp, Hitachi or EMC can always provide that. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com