From owner-freebsd-questions@freebsd.org Thu Jun 7 15:08:25 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F5ACFDE5C9 for ; Thu, 7 Jun 2018 15:08:25 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtpb4.cretaforce.gr (smtpb4.cretaforce.gr [78.47.134.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0AB56E91D for ; Thu, 7 Jun 2018 15:08:24 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp2.cretaforce.gr (smtp2.cretaforce.gr [195.201.125.11]) by smtpb4.cretaforce.gr (Postfix) with ESMTP id 75A1120CEA for ; Thu, 7 Jun 2018 18:02:14 +0300 (EEST) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) by smtp2.cretaforce.gr (Postfix) with ESMTP id 8416D3E905 for ; Thu, 7 Jun 2018 18:02:05 +0300 (EEST) Received: from [192.168.2.3] (athedsl-4449129.home.otenet.gr [79.129.211.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id 58B6E2732E for ; Thu, 7 Jun 2018 18:02:05 +0300 (EEST) From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Toshiba disk low performance Message-Id: Date: Thu, 7 Jun 2018 18:02:03 +0300 To: FreeBSD X-Mailer: Apple Mail (2.3445.6.18) X-CretaForce-MailScanner-Information: Please contact the ISP for more information X-CretaForce-MailScanner-ID: 8416D3E905.AD70D X-CretaForce-MailScanner: Found to be clean X-CretaForce-MailScanner-From: chris@cretaforce.gr X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2018 15:08:25 -0000 I order a new dedicated server from a provider. The server has 2 Toshiba = disks and the disk peformance is very slow. I test it using mysqlcheck -Ao which optimizes the databases and also = with 10GB mysql import at 2 servers - one with the Toshiba disks and the = other with Seagate disks. During the tests gstat for the server with Toshiba disks show 3-4 times = lower disk operations / second compared to the other server. I had the same problem (same Toshiba models) in a production server (I = notice it after I put it in production) and ask the datacenter to = replace one disk with different model, I rebuild RAID-1, then replace = the second disk and I rebuild the RAID-1. And the issue resolved. It shows these disks as UDMA5 but other disks with good speed show = UDMA6. Also Linux shows these disks as UDMA5. Here is the dmesg output: ---- ada0 at ahcich1 bus 0 scbus0 target 0 lun 0 ada0: ATA8-ACS SATA 3.x device ada0: Serial Number Z5B7K1Q4FJKA ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes) ada0: Command Queueing enabled ada0: 3815447MB (7814037168 512 byte sectors) ada1 at ahcich2 bus 0 scbus1 target 0 lun 0 ada1: ATA8-ACS SATA 3.x device ada1: Serial Number Z5B7K1Q5FJKA ada1: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes) ada1: Command Queueing enabled ada1: 3815447MB (7814037168 512 byte sectors) ---- What could be the problem with the Toshiba disks?