From owner-freebsd-arm@freebsd.org Thu Jun 9 14:29:23 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABA53B6F46A for ; Thu, 9 Jun 2016 14:29:23 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yw0-x22e.google.com (mail-yw0-x22e.google.com [IPv6:2607:f8b0:4002:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CBD31E90 for ; Thu, 9 Jun 2016 14:29:23 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by mail-yw0-x22e.google.com with SMTP id c72so38749377ywb.1 for ; Thu, 09 Jun 2016 07:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hk4pBHtUzVHqq4oEcnnKAUeqMdxz0GECpt0Am3vSuU0=; b=xvZbp3u5aUcryH7eHxZ0LWNqLMP+IkX0CTT4v1ScWeTLgaEOm28OLCQXKo3k/qIJue RDVtuz7eee2Evr5F0jlehxsY/BrUI3JZkZfT7B2zSrKmx/T2p5tXf4N/787ZRF2Q7rz4 VXqN8nlBDSDm/wizI9VZazbYMuxfQescKLhFDyxqzkngD9+DcKXMGJk+hu4L86Exc3sE coKMihg4YeBE8oz6FWd/LF5ysHQzkIJBT1/K6SDvd4w8z5Uyy63b8AQ2GVkoAdgiEVmM Rc4URoranPonJWlqGNU43rkRhh9rJwvfQcfJxstSY65Q//DTViz11FPEOb1bdQfhPY3u yIsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hk4pBHtUzVHqq4oEcnnKAUeqMdxz0GECpt0Am3vSuU0=; b=LbRMbU0Nn6JkNLvQlO2KqPwM2rUS0UhH9TUvwhrVpiBffDYfSGTNs93BqsaHRMRKGj aDaQIgF7py8G5PWTWX2WTGXcW/zod0vNt3Vs4BsqAP0wHUmBEbgwRazv/NYvCiw5IwNX rAUItn++8hOHguHvuncOeCAD44sOzjnW3mqi1lqMv3hC78zojwbpD7Y3LuQ7MXRJEkEz hh6l+whbZLTNSPsKatbLCBvI2DDo0ncQBNaHA82izqTd516ufIBMd21rkgCdJwhHr7gY JsHOWtIYmyd1s/+CyhQdPK7Rc50KrPoRoTC8m1DMOkZfLo4e/PNOKkRD2jre2JNmmL9U HQrA== X-Gm-Message-State: ALyK8tLeBo7oJZd1XFcuzhT9VH7K44VYFXWg6k6tCtJrt37rnq6+Zgw4cgSTf+YUvTGr3h1RniLSGo/d0r1oMg== X-Received: by 10.37.58.131 with SMTP id h125mr5893774yba.15.1465482562587; Thu, 09 Jun 2016 07:29:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.108.74 with HTTP; Thu, 9 Jun 2016 07:29:22 -0700 (PDT) In-Reply-To: <6406AECE-0153-494F-88EE-E58C8357FC1B@bsdimp.com> References: <6406AECE-0153-494F-88EE-E58C8357FC1B@bsdimp.com> From: Luiz Otavio O Souza Date: Thu, 9 Jun 2016 11:29:22 -0300 Message-ID: Subject: Re: RPi2 i/o blocking and SD card performance To: Warner Losh Cc: Gergely Imreh , FreeBSD ARM Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 14:29:23 -0000 On 9 June 2016 at 10:55, Warner Losh wrote: > >> On Jun 9, 2016, at 5:37 AM, Gergely Imreh wrote: >> >> Hi, >> >> I've been testing FreeBSD 11.0-CURRENT on a RaspberryPi2. I'm relatively >> new to FreeBSD, and wondering if there's any advice for improving the >> performance a bit. >> >> First, it looks like there's a lot of i/o blocking behaviour going on. For >> example running MediaWiki on the board, if I compile any ports, the site >> itself is pretty much unusable (the PHP scripts time out even with 180s >> timeouts). The strangest thing is that the CPU usage is not at 100% all the >> way, can be that all 4 cores are ~99% idle, and still everything goes very >> slow. Once the ports compilation or any other i/o-related task is finished, >> it's snappy again. Yeah, the DMA support is suboptimal and only does one block at time, this is on my TODO list for a while. >> >> Any idea why it could be to have such big latency/lag even though the CPU >> is idle? Is there anything I could test? Not at this moment, sorry. Luiz