From owner-freebsd-performance@freebsd.org Tue Mar 30 14:36:39 2021 Return-Path: Delivered-To: freebsd-performance@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 27E09578A08 for ; Tue, 30 Mar 2021 14:36:39 +0000 (UTC) (envelope-from vladilen.kozin@gmail.com) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8sTL35pHz4p2K for ; Tue, 30 Mar 2021 14:36:37 +0000 (UTC) (envelope-from vladilen.kozin@gmail.com) Received: by mail-io1-xd29.google.com with SMTP id b10so16652939iot.4 for ; Tue, 30 Mar 2021 07:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nkCdeAc0pcZvew1h16f2np8v7D0fS1c+miB1qJe5Dfw=; b=oyujscW+WkcYOvIOioSu3nfREGt5NWmK+ceYN9oo8QBiwafpQAvvLfcufR/yXZ0VSG jhdHZbGEv+ZVrtfUbytWKF2dRhxBLdr5hRkt0AwXbguSxVwNR9qvdRc94/Ow1IqcARj2 6c8itlNtPt9zFPlFEPpfd5prMAemnPsf709GTcpkmpj2k72lcg0HZSQ2Ul++SMmeFxiB n07+CrRDFcu7Y877IGuFW2uy8ZqHdYTH0fjbHqpL2bzAiMpXTETFXESeGKcg+8+SYwfs 8S5mVmRVrm7O9E5VuW5+mssO/nAGG9wP1uWFDHpZXckAtGS9Sd2RO35w4kxszyglbMcN HsAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nkCdeAc0pcZvew1h16f2np8v7D0fS1c+miB1qJe5Dfw=; b=kuZnD2KGQ/448Gpy4LzOAqmr3252ptYf2vNgXRRuNuebSaVC1jfrNVWRzWoO0VovzB rWeP+LngxyW787x6BAo5c9qww3Js2PpHbWJlrusGQrnj7wcyx6dMnE3P5OecQXOo2g/W lKO0M2xkLaRXuAmtHliOBTKhp4WKcwLR6TqqsV6RiqcZPoOfoBS9GF4q/YekUAvUy56/ ir62HRmoMbgD0JWDn9pZWlq9OeXcWrcIalM6emWS/yB14iSHyof0svJtsdIsJEMu9y3D SKWhmn0PGR+o6I/kZLILlQttemF65dFyux/7o5HRB38M+xCHOAHvPR3SP/8pW85sdAwe 9svw== X-Gm-Message-State: AOAM533uozKXsK7BjIFxM9+bGHs4nuaD1l2XCcGpWTn7RzQskyGiVQAg 1JdW186CjrdF5tU33m2Ui/iT+nlPRpL2TCfGnlHETlxUWJI= X-Google-Smtp-Source: ABdhPJymf76v913gsxVkpNapPVKdETZxR2bRGcfYOdI23t1XbVsdzaK1suPOFSKKGvahCE2GIsURO49CeyjlM5utdGA= X-Received: by 2002:a6b:db15:: with SMTP id t21mr24908970ioc.133.1617114997005; Tue, 30 Mar 2021 07:36:37 -0700 (PDT) MIME-Version: 1.0 From: Vladilen Kozin Date: Tue, 30 Mar 2021 15:36:25 +0100 Message-ID: Subject: mrsas and the lost IO speed To: freebsd-performance@freebsd.org X-Rspamd-Queue-Id: 4F8sTL35pHz4p2K X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oyujscW+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vladilenkozin@gmail.com designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=vladilenkozin@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d29:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-performance@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d29:from:127.0.2.255]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d29:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-performance] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2021 14:36:39 -0000 Hi all. For now just posting to -performance and -questions. Please advise if e.g. -hardware is more suitable. I first reported this issue on forum: https://forums.freebsd.org/threads/mrsas-and-the-mystery-of-lost-speed.79585/ which will offer you detailed report. Here're cliffnotes: Dell R730 + PERC H730 (LSI SAS3108 controller) + SAS-3 12Gbps SSD drives. With `mrsas` driver I'm getting transfers reported 150MB/s which is obviously nonsense (best guess is mrsas thinks its talking SAS-1 at 1Gbps) and indeed random IO tested with `fio` on FreeBSD and on Linux show 2x perf difference. Above Forum post links respective spec-sheets etc. Was also advised that something similar had been reported for another LSI 3108 controller https://forums.freebsd.org/threads/system-hang-freezing-boot-lsi-3108-and-seagate-exos-7e8.76373/ but was solved by replacing controller with another model. I'm also seeing a separate issue where for whatever reason PERC controller BIOS reports negotiated speed for the drives at 6Gbps - but that's probably some HW issue. Trying to figure this with Dell community support, my seller and anyone who would listen really. Thank you -- Best regards Vlad Kozin