Freebsd 11.0 - system freeze on intensive I/O

Warner Losh imp at bsdimp.com
Sat Aug 12 15:23:13 UTC 2017


On Fri, Aug 11, 2017 at 11:17 PM, Gautam <list at execve.net> wrote:

> Hi,
>
> On Wed, Aug 9, 2017 at 10:23 PM, Gautam <list at execve.net> wrote:
>
> > Hi,
> >
> > I just want to comment, that when I tested it there
> > was absolutely no need for any swap usage. I tried the test on a laptop
> > with 8GB RAM and
> > did it from the console mode. But it does seem that there might be some
> > request (read/write) to swap which
> > ​causes a lock up to the system.​
> >
> > ​One update on this one. I installed a custom stable/11 kernel and world
> (sched = 4BSD was the only change), and the problem
> is no longer seen. From my untrained eyes, it looks like some kind of swap
> request starvation causing a hang when ULE is in use.​
>

I did some patches a few years ago that separated out geom requests into
their own uma map, if you wanted and hacked the swap pager to use that to
ensure that it always had BIOs available to do it's I/O. Maybe I should
dust them off and see if they help you. They didn't seem to help me too
much, but didn't hurt too much either.

There's still the issue of some drivers not pre-allocating requests, which
is what makes the deadlock possible in the first place.

Warner


More information about the freebsd-hackers mailing list