Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 2020 18:04:21 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-current@freebsd.org
Subject:   Re: possible usb3-connected hard drive spin down causing lag
Message-ID:  <X8E/peRSLOLz6him@rpi4.local>
In-Reply-To: <1299467375.48.1606491264664@localhost>
References:  <X77ygGTS09S91bTC@rpi4.local> <X8Bxd7jNbaWNKmMM@rpi4.local> <1299467375.48.1606491264664@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--oI8tY4uKrx8tBVEm
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 27, 2020 at 04:34:24PM +0100, Ronald Klop wrote:
>
>Mind to share these tips, so I can use them on my RPI4? ;-)

sure!

I'll write up a simple site later, but in summary this is what=20
I've done subsequent to the initial setup. E&OE, if it breaks you=20
get to keep both bits, no guarantees etc etc. In no particular order:

1. in /boot/msdos/config.txt there's this:
over_voltage=3D6
arm_freq=3D2000
sdram_freq_min=3D3200

[I use a FLIRC case to keep it cool. you *must* use cooling for this.
Max temps I'm seeing under very heavy compiling (it runs poudriere)
is 72 degC in 25 degC ambient]

2. /usr/src /usr/ports /usr/local /usr/obj /home /var/cache/ccache
are all on the usb3 disk, seperate datasets.

3. swap is 16GB and is the first partition on the usb3 disk

4. for compiling, ccache is a must.

5. set tmp to tmpfs in /etc/fstab. I use 1GB like this:
tmpfs /tmp tmpfs rw,mode=3D1777,size=3D1024m 0 0

6. make things like mutt use this /tmp

7. enable powerd and on bootup. Make it almost always use the
overclocked speed like this in /etc/rc.conf
powerd_enable=3D"YES"
powerd_flags=3D"-r 1"

This makes it run @ 2GHz always without needing to set something like boost=
_turbo.

8. in /etc/sysctl.conf:
vfs.read_max=3D128                      # default 64

9. compile mutt with kyotocabinet which uses (I think) memory mapping for c=
ache
lookups things like that. Faster than on-disk.

10. Look up the spec of yr usb3 connected device. Does it have 4k sectors?
If it does, if you're using zfs make sure vfs.zfs.min_auto_ashift=3D12 in
/etc/sysctl.conf

11. if you do compile stuff it'd be worth using -j3 if you want reasonably =
responsive
interactive use from the pi while it's compiling.

Like I've said, this isn't even guaranteed to work. All I can say is it's
whats working on my rpi4/8GB now and I'm very happy with it.

--=20
J.

--oI8tY4uKrx8tBVEm
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl/BP50ACgkQs8o7QhFz
NAWYhhAAgWr7mCKfra+MkR98XtpvezwvjvMxrSfWCY+F10EvidjWEK3P+T2hWf40
JntTn1o1eWVZ75hDJFv5ITMXcmdVzjx2+SYGMxNlFAsWvD7TZs8pbPX2Ijya3TKK
D8vaKkSulf+XLPHDDgV/cSjB0ZgADDCe38oanDNus3CDklHH0srNpUvp8F43o5BV
+4hurQy2HCMm+Bgc6hBPLQdt8861CHbS/HPhyTjBxvuG/2zHmrgMzmLQEDBfheG5
4C6jsGWYShaMHYO+PabZPt+3A85OYSJUSN/75A1bYdxVEqaH+mo7hDel4uHSPoIs
Lv0qygAsqHBVTp+k25N+koTG8TljC0HfOhj9QxxrVjKTnMSbwo5HeaSdsrLJP6jj
bHkPN/cP446/EXVSwhYBEo61GRFWc4XI+NsTx2xxi/dOaOSPekihzteA2w/aiiF8
bYN0xvyT0pI1WH7gNe3jYNda9+pjVCN/kppZ9NELk2Q/WYKe1DmjH3M1L9lh+T/v
FHHsel34VXl5YIH8brWztlY3xzApfGLNGxqJovptFfEiOuD3WURX4CVEjDUzNeqb
8v9OhfwSkUSrNzEonI1C0PueDDZOTPfptj2noj2DPzHzvcu8gRbg8HgE9gNPpH3w
Av7KEL1YfygmJI+rS6HWhUPzCyrycvaSbvV+YtyPFWg8IA7ZohQ=
=maqm
-----END PGP SIGNATURE-----

--oI8tY4uKrx8tBVEm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?X8E/peRSLOLz6him>