Date: Sun, 24 Jun 2018 21:22:38 -0700 From: Mark Millard <marklmi@yahoo.com> To: bob prohaska <fbsd@www.zefox.net> Cc: freebsd-arm@freebsd.org Subject: Re: RPI3 swap experiments, was Re: GPT vs MBR for swap devices Message-ID: <C87C40CF-15B2-4137-892C-F2ADBAB32418@yahoo.com> In-Reply-To: <20180624231020.GA11132@www.zefox.net> References: <25F1A4BA-FBFC-4C32-85DD-5F5BA71A2B1A@yahoo.com> <20180620023253.GA89924@www.zefox.net> <a232ed45-a9a9-1017-72ed-720a6c7a8f03@sentry.org> <1D86911D-20D1-494A-822B-1C07C5598CB1@yahoo.com> <10CAC122-399D-459E-9153-ABD7E753777E@yahoo.com> <a2d7f4d3-0b6d-f82d-bae8-0988b0b54a8f@sentry.org> <20180623143218.GA6905@www.zefox.net> <03C2D3C4-6E90-4054-AF79-BD7FE2B7958D@yahoo.com> <20180624231020.GA11132@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Jun-24, at 4:10 PM, bob prohaska <fbsd at www.zefox.net> wrote: > I've tried to replicate the RPi3 "run out of swap" experiment after > updating source, kernel and world to r335576. Roughly the same things = happen: > Errors flood the console, when swap usage goes a bit over 80% the = machine becomes > unresponsive. No sign of the OOM assassin.=20 >=20 > However, -j4 buildworld got all the way to building libraries. With = r334939 it > always stopped in cross tools. That seems like a significant = improvement > in swap usage efficiency. Is this to be expected?=20 >=20 =46rom the log file: = http://www.zefox.net/~fbsd/rpi3/swaptests/r335576/1gbsdflash/buildworld.lo= g is the text: --- buildworld --- make[1]: "/usr/src/Makefile.inc1" line 299: SYSTEM_COMPILER: Determined = that CC=3Dcc matches the source tree. Not bootstrapping a = cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 304: SYSTEM_LINKER: Determined = that LD=3Dld matches the source tree. Not bootstrapping a cross-linker. So the cross compiler and cross linker were not built: the existing llvm files were used. It was during building of these that the earlier failures happened in the cross-tools stage as I understand: the other stuff does not require as big of processes, or as big of a maximum-total for -j4 . > What details were captured can be seen at > http://www.zefox.net/~fbsd/rpi3/swaptests/r335576/1gbsdflash/ > in case they're of interest. You are still using the drive that gets the errors ( /dev/da0 ), even if it is not being used for swapping. http://www.zefox.net/~fbsd/rpi3/swaptests/r335576/1gbsdflash/console shows: _vfs_done():da0d[WRITE(offset=3D51819347968, length=3D131072)]error =3D = 5 g_vfs_done():da0d[WRITE(offset=3D51819479040, length=3D28672)]error =3D = 5 g_vfs_done():da0d[READ(offset=3D59586936832, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 823 (tcsh) da0d[READ(offset=3D59650965504, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 3950 (sshd) da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 :24 www kernel: Failed to fully fault in a core file segment at VA = 0x405e6000 with size 0x10000 to be written at offset 0x346000 for = process tcsh Jun 24 13:25:25 www kernel: Failed to fully fault in a core file segment = at VA 0x40c41000 with size 0x10000 to be written at offset 0x981000 for = process tcsh (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0a[WRITE(offset=3D805568512, length=3D32768)]error =3D 5 g_vfs_done():da0d[READ(offset=3D59580710912, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 3960 (csh) da0d[READ(offset=3D59604205568, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 823 (tcsh) da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268599296, length=3D16384)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268632064, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268664832, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D289939456, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D377454592, length=3D131072)]error =3D 5 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0a[WRITE(offset=3D268664832, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D377454592, length=3D32768)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D20709376, length=3D4096)]error =3D 5 g_vfs_done():da0d[R:20 www kernel: Failed to fully fault in a core file = segment at VA 0x40c72000 with size 0x10000 to be written at offset = 0x992000 for process tcsh EAD(offset=3D17179279360, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 817 (sshd) da0d[READ(offset=3D36814438400, length=3D4096)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D51207864320, length=3D32768)]error =3D = 5 g_vfs_done():da0d[WRITE(offset=3D51208126464, length=3D32768)]error =3D = 5 g_vfs_done():da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0a[WRITE(offset=3D377585664, length=3D8192)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D805568512, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D825851904, length=3D16384)]error =3D 5 g_vfs_done():da0d[READ(offset=3D39456112640, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 646 (getty) da0d[WRITE(offset=3D51818659840, length=3D32768)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D51819053056, length=3D32768)]error =3D = 5 g_vfs_done():da0d[WRITE(offset=3D51819347968, length=3D131072)]error =3D = 5 g_vfs_done():da0d[WRITE(offset=3D51819479040, length=3D28672)]error =3D = 5 g_vfs_done():da0d[READ(offset=3D59651031040, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 817 (sshd) da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268599296, length=3D16384)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268632064, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268664832, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D277078016, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D377454592, length=3D131072)]error =3D 5 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0a[WRITE(offset=3D377454592, length=3D32768)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D20709376, length=3D4096)]error =3D 5 g_vfs_done():da0d[READ(offset=3D17179312128, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 695 (sshd) da0d[READ(offset=3D39456473088, length=3D32768)]error =3D 5 g_vfs_done():vm_fault: pager read error, pid 646 (getty) da0d[WRITE(offset=3D51207864320, length=3D32768)]error =3D 5 g_vfs_done():da0d[WRITE(offset=3D51208126464, length=3D32768)]error =3D = 5 g_vfs_done():da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 1 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 0 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 0b 3f c0 00 00 80 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Error 5, Retries exhausted g_vfs_done():da0a[WRITE(offset=3D377585664, length=3D16384)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D805568512, length=3D32768)]error =3D 5 g_vfs_done():da0d[READ(offset=3D39456047104, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D65536, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D8585216, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268599296, length=3D16384)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268632064, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D268664832, length=3D32768)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D277078016, length=3D4096)]error =3D 5 g_vfs_done():da0a[WRITE(offset=3D377454592, length=3D131072)]error =3D 5 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 41 80 00 00 08 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 2 more tries remain There are examples of > 50 seconds for ms/w: 2 0 0 0 0.0 0 10 53783 0 0 = 0.0 537.8 da0d 5 1 0 0 0.0 1 14 54159 0 0 = 0.0 551.9 da0 3 0 0 0 0.0 0 3 55101 0 0 = 0.0 551.9 da0a There are a lot with > 20 seconds for ms/w, I'll not list them here. Similarly for > 20 seconds for ms/r. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C87C40CF-15B2-4137-892C-F2ADBAB32418>