Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2019 04:16:00 +0100
From:      Jamie Landeg-Jones <jamie@catflap.org>
To:        jamie@catflap.org, fbsd@www.zefox.net
Cc:        freebsd-arm@freebsd.org, fbsd@www.zefox.net
Subject:   Re: Lethargic rpi3, but seemingly still running
Message-ID:  <201907240316.x6O3G075001636@donotpassgo.dyslexicfish.net>
In-Reply-To: <20190723194349.GA32898@www.zefox.net>
References:  <20190718034838.GA1921@www.zefox.net> <201907180958.x6I9wBF8075274@donotpassgo.dyslexicfish.net> <20190718151858.GB4325@www.zefox.net> <20190718182050.GL2342@funkthat.com> <20190721005135.GA18642@www.zefox.net> <201907230419.x6N4JRYZ069168@donotpassgo.dyslexicfish.net> <20190723194349.GA32898@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
bob prohaska <fbsd@www.zefox.net> wrote:

> Sorry, I was referring the %idle number above the bargraph and inverting the 
> fraction, without noticing the %busy in the Disks output.

Ah, ok! Yes, it was the I/O I was concerned with, not the CPU.

> At the moment the same machine is compiling clang8 with about 900M of swap in use,
> here is another sample:
> Disks mmcsd   da0 pass0                               264 intrn       cpu3:ast
> KB/t   5.51  5.77  0.00                            169680 wire    641 cpu0:pree
> tps     461   457     0                            645096 act    1612 cpu1:pree
> MB/s   2.48  2.58  0.00                              2280 inact  1522 cpu2:pree
> %busy    77    50     0 
>
> Swap is on both mmcsd and da0 (Samsung Evo+ microsd and a Sandisk usb3 flash drive). 
>
> > However, I suspected something like that - high %busy whilst little actual
> > transfers taking place. I've seen it before, along with the characteristics
> > you describe, but unfortunately I don't have a fix.
> > 
>
> So far I think the problem has only been obvious when bsdtar is running. If
> there's another way to provoke it that might be interesting to try.

Unfortunately, my Pii's are not working at the moment (one sdcard broke, the other
sdcard was "borrowed" for something else!) so I can't test this, but my
suspicion is that it's related to many file creations (and/or deletions?)

You could try a script that creates lots of small files.. Do you have soft-updates
enabled? And do you have 'trim' enabled for the sdcard?

I didn't mention this in earlier replies, because I cannot find any reference to
back it up, but here goes, take it with a pinch of salt!:

>From what I understand, ARM I/O causes blocking of the CPU. I know on my
android 'desktop' devices that if I have heavy I/O, everything else (even the mouse
cursor) can freeze for 10s of seconds at a time, whilst the CPU is otherwise idle.

At a guess, this problem gets worse with a fragmented or aging sdcard/usb stick.

Does any of this match your observations?

> Thanks for reading more closely than I wrote!

:-)

Cheers, Jamie



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