From owner-freebsd-ppc@freebsd.org Mon Jan 25 12:09:17 2021 Return-Path: Delivered-To: freebsd-ppc@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 70D034DFEA9 for ; Mon, 25 Jan 2021 12:09:17 +0000 (UTC) (envelope-from luporl@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DPTDs2jGhz3rgv for ; Mon, 25 Jan 2021 12:09:17 +0000 (UTC) (envelope-from luporl@freebsd.org) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: luporl/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 469232DD33 for ; Mon, 25 Jan 2021 12:09:17 +0000 (UTC) (envelope-from luporl@freebsd.org) Received: by mail-io1-f42.google.com with SMTP id n2so25968837iom.7 for ; Mon, 25 Jan 2021 04:09:17 -0800 (PST) X-Gm-Message-State: AOAM533TV7N8scvJw9qUjlYfVnBAL2TBkWvkJA6psnTXu4qLFO8MnYk8 jKzlxrrytqc4dYFg/6SNaNP7X96E4OPMYFM8Xto= X-Google-Smtp-Source: ABdhPJzobkbDbwqEKNhk2uZ8CmF6piE0bjX3Khe77m64LrQuoqlGSa9oEGoNAT4A+c4UjkRYW5monoY+3HQ2ghcFsUQ= X-Received: by 2002:a05:6638:1344:: with SMTP id u4mr252553jad.86.1611576556540; Mon, 25 Jan 2021 04:09:16 -0800 (PST) MIME-Version: 1.0 References: <5a2db57c-780c-8ba8-7076-9d044fa55c10@jeaniez.com> <5bdeb808-57b5-e267-4f01-3e54e4250ef1@jeaniez.com> In-Reply-To: <5bdeb808-57b5-e267-4f01-3e54e4250ef1@jeaniez.com> From: luporl Date: Mon, 25 Jan 2021 09:09:05 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: SAS Raid controllers To: Jeanie Cc: FreeBSD PowerPC ML Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 12:09:17 -0000 On Fri, Jan 22, 2021 at 7:34 PM Jeanie wrote: > > > On 22/01/21 08:54, luporl wrote: > > On Thu, Jan 21, 2021 at 9:10 PM Jeanie wrote: > > > >> Hi Leandro, > >> > >> On 20/01/21 07:04, luporl wrote: > >>> On PowerPC64, the onboard Talos II SAS controller works fine too, using > >>> FreeBSD 13 aacraid driver: > >>> > >>> aacraid0: mem > >>> 0x80000000-0x800fffff,0x80180000-0x801803ff irq 1038328 at device 0.0 > >>> numa-domain 0 on pci5 > >>> ... > >>> aacraid0: SmartIOC 8i, aacraid driver 3.2.10-1 > >>> > >>> - Leandro > >> Sorry for the delay. Someone deleted my emails. > >> > >> You are using a SAS raid with PowerPC!!!!! Was it hard to make work? I > >> am looking at the aacraid driver and it looks like add-on cards are > >> available. > >> > >> Sincerely, > >> Jeanie > >> > >> > > Hi Jeanie, > > > > For me, with a recent FreeBSD 13 kernel, it just works, as the aacraid > > driver is now included with the default PowerPC64 kernel. > > But I'm using it with only one SAS drive, so I haven't tested its raid > > capabilities. > > The only complaint that I have is that, on my machine, disk writes are > very > > slow. > > > > - Leandro > > _______________________________________________ > Hi Leandro, > > That was going to be my next question, what kernel you are using, but > since you already answered it, I guess that I won't need to ask. I will > update my source and give compiling a kernel a try. > > It is interesting that it is slow on writes. Maybe it is because you > only have one drive? Have you looked into this any further? > > Sincerely, > Jeanie > > Hi Jeanie, Even with one drive, the write speed should be higher. Write speed on the Talos II machine that I use, with aacraid, is about only 3 or 4 MB/s, while on another PowerPC machine with a SATA controller it reaches about 30 MB/s, during sequential write of a large file. This Talos II machine also has NVMe, that reaches about 130 MB/s. I've not looked further into this issue. However, some months ago, when the aacraid driver was ported to big endian, I've done some tests with it on another PowerPC machine and I didn't notice writes being slow. So, maybe this is an issue specific to my setup or maybe something in the code changed from a few months ago that has degraded write performance. Best regards, - Leandro