Reduce MAXPHYS back to 128KB on 32bit architectures.

Some of them have limited KVA, like arm, which prevents startup from
allocating needed number of large pbufs.  Other, for instance i386,
are dis-balanced enough after 4/4 that blind bump is probably harmful
because it allows for much more in-flight io than other tunables are
ready for.

Requested by:	mmel
Reviewed by:	emaste, mmel
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2020-11-29 19:06:32 +00:00
parent bd89101586
commit baa2cd58a6

View File

@ -159,8 +159,12 @@
#ifndef DFLTPHYS #ifndef DFLTPHYS
#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */ #define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */
#endif #endif
#ifndef MAXPHYS #ifndef MAXPHYS /* max raw I/O transfer size */
#define MAXPHYS (1024 * 1024) /* max raw I/O transfer size */ #ifdef __ILP32__
#define MAXPHYS (128 * 1024)
#else
#define MAXPHYS (1024 * 1024)
#endif
#endif #endif
#ifndef MAXDUMPPGS #ifndef MAXDUMPPGS
#define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)