From owner-freebsd-mips@freebsd.org Tue Nov 10 03:09:35 2015 Return-Path: Delivered-To: freebsd-mips@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 EAF9AA2997F for ; Tue, 10 Nov 2015 03:09:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (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 971FE119A for ; Tue, 10 Nov 2015 03:09:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by iody8 with SMTP id y8so206812940iod.1 for ; Mon, 09 Nov 2015 19:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp_com.20150623.gappssmtp.com; s=20150623; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=9KuZ5/OUW6PPH+hzjxtvHD1pTkYnlTYFkxG2IwXgYcs=; b=IjpCq9kagGOhxYoeYnxYrXW/yzPYgNdlGDQQuTSja3TL1NABjEoQxT9BASZWUQd2T2 sbRVkI89XDNhPO4rf0kzzD/49z1BXZ2qk2BXd/GN6m8puBYIT8yA24yyx3O+jC24AgdA 0QfL/kKq8OOJ1+UQNcu41PPQIpofaPaNEycUMLd8jb50fgtnOxqzB8PNnlc8wy2IfbZN u7Gk1KjmJdl4D1pglOWrgRYESVR4JnWgjXk/gIKx6oN9B0w8re0edQhqnKCs5t4CQ4xp TH66ZSyDbX3EC0qwMq0VOK9MA8iSgKo0y9VnXnDpC0J8E1URhzD1FriCmQhGdCAzAM+U iznQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=9KuZ5/OUW6PPH+hzjxtvHD1pTkYnlTYFkxG2IwXgYcs=; b=aUN5KtIL0DgOMv1uqTIJcqCQ3CLO+2b4NkOavlzKdNKbElNmBvhjOMfvzOLAjYUiWi Py4QQLlWRr6uUtbtDfXSBAAygpNj0jhMt/gPmaVBGg+2j3BzDMT9QmBPi9BhIV7lHI/e 2ymxnEvXizoLYV8bSt0znAVb/k7KD2ekJvF5eFAwdsvIxsX9sT4uOGluOrLYfvkSqqP1 iePPfxhXfEdaWbRy3iAqKPnlTvYoP7fqcW/eS72AuLP8Z3HfZyc45CVzPA2HILsrNcVr hTorz6BDumjPje7q6B6qdVVL9N6k2o8OkHGP2oR7w5sL4cm42hCXdzZLIWuqyLugPKE7 /D6A== X-Gm-Message-State: ALoCoQlNRu/tTW6IjkxiDVcM53JV4rSN/LzBxGIT4HVbDILr9QuF8TBmda6pXBfBM5XQ62x1Yats X-Received: by 10.107.16.18 with SMTP id y18mr1498892ioi.113.1447124973897; Mon, 09 Nov 2015 19:09:33 -0800 (PST) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by smtp.gmail.com with ESMTPSA id aw1sm6058388igc.21.2015.11.09.19.09.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Nov 2015 19:09:32 -0800 (PST) Sender: Warner Losh Subject: Re: CPU underload Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_406BEEA5-8A00-4596-9CCD-6C4612E4B526"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Warner Losh In-Reply-To: <1447091207.91534.481.camel@freebsd.org> Date: Mon, 9 Nov 2015 20:09:30 -0700 Cc: Eugene Grosbein , Adrian Chadd , "freebsd-mips@freebsd.org" Message-Id: <42B3546E-F0F5-4A66-AFF0-D16465343FF9@bsdimp.com> References: <56348063.3090508@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> <563707A0.3040700@grosbein.net> <56370E1D.3040801@grosbein.net> <563F5630.2000407@grosbein.net> <563F938B.3070707@grosbein.net> <1447090771.91534.477.camel@freebsd.org> <5640DB0E.8010005@grosbein.net> <1447091207.91534.481.camel@freebsd.org> To: Ian Lepore X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 03:09:35 -0000 --Apple-Mail=_406BEEA5-8A00-4596-9CCD-6C4612E4B526 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 9, 2015, at 10:46 AM, Ian Lepore wrote: >=20 > On Tue, 2015-11-10 at 00:42 +0700, Eugene Grosbein wrote: >> On 10.11.2015 00:39, Ian Lepore wrote: >>> On Sun, 2015-11-08 at 11:23 -0800, Adrian Chadd wrote: >>>> ok, what's the l1 cache size reported at boot up? >>>>=20 >>>> I think I may just bump them all to 64. >>>=20 >>> 64 is not some kind of magic panacea. The value needs to be set to >>> the >>> cache line size for the runtime platform. If the right value is >>> 32, >>> then setting it to 64 will just waste memory. If we ever have a universal kernel, 64 could run on either 32 or 64 byte cache lines. Since we don=E2=80=99t, this is largely correct. It = was mostly a quick and easy to test suggestion, it doesn=E2=80=99t matter = since: >>>> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> Is it for instruction cache or for data cache? >=20 > Only the data cache size matters for USB_HOST_ALIGN. Since we=E2=80=99re flushing the data cache, and we don=E2=80=99t want = the device visible part of the USB buffers to share a cache line with other data for the host to use about the device. Making it too big doesn=E2=80=99t help, and costs memory. Making it too small is fatal: usb simply won=E2=80=99t work. Why we don=E2=80=99t have a panic when the cache line size is larger than usb_host_align, and a warning when it is smaller is beyond me... Warner --Apple-Mail=_406BEEA5-8A00-4596-9CCD-6C4612E4B526 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWQV/rAAoJEGwc0Sh9sBEAofcP/2CuPgnVWJ72D9KVEcOXHfZv +8+z7PyyZ7+pZ1kJMP7LEaL2Gou+zVC/9y+TkYcYvs191WvFVWcYxl8tyTrlz/Sn 2CpeD34FglLdINHSiMgpqe4QPzjpuZ9VjqxixLntTapyu87x0qm0iwoXUc3kX4Ay +LLvem+71mTbQby4Rvpp/g+DCIr5THGnChpKliThUbXnXaqAwzNx8yeEUwQ7acZ9 eywqBKR26UCiubic/evpd4EM3r/UdRRDCjHWde2VIYnEMTyzO7sQwmUfURpGBzZp unqPcDv62rEKcg45/O198Cq7kwC534JZRsQ/lODJ8F6a771sJaY/46YxuM4WGRf0 LCJW9dV8m4UPda9jGdJmZ15xK7Fmn9Mu4Lf0s2ZfR0R1NBryN6Axlf+gJBxJOa7q f8w8Suh7qy2l6TtbX0SyhR3Uk+bFH986eL52LHcO4vCvRRv/8SFI9pX0/L7tNLLx Tc6KRdz1PGBTlDr9bbfJt4SrFDW5x5uyX+gUio11fCv+RZx8tw7+P64Ti9H7HoeI LTVu1OgRldFqz2sR6CX8faKc3/l1COVN/dZya4/1b0A9JvfUxu0pbrXobO9WP6B2 83kRSbupdbh6XO2p58pKj5FpoCe5OyAjHB6ZK3zN6EKuNMrR2++SPWPEID0o9TdG vO2lyCt1swwK5TcqHkxV =sW1u -----END PGP SIGNATURE----- --Apple-Mail=_406BEEA5-8A00-4596-9CCD-6C4612E4B526--