2019-11-05 14:59:08

by Johannes Berg

[permalink] [raw]
Subject: fq_init() allocation

Hi,

fq_init() in mac80211 allocates something like 1/2 MB of memory in a
kmalloc() call and I see it failing frequently in our automation now ...
Could we move that to vmalloc()?

johannes


2019-11-05 15:45:48

by Toke Høiland-Jørgensen

[permalink] [raw]
Subject: Re: fq_init() allocation

Johannes Berg <[email protected]> writes:

> Hi,
>
> fq_init() in mac80211 allocates something like 1/2 MB of memory in a
> kmalloc() call and I see it failing frequently in our automation now ...
> Could we move that to vmalloc()?

Sure, don't see why not. The qdisc allocators all use kvmalloc() for the
same purpose, so I guess we can just switch fq_init() to that as well.
I'll send a (one-character :)) patch...

-Toke