[EXTERNAL] Re: FreeBSD10 Stable + ZFS + PostgreSQL + SSD performance drop < 24 hours

Rodney W. Grimes freebsd-rwg at pdx.rh.CN85.dnsmgr.net
Wed Jun 14 22:04:25 UTC 2017


> > -----Original Message-----
> > From: owner-freebsd-hackers at freebsd.org [mailto:owner-freebsd-hackers at freebsd.org] On Behalf Of Allan Jude
> > Sent: Wednesday, June 14, 2017 11:20 AM
> > To: freebsd-hackers at freebsd.org
> > Subject: [EXTERNAL] Re: FreeBSD10 Stable + ZFS + PostgreSQL + SSD performance drop < 24 hours
> >
> > On 2017-06-14 13:11, Caza, Aaron wrote:
> > > Further to this:
> > >
> > > I've now tested FreeBSD 10.3-RELEASE-p19 and FreeBSD 11.0-STABLE #0 r307264M, both of which suffer the same degraded performance.
> > >
> > > test$ uname -a
> > > FreeBSD xyz.com 10.3-RELEASE-p19 FreeBSD 10.3-RELEASE-p19 #0 r319904M: Tue Jun 13 12:38:29 MDT 2017     aaronc at WFT:XYZ  amd64
> > > test$ uptime
> > > 10:15AM  up 21:09, 2 users, load averages: 1.00, 1.14, 1.30 test$ dd
> > > if=/testdb/test of=/dev/null bs=1m
> > > 16000+0 records in
> > > 16000+0 records out
> > > 16777216000 bytes transferred in 200.379127 secs (83727363 bytes/sec)
> > >
> > > After reboot:
> > > test$ dd if=/testdb/test of=/dev/null bs=1m
> > > 16000+0 records in
> > > 16000+0 records out
> > > 16777216000 bytes transferred in 23.213040 secs (722749623 bytes/sec)
> > >
> > > Same Intel Xeon E31240 with 8GB ram and 2x Samsung 850 Pro 256GB SSDs as before.
> > >
> > > This message may contain confidential and privileged information. If it has been sent to you in error, please reply to advise the sender of the error and then immediately delete it. If you are not the intended recipient, do not read, copy, disclose or otherwise use this message. The sender disclaims any liability for such unauthorized use. > > PLEASE NOTE that all incoming e-mails sent to Weatherford e-mail accounts will be archived and may be scanned by us and/or by external service providers to detect and prevent threats to our systems, investigate illegal or inappropriate behavior, and/or eliminate unsolicited promotional e-mails (spam). This process could result in > > > > deletion of a legitimate e-mail before it is read by its intended recipient at our organization. Moreover, based on the scanning results, the full text of e-mails and attachments may be made available to Weatherford security and other personnel for review and appropriate action. If you have any concerns abo
>  ut this process,
> > >   please contact us at dataprivacy at weatherford.com.
> > > _______________________________________________
> > > freebsd-hackers at freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> > >
> >
> > Can you do the same test, but grab the memory lines from top(1) before and after each of those two runs.
> >
> > I am guessing the ARC is being squeezed out by PostgreSQL, because you have so little RAM.
> >
> > --
> > Allan Jude
> 
> Takes a while for the degradation to kick in now that I rebooted this morning.
> 
> Regarding the ARC being squeezed - well, that doesn't explain why gstat shows on 95-100% busy on the drives on reboot but only ~15 %busy after the degradation hits.
> 
> In fact, ARC is being squeezed all the time because I've limited it to 50M in /boot/loader.conf:
> vfs.zfs.arc_min="50M"
> vfs.zfs.arc_max="50M"

Would you passify an old fart by at least having a delta of 1 between a min and max please?
Some code may oscilate when min=max.


> Note that the FreeBSD 9.0 server that I tested on also hamstrings the ARC to 50M but doesn't suffer a performance degradation hence why I hadn't bothered mentioning it before.
> 
> To remove Postgres entirely, I won't even start it and simply use dd on the 16GB file.  The server is essentially doing nothing at all.
> 
> At this point, I'm looking at going back to FreeBSD 10.3-RELEASE-p7 as yesterday as 'trafdev' reported that he doesn't see any performance drop and he's got 95 days uptime.  He's also mentioned vfs.zfs.metaslab.lba_weighting_enabled=0 setting which I also need to try.
> 
> --
> Aaron
> 
> 
> This message may contain confidential and privileged information. If it has been sent to you in error, please reply to advise the sender of the error and then immediately delete it. If you are not the intended recipient, do not read, copy, disclose or otherwise use this message. The sender disclaims any liability for such unauthorized use. PLEASE NOTE that all incoming e-mails sent to Weatherford e-mail accounts will be archived and may be scanned by us and/or by external service providers to detect and prevent threats to our systems, investigate illegal or inappropriate behavior, and/or eliminate unsolicited promotional e-mails (spam). This process could result in deletion of a legitimate e-mail before it is read by its intended recipient at our organization. Moreover, based on the scanning results, the full text of e-mails and attachments may be made available to Weatherford security and other personnel for review and appropriate action. If you have any concerns about this process,
>   please contact us at dataprivacy at weatherford.com.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
> 

-- 
Rod Grimes                                                 rgrimes at freebsd.org


More information about the freebsd-hackers mailing list