From: | Luca Ferrari <fluca1978(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: FreeBSD UFS & fsync |
Date: | 2021-02-23 11:57:22 |
Message-ID: | CAKoxK+7sjq-WhedUFfaBT8svW+-F4tb11fM1xsWo+7LvusRhwg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Tue, Feb 23, 2021 at 8:46 AM Luca Ferrari <fluca1978(at)gmail(dot)com> wrote:
> I'm using sata disks, not scsi. Assuming I'm not looking at the wrong
> parameter, I wil attach a scsi disk to do the same test and see if
> something changes.
I've tested the same version of PostgreSQL, same benchmark, on a scsi
disk. However, turning off fsync does not provide any increment at all
(something that spans in less than 1% tps).
I've checked and I have WCE enabled on such disk, but apparently I
cannot modify (I suspect this is due to the virtualization of the
disk):
# echo "WCE: 0" | camcontrol modepage da0 -m 0x08 -e
camcontrol: error sending mode select command
# camcontrol modepage da0 -m 0x08 | grep WCE
WCE: 1
and the filesystem has everything disabled:
# tunefs -p da0p1
tunefs: Can't stat da0p1: No such file or directory
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) disabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: space to hold for metadata blocks: (-k) 6408
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
I think I will not be able to test in a virtual environment, unless
I'm missing something.
Thanks,
Luca
From | Date | Subject | |
---|---|---|---|
Next Message | Maurici Meneghetti | 2021-02-23 18:12:19 | Postgres performance comparing GCP and AWS |
Previous Message | Luca Ferrari | 2021-02-23 07:46:50 | Re: FreeBSD UFS & fsync |